{"id":22,"date":"2009-06-30T15:00:02","date_gmt":"2009-06-30T22:00:02","guid":{"rendered":"http:\/\/blog.mozilla.org\/mrbkap\/2009\/06\/30\/working-on-the-js-engine\/"},"modified":"2009-08-15T03:03:20","modified_gmt":"2009-08-15T10:03:20","slug":"working-on-the-js-engine","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/mrbkap\/2009\/06\/30\/working-on-the-js-engine\/","title":{"rendered":"Working on the JS engine"},"content":{"rendered":"<p>Especially working on old branches without some of the nice debugging helpers that jorendorff has implemented, sometimes I look at my gdb session and just <em>know<\/em> that I&#8217;m working on the JS engine:<\/p>\n<pre>(gdb) p $.atom\r\n$11 = (JSAtom *) 0xb194f984\r\n(gdb) p\/x *(JSString *)((int)$ &amp; ~7)\r\n$12 = {length = 0x20000004, u = {chars = 0xaf434970, base = 0xaf434970}}\r\n(gdb) x\/4ch $.u.chars\r\n0xaf434970:\t97 'a'\t98 'b'\t99 'c'\t100 'd'<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Especially working on old branches without some of the nice debugging helpers that jorendorff has implemented, sometimes I look at my gdb session and just know that I&#8217;m working on the JS engine: (gdb) p $.atom $11 = (JSAtom *) 0xb194f984 (gdb) p\/x *(JSString *)((int)$ &amp; ~7) $12 = {length = 0x20000004, u = {chars [&hellip;]<\/p>\n","protected":false},"author":149,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/users\/149"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/mrbkap\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}