OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |