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