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 1563213002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Exclude an ignition test. Created 4 years, 11 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.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/ast-numbering.h" 8 #include "src/ast/ast-numbering.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 11 matching lines...) Expand all
22 namespace internal { 22 namespace internal {
23 23
24 #define __ ACCESS_MASM(masm()) 24 #define __ ACCESS_MASM(masm())
25 25
26 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 26 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
27 Isolate* isolate = info->isolate(); 27 Isolate* isolate = info->isolate();
28 28
29 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); 29 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
30 30
31 // Ensure that the feedback vector is large enough. 31 // Ensure that the feedback vector is large enough.
32 info->EnsureFeedbackVector(); 32 info->EnsureFeedbackMetadata();
33 33
34 Handle<Script> script = info->script(); 34 Handle<Script> script = info->script();
35 if (!script->IsUndefined() && !script->source()->IsUndefined()) { 35 if (!script->IsUndefined() && !script->source()->IsUndefined()) {
36 int len = String::cast(script->source())->length(); 36 int len = String::cast(script->source())->length();
37 isolate->counters()->total_full_codegen_source_size()->Increment(len); 37 isolate->counters()->total_full_codegen_source_size()->Increment(len);
38 } 38 }
39 CodeGenerator::MakeCodePrologue(info, "full"); 39 CodeGenerator::MakeCodePrologue(info, "full");
40 const int kInitialBufferSize = 4 * KB; 40 const int kInitialBufferSize = 4 * KB;
41 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize, 41 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize,
42 CodeObjectRequired::kYes); 42 CodeObjectRequired::kYes);
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1710 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1711 var->initializer_position() >= proxy->position(); 1711 var->initializer_position() >= proxy->position();
1712 } 1712 }
1713 1713
1714 1714
1715 #undef __ 1715 #undef __
1716 1716
1717 1717
1718 } // namespace internal 1718 } // namespace internal
1719 } // namespace v8 1719 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698