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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 187 bool has_context() const; |
188 bool has_literal() const; | |
189 bool has_scope() const; | 188 bool has_scope() const; |
190 // ----------------------------------------------------------- | 189 // ----------------------------------------------------------- |
191 | 190 |
192 Isolate* isolate() const { | 191 Isolate* isolate() const { |
193 return isolate_; | 192 return isolate_; |
194 } | 193 } |
195 Zone* zone() { return zone_; } | 194 Zone* zone() { return zone_; } |
196 bool is_osr() const { return !osr_ast_id_.IsNone(); } | 195 bool is_osr() const { return !osr_ast_id_.IsNone(); } |
197 Handle<Code> code() const { return code_; } | 196 Handle<Code> code() const { return code_; } |
198 Code::Flags code_flags() const { return code_flags_; } | 197 Code::Flags code_flags() const { return code_flags_; } |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 OptimizedCompileJob* job_; | 641 OptimizedCompileJob* job_; |
643 base::ElapsedTimer timer_; | 642 base::ElapsedTimer timer_; |
644 base::TimeDelta* location_; | 643 base::TimeDelta* location_; |
645 }; | 644 }; |
646 }; | 645 }; |
647 | 646 |
648 } // namespace internal | 647 } // namespace internal |
649 } // namespace v8 | 648 } // namespace v8 |
650 | 649 |
651 #endif // V8_COMPILER_H_ | 650 #endif // V8_COMPILER_H_ |
OLD | NEW |