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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { | 81 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
82 return MakeCode(info, info->isolate()->stack_guard()->real_climit()); | 82 return MakeCode(info, info->isolate()->stack_guard()->real_climit()); |
83 } | 83 } |
84 | 84 |
85 // static | 85 // static |
86 bool FullCodeGenerator::MakeCode(CompilationInfo* info, uintptr_t stack_limit) { | 86 bool FullCodeGenerator::MakeCode(CompilationInfo* info, uintptr_t stack_limit) { |
87 Isolate* isolate = info->isolate(); | 87 Isolate* isolate = info->isolate(); |
88 | 88 |
89 DCHECK(!info->shared_info()->must_use_ignition_turbo()); | 89 DCHECK(!info->shared_info()->must_use_ignition_turbo()); |
90 DCHECK(!FLAG_minimal); | 90 DCHECK(!FLAG_minimal); |
| 91 DCHECK_NULL(info->literal()->parameter_init_block()); |
91 RuntimeCallTimerScope runtimeTimer(isolate, | 92 RuntimeCallTimerScope runtimeTimer(isolate, |
92 &RuntimeCallStats::CompileFullCode); | 93 &RuntimeCallStats::CompileFullCode); |
93 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); | 94 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); |
94 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileFullCode"); | 95 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileFullCode"); |
95 | 96 |
96 Handle<Script> script = info->script(); | 97 Handle<Script> script = info->script(); |
97 if (!script->IsUndefined(isolate) && | 98 if (!script->IsUndefined(isolate) && |
98 !script->source()->IsUndefined(isolate)) { | 99 !script->source()->IsUndefined(isolate)) { |
99 int len = String::cast(script->source())->length(); | 100 int len = String::cast(script->source())->length(); |
100 isolate->counters()->total_full_codegen_source_size()->Increment(len); | 101 isolate->counters()->total_full_codegen_source_size()->Increment(len); |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 | 1614 |
1614 const FeedbackVectorSpec* FullCodeGenerator::feedback_vector_spec() const { | 1615 const FeedbackVectorSpec* FullCodeGenerator::feedback_vector_spec() const { |
1615 return literal()->feedback_vector_spec(); | 1616 return literal()->feedback_vector_spec(); |
1616 } | 1617 } |
1617 | 1618 |
1618 #undef __ | 1619 #undef __ |
1619 | 1620 |
1620 | 1621 |
1621 } // namespace internal | 1622 } // namespace internal |
1622 } // namespace v8 | 1623 } // namespace v8 |
OLD | NEW |