335 |
assert(object == &function->object); |
assert(object == &function->object); |
336 |
Stream_printf(f, "%*s", indent, ""); |
Stream_printf(f, "%*s", indent, ""); |
337 |
if (type == FUNCTION_NORMAL) { |
if (type == FUNCTION_NORMAL) { |
338 |
Stream_write_string(f, "function"); |
Stream_write_string(f, "function "); |
339 |
} |
} |
340 |
|
|
341 |
/* function name */ |
/* function name */ |
342 |
if (function->atom) { |
if (function->atom) { |
|
Stream_write_char(f, ' '); |
|
343 |
print_string_atom(function->atom, f); |
print_string_atom(function->atom, f); |
344 |
} |
} |
345 |
|
|
347 |
function parameters - see JS_DecompileFunction in jsapi.cpp, which calls |
function parameters - see JS_DecompileFunction in jsapi.cpp, which calls |
348 |
js_DecompileFunction in jsopcode.cpp |
js_DecompileFunction in jsopcode.cpp |
349 |
*/ |
*/ |
350 |
Stream_write_string(f, "("); |
Stream_write_char(f, '('); |
351 |
JSArenaPool pool; |
JSArenaPool pool; |
352 |
JS_INIT_ARENA_POOL(&pool, "instrument_function", 256, 1, &context->scriptStackQuota); |
JS_INIT_ARENA_POOL(&pool, "instrument_function", 256, 1, &context->scriptStackQuota); |
353 |
jsuword * local_names = NULL; |
jsuword * local_names = NULL; |