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

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

Issue 2664083002: [ignition] desugar async functions/generators/modules in BytecodeGenerator
Patch Set: get rid of lambdas, for better or worse.. Created 3 years, 10 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698