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

Side by Side Diff: src/compiler.h

Issue 670953003: Move feedback slot allocation to post-pass (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased patch 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
« no previous file with comments | « src/ast-numbering.cc ('k') | src/compiler.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 #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 SetScriptScope(Scope* script_scope) { 234 void SetScriptScope(Scope* script_scope) {
235 DCHECK(script_scope_ == NULL); 235 DCHECK(script_scope_ == NULL);
236 script_scope_ = script_scope; 236 script_scope_ = script_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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 Zone zone_; 749 Zone zone_;
749 unsigned info_zone_start_allocation_size_; 750 unsigned info_zone_start_allocation_size_;
750 base::ElapsedTimer timer_; 751 base::ElapsedTimer timer_;
751 752
752 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 753 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
753 }; 754 };
754 755
755 } } // namespace v8::internal 756 } } // namespace v8::internal
756 757
757 #endif // V8_COMPILER_H_ 758 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698