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

Unified Diff: src/execution.cc

Issue 845973003: Embed custom script into the snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/api.cc ('k') | src/mksnapshot.cc » ('j') | tools/gyp/v8.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index a85effd4033ea459032d69486dcdbff3b8d62b74..b09904d949d4e21e7441369b301807cb9289f561 100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -37,10 +37,15 @@ void StackGuard::reset_limits(const ExecutionAccess& lock) {
static void PrintDeserializedCodeInfo(Handle<JSFunction> function) {
if (function->code() == function->shared()->code() &&
function->shared()->deserialized()) {
- PrintF("Running deserialized script ");
+ PrintF("[Running deserialized script");
Object* script = function->shared()->script();
- if (script->IsScript()) Script::cast(script)->name()->ShortPrint();
- PrintF("\n");
+ if (script->IsScript()) {
+ Object* name = Script::cast(script)->name();
+ if (name->IsString()) {
+ PrintF(": %s", String::cast(name)->ToCString().get());
+ }
+ }
+ PrintF("]\n");
}
}
« no previous file with comments | « src/api.cc ('k') | src/mksnapshot.cc » ('j') | tools/gyp/v8.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698