| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |