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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/mksnapshot.cc » ('j') | tools/gyp/v8.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/execution.h" 5 #include "src/execution.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 19 matching lines...) Expand all
30 DCHECK(isolate_ != NULL); 30 DCHECK(isolate_ != NULL);
31 thread_local_.jslimit_ = thread_local_.real_jslimit_; 31 thread_local_.jslimit_ = thread_local_.real_jslimit_;
32 thread_local_.climit_ = thread_local_.real_climit_; 32 thread_local_.climit_ = thread_local_.real_climit_;
33 isolate_->heap()->SetStackLimits(); 33 isolate_->heap()->SetStackLimits();
34 } 34 }
35 35
36 36
37 static void PrintDeserializedCodeInfo(Handle<JSFunction> function) { 37 static void PrintDeserializedCodeInfo(Handle<JSFunction> function) {
38 if (function->code() == function->shared()->code() && 38 if (function->code() == function->shared()->code() &&
39 function->shared()->deserialized()) { 39 function->shared()->deserialized()) {
40 PrintF("Running deserialized script "); 40 PrintF("[Running deserialized script");
41 Object* script = function->shared()->script(); 41 Object* script = function->shared()->script();
42 if (script->IsScript()) Script::cast(script)->name()->ShortPrint(); 42 if (script->IsScript()) {
43 PrintF("\n"); 43 Object* name = Script::cast(script)->name();
44 if (name->IsString()) {
45 PrintF(": %s", String::cast(name)->ToCString().get());
46 }
47 }
48 PrintF("]\n");
44 } 49 }
45 } 50 }
46 51
47 52
48 MUST_USE_RESULT static MaybeHandle<Object> Invoke( 53 MUST_USE_RESULT static MaybeHandle<Object> Invoke(
49 bool is_construct, 54 bool is_construct,
50 Handle<JSFunction> function, 55 Handle<JSFunction> function,
51 Handle<Object> receiver, 56 Handle<Object> receiver,
52 int argc, 57 int argc,
53 Handle<Object> args[]) { 58 Handle<Object> args[]) {
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 } 723 }
719 724
720 isolate_->counters()->stack_interrupts()->Increment(); 725 isolate_->counters()->stack_interrupts()->Increment();
721 isolate_->counters()->runtime_profiler_ticks()->Increment(); 726 isolate_->counters()->runtime_profiler_ticks()->Increment();
722 isolate_->runtime_profiler()->OptimizeNow(); 727 isolate_->runtime_profiler()->OptimizeNow();
723 728
724 return isolate_->heap()->undefined_value(); 729 return isolate_->heap()->undefined_value();
725 } 730 }
726 731
727 } } // namespace v8::internal 732 } } // namespace v8::internal
OLDNEW
« 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