| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 bool is_native() const; | 147 bool is_native() const; |
| 148 bool is_module() const; | 148 bool is_module() const; |
| 149 LanguageMode language_mode() const; | 149 LanguageMode language_mode() const; |
| 150 Handle<JSFunction> closure() const; | 150 Handle<JSFunction> closure() const; |
| 151 FunctionLiteral* function() const; | 151 FunctionLiteral* function() const; |
| 152 Scope* scope() const; | 152 Scope* scope() const; |
| 153 bool MayUseThis() const; | 153 bool MayUseThis() const; |
| 154 Handle<Context> context() const; | 154 Handle<Context> context() const; |
| 155 Handle<SharedFunctionInfo> shared_info() const; | 155 Handle<SharedFunctionInfo> shared_info() const; |
| 156 bool has_shared_info() const; | 156 bool has_shared_info() const; |
| 157 bool has_context() const; |
| 157 // ----------------------------------------------------------- | 158 // ----------------------------------------------------------- |
| 158 | 159 |
| 159 Isolate* isolate() const { | 160 Isolate* isolate() const { |
| 160 return isolate_; | 161 return isolate_; |
| 161 } | 162 } |
| 162 Zone* zone() { return zone_; } | 163 Zone* zone() { return zone_; } |
| 163 bool is_osr() const { return !osr_ast_id_.IsNone(); } | 164 bool is_osr() const { return !osr_ast_id_.IsNone(); } |
| 164 Handle<Code> code() const { return code_; } | 165 Handle<Code> code() const { return code_; } |
| 165 CodeStub* code_stub() const { return code_stub_; } | 166 CodeStub* code_stub() const { return code_stub_; } |
| 166 BailoutId osr_ast_id() const { return osr_ast_id_; } | 167 BailoutId osr_ast_id() const { return osr_ast_id_; } |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 Zone zone_; | 700 Zone zone_; |
| 700 size_t info_zone_start_allocation_size_; | 701 size_t info_zone_start_allocation_size_; |
| 701 base::ElapsedTimer timer_; | 702 base::ElapsedTimer timer_; |
| 702 | 703 |
| 703 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 704 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 704 }; | 705 }; |
| 705 | 706 |
| 706 } } // namespace v8::internal | 707 } } // namespace v8::internal |
| 707 | 708 |
| 708 #endif // V8_COMPILER_H_ | 709 #endif // V8_COMPILER_H_ |
| OLD | NEW |