| 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" |
| 11 #include "src/compilation-dependencies.h" | 11 #include "src/compilation-dependencies.h" |
| 12 #include "src/scopes.h" |
| 12 #include "src/zone.h" | 13 #include "src/zone.h" |
| 13 | 14 |
| 14 namespace v8 { | 15 namespace v8 { |
| 15 namespace internal { | 16 namespace internal { |
| 16 | 17 |
| 17 class AstValueFactory; | 18 class AstValueFactory; |
| 18 class HydrogenCodeStub; | 19 class HydrogenCodeStub; |
| 19 class ParseInfo; | 20 class ParseInfo; |
| 20 class ScriptData; | 21 class ScriptData; |
| 21 | 22 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 ParseInfo* parse_info() const { return parse_info_; } | 138 ParseInfo* parse_info() const { return parse_info_; } |
| 138 | 139 |
| 139 // ----------------------------------------------------------- | 140 // ----------------------------------------------------------- |
| 140 // TODO(titzer): inline and delete accessors of ParseInfo | 141 // TODO(titzer): inline and delete accessors of ParseInfo |
| 141 // ----------------------------------------------------------- | 142 // ----------------------------------------------------------- |
| 142 Handle<Script> script() const; | 143 Handle<Script> script() const; |
| 143 bool is_eval() const; | 144 bool is_eval() const; |
| 144 bool is_native() const; | 145 bool is_native() const; |
| 145 bool is_module() const; | 146 bool is_module() const; |
| 146 LanguageMode language_mode() const; | 147 LanguageMode language_mode() const; |
| 148 AsmMode asm_mode() const; |
| 147 Handle<JSFunction> closure() const; | 149 Handle<JSFunction> closure() const; |
| 148 FunctionLiteral* function() const; | 150 FunctionLiteral* function() const; |
| 149 Scope* scope() const; | 151 Scope* scope() const; |
| 150 bool MayUseThis() const; | 152 bool MayUseThis() const; |
| 151 Handle<Context> context() const; | 153 Handle<Context> context() const; |
| 152 Handle<SharedFunctionInfo> shared_info() const; | 154 Handle<SharedFunctionInfo> shared_info() const; |
| 153 bool has_shared_info() const; | 155 bool has_shared_info() const; |
| 154 // ----------------------------------------------------------- | 156 // ----------------------------------------------------------- |
| 155 | 157 |
| 156 Isolate* isolate() const { | 158 Isolate* isolate() const { |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 Zone zone_; | 674 Zone zone_; |
| 673 size_t info_zone_start_allocation_size_; | 675 size_t info_zone_start_allocation_size_; |
| 674 base::ElapsedTimer timer_; | 676 base::ElapsedTimer timer_; |
| 675 | 677 |
| 676 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 678 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 677 }; | 679 }; |
| 678 | 680 |
| 679 } } // namespace v8::internal | 681 } } // namespace v8::internal |
| 680 | 682 |
| 681 #endif // V8_COMPILER_H_ | 683 #endif // V8_COMPILER_H_ |
| OLD | NEW |