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_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast.h" | 10 #include "src/ast.h" |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 DCHECK(loop_depth_ > 0); | 681 DCHECK(loop_depth_ > 0); |
682 loop_depth_--; | 682 loop_depth_--; |
683 } | 683 } |
684 | 684 |
685 MacroAssembler* masm() const { return masm_; } | 685 MacroAssembler* masm() const { return masm_; } |
686 | 686 |
687 class ExpressionContext; | 687 class ExpressionContext; |
688 const ExpressionContext* context() { return context_; } | 688 const ExpressionContext* context() { return context_; } |
689 void set_new_context(const ExpressionContext* context) { context_ = context; } | 689 void set_new_context(const ExpressionContext* context) { context_ = context; } |
690 | 690 |
| 691 Isolate* isolate() const { return info_->isolate(); } |
691 Handle<Script> script() { return info_->script(); } | 692 Handle<Script> script() { return info_->script(); } |
692 bool is_eval() { return info_->is_eval(); } | 693 bool is_eval() { return info_->is_eval(); } |
693 bool is_native() { return info_->is_native(); } | 694 bool is_native() { return info_->is_native(); } |
694 LanguageMode language_mode() { return literal()->language_mode(); } | 695 LanguageMode language_mode() { return literal()->language_mode(); } |
695 bool has_simple_parameters() { return info_->has_simple_parameters(); } | 696 bool has_simple_parameters() { return info_->has_simple_parameters(); } |
696 FunctionLiteral* literal() const { return info_->literal(); } | 697 FunctionLiteral* literal() const { return info_->literal(); } |
697 Scope* scope() { return scope_; } | 698 Scope* scope() { return scope_; } |
698 | 699 |
699 static Register result_register(); | 700 static Register result_register(); |
700 static Register context_register(); | 701 static Register context_register(); |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 Address start_; | 1075 Address start_; |
1075 Address instruction_start_; | 1076 Address instruction_start_; |
1076 uint32_t length_; | 1077 uint32_t length_; |
1077 }; | 1078 }; |
1078 | 1079 |
1079 | 1080 |
1080 } // namespace internal | 1081 } // namespace internal |
1081 } // namespace v8 | 1082 } // namespace v8 |
1082 | 1083 |
1083 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1084 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |