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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 2505933008: [compiler] Ensure code unsupported by Crankshaft goes to Ignition. (Closed)
Patch Set: Fix GetBaselineCode Created 4 years 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/crankshaft/hydrogen.cc ('k') | src/objects.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // static 78 // static
79 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 79 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
80 return MakeCode(info, info->isolate()->stack_guard()->real_climit()); 80 return MakeCode(info, info->isolate()->stack_guard()->real_climit());
81 } 81 }
82 82
83 // static 83 // static
84 bool FullCodeGenerator::MakeCode(CompilationInfo* info, uintptr_t stack_limit) { 84 bool FullCodeGenerator::MakeCode(CompilationInfo* info, uintptr_t stack_limit) {
85 Isolate* isolate = info->isolate(); 85 Isolate* isolate = info->isolate();
86 86
87 DCHECK(!info->shared_info()->must_use_ignition_turbo());
87 DCHECK(!FLAG_minimal); 88 DCHECK(!FLAG_minimal);
88 RuntimeCallTimerScope runtimeTimer(isolate, 89 RuntimeCallTimerScope runtimeTimer(isolate,
89 &RuntimeCallStats::CompileFullCode); 90 &RuntimeCallStats::CompileFullCode);
90 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); 91 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
91 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileFullCode"); 92 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileFullCode");
92 93
93 Handle<Script> script = info->script(); 94 Handle<Script> script = info->script();
94 if (!script->IsUndefined(isolate) && 95 if (!script->IsUndefined(isolate) &&
95 !script->source()->IsUndefined(isolate)) { 96 !script->source()->IsUndefined(isolate)) {
96 int len = String::cast(script->source())->length(); 97 int len = String::cast(script->source())->length();
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 return info_->has_simple_parameters(); 1995 return info_->has_simple_parameters();
1995 } 1996 }
1996 1997
1997 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } 1998 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); }
1998 1999
1999 #undef __ 2000 #undef __
2000 2001
2001 2002
2002 } // namespace internal 2003 } // namespace internal
2003 } // namespace v8 2004 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698