• 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
d8.cc 55.9 KB