I'm trying to use trace-ignition-dispatches flag to see javascript 
bytecodes executed. But the resulting json doesn't contain any numbers.
And a tool `v8/tools/ignition/bytecode_dispatches_report.py 
~/ignition.json` shows 0 values for all the bytecodes. The optimization is 
disables with `--no-opt` and v8 is compiled with 
`v8_enable_trace_feedback_updates = true`.

Top bytecodes:
           0 DebugBreakWide
           0 CreateRegExpLiteral
           0 CallProperty2
           0 LdaLookupContextSlotInsideTypeof
           0 AddSmi
           0 Illegal
           0 ThrowSuperAlreadyCalledIfNotHole
           0 CreateWithContext
..........
           0 MulSmi
           0 PushContext
           0 JumpIfJSReceiverConstant
           0 ToString
           0 CreateUnmappedArguments
           0 TestTypeOf

*Script to produce dispatches:*
`v8/out/x64.debug/d8 --no-opt --trace-ignition-codegen 
--trace-ignition-dispatches 
--trace-ignition-dispatches-output-file=~/ignition.json --print-bytecode 
--enable-tracing test.js`

*test.js:*
var i, j = 0;
for (i = 0; i < 1000000; i++) { 
    j = j + 1; i+1;
}

*args.gn:*
is_component_build = true
is_debug = true
symbol_level = 2
target_cpu = "x64"
use_goma = false
goma_dir = "None"
v8_enable_backtrace = true
v8_enable_fast_mksnapshot = true
v8_enable_slow_dchecks = true
v8_optimized_debug = false
enable_profiling = true
v8_enable_trace_maps = true
v8_enable_trace_feedback_updates = true
v8_enable_concurrent_marking = true
v8_enable_gdbjit = true

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to