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

Side by Side Diff: src/execution.cc

Issue 656533003: Special handling for inline caches in code serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/builtins.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
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()) { 42 if (script->IsScript()) Script::cast(script)->name()->ShortPrint();
43 Script::cast(script)->name()->ShortPrint();
44 } else {
45 function->shared()->script()->ShortPrint();
46 }
47 PrintF("\n"); 43 PrintF("\n");
48 } 44 }
49 } 45 }
50 46
51 47
52 MUST_USE_RESULT static MaybeHandle<Object> Invoke( 48 MUST_USE_RESULT static MaybeHandle<Object> Invoke(
53 bool is_construct, 49 bool is_construct,
54 Handle<JSFunction> function, 50 Handle<JSFunction> function,
55 Handle<Object> receiver, 51 Handle<Object> receiver,
56 int argc, 52 int argc,
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 } 712 }
717 713
718 isolate_->counters()->stack_interrupts()->Increment(); 714 isolate_->counters()->stack_interrupts()->Increment();
719 isolate_->counters()->runtime_profiler_ticks()->Increment(); 715 isolate_->counters()->runtime_profiler_ticks()->Increment();
720 isolate_->runtime_profiler()->OptimizeNow(); 716 isolate_->runtime_profiler()->OptimizeNow();
721 717
722 return isolate_->heap()->undefined_value(); 718 return isolate_->heap()->undefined_value();
723 } 719 }
724 720
725 } } // namespace v8::internal 721 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698