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/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 bool is_eval() const; | 177 bool is_eval() const; |
178 bool is_native() const; | 178 bool is_native() const; |
179 bool is_module() const; | 179 bool is_module() const; |
180 LanguageMode language_mode() const; | 180 LanguageMode language_mode() const; |
181 Handle<JSFunction> closure() const; | 181 Handle<JSFunction> closure() const; |
182 FunctionLiteral* literal() const; | 182 FunctionLiteral* literal() const; |
183 Scope* scope() const; | 183 Scope* scope() const; |
184 Handle<Context> context() const; | 184 Handle<Context> context() const; |
185 Handle<SharedFunctionInfo> shared_info() const; | 185 Handle<SharedFunctionInfo> shared_info() const; |
186 bool has_shared_info() const; | 186 bool has_shared_info() const; |
187 bool has_context() const; | |
188 // ----------------------------------------------------------- | 187 // ----------------------------------------------------------- |
189 | 188 |
190 Isolate* isolate() const { | 189 Isolate* isolate() const { |
191 return isolate_; | 190 return isolate_; |
192 } | 191 } |
193 Zone* zone() { return zone_; } | 192 Zone* zone() { return zone_; } |
194 bool is_osr() const { return !osr_ast_id_.IsNone(); } | 193 bool is_osr() const { return !osr_ast_id_.IsNone(); } |
195 Handle<Code> code() const { return code_; } | 194 Handle<Code> code() const { return code_; } |
196 Code::Flags code_flags() const { return code_flags_; } | 195 Code::Flags code_flags() const { return code_flags_; } |
197 BailoutId osr_ast_id() const { return osr_ast_id_; } | 196 BailoutId osr_ast_id() const { return osr_ast_id_; } |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 OptimizedCompileJob* job_; | 633 OptimizedCompileJob* job_; |
635 base::ElapsedTimer timer_; | 634 base::ElapsedTimer timer_; |
636 base::TimeDelta* location_; | 635 base::TimeDelta* location_; |
637 }; | 636 }; |
638 }; | 637 }; |
639 | 638 |
640 } // namespace internal | 639 } // namespace internal |
641 } // namespace v8 | 640 } // namespace v8 |
642 | 641 |
643 #endif // V8_COMPILER_H_ | 642 #endif // V8_COMPILER_H_ |
OLD | NEW |