• vegorov's avatar
    Make counter and histogram related callbacks part of the Isolate::CreateParams. · 0e024449
    vegorov authored
    Some native counters (e.g. KeyedLoadGenericSlow) are referenced from stubs that are generated very early in the Isolate lifecycle before v8::Isolate::New returns. Thus counter lookup callback also needs to be installed early prior to v8::internal::Isolate::Init call. Otherwise assembler will just assume that the counter is not enabled and produce no code from IncrementCounter - because address of the counter is not yet available.
    
    Histogram related callbacks are moved for consistency to make them able to collect samples which occur at isolate initialization time.
    
    BUG=
    
    Review URL: https://codereview.chromium.org/1010233002
    
    Cr-Commit-Position: refs/heads/master@{#27262}
    0e024449
Name
Last commit
Last update
..
libplatform Loading commit data...
v8-debug.h Loading commit data...
v8-platform.h Loading commit data...
v8-profiler.h Loading commit data...
v8-testing.h Loading commit data...
v8-util.h Loading commit data...
v8-version.h Loading commit data...
v8.h Loading commit data...
v8config.h Loading commit data...