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

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

Issue 1394303008: Remove unused Zone argument from InitializeAstVisitor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix cctests Created 5 years, 2 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
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h" 7 #include "src/ast.h"
8 #include "src/ast-numbering.h" 8 #include "src/ast-numbering.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 bool FullCodeGenerator::MustCreateArrayLiteralWithRuntime( 157 bool FullCodeGenerator::MustCreateArrayLiteralWithRuntime(
158 ArrayLiteral* expr) const { 158 ArrayLiteral* expr) const {
159 // TODO(rossberg): Teach strong mode to FastCloneShallowArrayStub. 159 // TODO(rossberg): Teach strong mode to FastCloneShallowArrayStub.
160 return expr->depth() > 1 || expr->is_strong() || 160 return expr->depth() > 1 || expr->is_strong() ||
161 expr->values()->length() > JSArray::kInitialMaxFastElementArray; 161 expr->values()->length() > JSArray::kInitialMaxFastElementArray;
162 } 162 }
163 163
164 164
165 void FullCodeGenerator::Initialize() { 165 void FullCodeGenerator::Initialize() {
166 InitializeAstVisitor(info_->isolate(), info_->zone()); 166 InitializeAstVisitor(info_->isolate());
167 // The generation of debug code must match between the snapshot code and the 167 // The generation of debug code must match between the snapshot code and the
168 // code that is generated later. This is assumed by the debugger when it is 168 // code that is generated later. This is assumed by the debugger when it is
169 // calculating PC offsets after generating a debug version of code. Therefore 169 // calculating PC offsets after generating a debug version of code. Therefore
170 // we disable the production of debug code in the full compiler if we are 170 // we disable the production of debug code in the full compiler if we are
171 // either generating a snapshot or we booted from a snapshot. 171 // either generating a snapshot or we booted from a snapshot.
172 generate_debug_code_ = FLAG_debug_code && !masm_->serializer_enabled() && 172 generate_debug_code_ = FLAG_debug_code && !masm_->serializer_enabled() &&
173 !info_->isolate()->snapshot_available(); 173 !info_->isolate()->snapshot_available();
174 masm_->set_emit_debug_code(generate_debug_code_); 174 masm_->set_emit_debug_code(generate_debug_code_);
175 masm_->set_predictable_code_size(true); 175 masm_->set_predictable_code_size(true);
176 } 176 }
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1608 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1609 var->initializer_position() >= proxy->position(); 1609 var->initializer_position() >= proxy->position();
1610 } 1610 }
1611 1611
1612 1612
1613 #undef __ 1613 #undef __
1614 1614
1615 1615
1616 } // namespace internal 1616 } // namespace internal
1617 } // namespace v8 1617 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698