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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // TODO(titzer): inline and delete accessors of ParseInfo | 141 // TODO(titzer): inline and delete accessors of ParseInfo |
142 // ----------------------------------------------------------- | 142 // ----------------------------------------------------------- |
143 Handle<Script> script() const; | 143 Handle<Script> script() const; |
144 bool is_eval() const; | 144 bool is_eval() const; |
145 bool is_native() const; | 145 bool is_native() const; |
146 bool is_module() const; | 146 bool is_module() const; |
147 LanguageMode language_mode() const; | 147 LanguageMode language_mode() const; |
148 Handle<JSFunction> closure() const; | 148 Handle<JSFunction> closure() const; |
149 FunctionLiteral* function() const; | 149 FunctionLiteral* function() const; |
150 Scope* scope() const; | 150 Scope* scope() const; |
| 151 bool MayUseThis() const; |
151 Handle<Context> context() const; | 152 Handle<Context> context() const; |
152 Handle<SharedFunctionInfo> shared_info() const; | 153 Handle<SharedFunctionInfo> shared_info() const; |
153 bool has_shared_info() const; | 154 bool has_shared_info() const; |
154 // ----------------------------------------------------------- | 155 // ----------------------------------------------------------- |
155 | 156 |
156 Isolate* isolate() const { | 157 Isolate* isolate() const { |
157 return isolate_; | 158 return isolate_; |
158 } | 159 } |
159 Zone* zone() { return zone_; } | 160 Zone* zone() { return zone_; } |
160 bool is_osr() const { return !osr_ast_id_.IsNone(); } | 161 bool is_osr() const { return !osr_ast_id_.IsNone(); } |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 Zone zone_; | 675 Zone zone_; |
675 size_t info_zone_start_allocation_size_; | 676 size_t info_zone_start_allocation_size_; |
676 base::ElapsedTimer timer_; | 677 base::ElapsedTimer timer_; |
677 | 678 |
678 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 679 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
679 }; | 680 }; |
680 | 681 |
681 } } // namespace v8::internal | 682 } } // namespace v8::internal |
682 | 683 |
683 #endif // V8_COMPILER_H_ | 684 #endif // V8_COMPILER_H_ |
OLD | NEW |