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

Side by Side Diff: src/compiler.h

Issue 660083005: AstNumberingVisitor does the work of AstConstructionVisitor (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 void SetFunction(FunctionLiteral* literal) { 229 void SetFunction(FunctionLiteral* literal) {
230 DCHECK(function_ == NULL); 230 DCHECK(function_ == NULL);
231 function_ = literal; 231 function_ = literal;
232 } 232 }
233 void PrepareForCompilation(Scope* scope); 233 void PrepareForCompilation(Scope* scope);
234 void SetGlobalScope(Scope* global_scope) { 234 void SetGlobalScope(Scope* global_scope) {
235 DCHECK(global_scope_ == NULL); 235 DCHECK(global_scope_ == NULL);
236 global_scope_ = global_scope; 236 global_scope_ = global_scope;
237 } 237 }
238 void EnsureFeedbackVector();
238 Handle<TypeFeedbackVector> feedback_vector() const { 239 Handle<TypeFeedbackVector> feedback_vector() const {
239 return feedback_vector_; 240 return feedback_vector_;
240 } 241 }
241 void SetCode(Handle<Code> code) { code_ = code; } 242 void SetCode(Handle<Code> code) { code_ = code; }
242 void SetExtension(v8::Extension* extension) { 243 void SetExtension(v8::Extension* extension) {
243 DCHECK(!is_lazy()); 244 DCHECK(!is_lazy());
244 extension_ = extension; 245 extension_ = extension;
245 } 246 }
246 void SetCachedData(ScriptData** cached_data, 247 void SetCachedData(ScriptData** cached_data,
247 ScriptCompiler::CompileOptions compile_options) { 248 ScriptCompiler::CompileOptions compile_options) {
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 Zone zone_; 746 Zone zone_;
746 unsigned info_zone_start_allocation_size_; 747 unsigned info_zone_start_allocation_size_;
747 base::ElapsedTimer timer_; 748 base::ElapsedTimer timer_;
748 749
749 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 750 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
750 }; 751 };
751 752
752 } } // namespace v8::internal 753 } } // namespace v8::internal
753 754
754 #endif // V8_COMPILER_H_ 755 #endif // V8_COMPILER_H_
OLDNEW
« src/ast-numbering.cc ('K') | « src/ast-numbering.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698