OLD | NEW |
---|---|
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 Loading... | |
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 if (info->shared_info()->must_use_ignition_turbo()) return false; | |
Michael Starzinger
2016/11/22 14:53:50
I assume turning this into a DCHECK doesn't work y
rmcilroy
2016/11/22 17:24:02
The issue was EnsureDeoptimizationSupport. I've mo
| |
88 | |
87 DCHECK(!FLAG_minimal); | 89 DCHECK(!FLAG_minimal); |
88 RuntimeCallTimerScope runtimeTimer(isolate, | 90 RuntimeCallTimerScope runtimeTimer(isolate, |
89 &RuntimeCallStats::CompileFullCode); | 91 &RuntimeCallStats::CompileFullCode); |
90 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); | 92 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); |
91 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileFullCode"); | 93 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileFullCode"); |
92 | 94 |
93 Handle<Script> script = info->script(); | 95 Handle<Script> script = info->script(); |
94 if (!script->IsUndefined(isolate) && | 96 if (!script->IsUndefined(isolate) && |
95 !script->source()->IsUndefined(isolate)) { | 97 !script->source()->IsUndefined(isolate)) { |
96 int len = String::cast(script->source())->length(); | 98 int len = String::cast(script->source())->length(); |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1994 return info_->has_simple_parameters(); | 1996 return info_->has_simple_parameters(); |
1995 } | 1997 } |
1996 | 1998 |
1997 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } | 1999 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } |
1998 | 2000 |
1999 #undef __ | 2001 #undef __ |
2000 | 2002 |
2001 | 2003 |
2002 } // namespace internal | 2004 } // namespace internal |
2003 } // namespace v8 | 2005 } // namespace v8 |
OLD | NEW |