Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Unified Diff: src/snapshot/serialize.cc

Issue 1728593002: [Interpreter] Add support for cpu profiler logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-function.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/serialize.cc
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc
index 4868abd520bf272d721c49c216a32e0e734a52f0..ad7f42838454ba04f4c01fd931a92b8fa15c91a1 100644
--- a/src/snapshot/serialize.cc
+++ b/src/snapshot/serialize.cc
@@ -387,15 +387,12 @@ class CodeAddressMap: public CodeEventLogger {
isolate_->logger()->removeCodeEventListener(this);
}
- void CodeMoveEvent(Address from, Address to) override {
- address_to_name_map_.Move(from, to);
+ void CodeMoveEvent(AbstractCode* from, Address to) override {
+ address_to_name_map_.Move(from->address(), to);
}
- void CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared) override {}
-
- void CodeDeleteEvent(Address from) override {
- address_to_name_map_.Remove(from);
- }
+ void CodeDisableOptEvent(AbstractCode* code,
+ SharedFunctionInfo* shared) override {}
const char* Lookup(Address address) {
return address_to_name_map_.Lookup(address);
@@ -473,8 +470,8 @@ class CodeAddressMap: public CodeEventLogger {
DISALLOW_COPY_AND_ASSIGN(NameMap);
};
- void LogRecordedBuffer(Code* code, SharedFunctionInfo*, const char* name,
- int length) override {
+ void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo*,
+ const char* name, int length) override {
address_to_name_map_.Insert(code->address(), name, length);
}
@@ -2635,7 +2632,8 @@ MaybeHandle<SharedFunctionInfo> CodeSerializer::Deserialize(
Script* script = Script::cast(result->script());
if (script->name()->IsString()) name = String::cast(script->name());
}
- isolate->logger()->CodeCreateEvent(Logger::SCRIPT_TAG, result->code(),
+ isolate->logger()->CodeCreateEvent(Logger::SCRIPT_TAG,
+ AbstractCode::cast(result->code()),
*result, NULL, name);
}
return scope.CloseAndEscape(result);
« no previous file with comments | « src/runtime/runtime-function.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698