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/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 MacroAssembler* masm() const { return masm_; } | 693 MacroAssembler* masm() const { return masm_; } |
694 | 694 |
695 class ExpressionContext; | 695 class ExpressionContext; |
696 const ExpressionContext* context() { return context_; } | 696 const ExpressionContext* context() { return context_; } |
697 void set_new_context(const ExpressionContext* context) { context_ = context; } | 697 void set_new_context(const ExpressionContext* context) { context_ = context; } |
698 | 698 |
699 Handle<Script> script() { return info_->script(); } | 699 Handle<Script> script() { return info_->script(); } |
700 bool is_eval() { return info_->is_eval(); } | 700 bool is_eval() { return info_->is_eval(); } |
701 bool is_native() { return info_->is_native(); } | 701 bool is_native() { return info_->is_native(); } |
702 LanguageMode language_mode() { return function()->language_mode(); } | 702 LanguageMode language_mode() { return function()->language_mode(); } |
703 bool is_simple_parameter_list() { return info_->is_simple_parameter_list(); } | 703 bool has_simple_parameters() { return info_->has_simple_parameters(); } |
704 FunctionLiteral* function() { return info_->function(); } | 704 FunctionLiteral* function() { return info_->function(); } |
705 Scope* scope() { return scope_; } | 705 Scope* scope() { return scope_; } |
706 | 706 |
707 static Register result_register(); | 707 static Register result_register(); |
708 static Register context_register(); | 708 static Register context_register(); |
709 | 709 |
710 // Set fields in the stack frame. Offsets are the frame pointer relative | 710 // Set fields in the stack frame. Offsets are the frame pointer relative |
711 // offsets defined in, e.g., StandardFrameConstants. | 711 // offsets defined in, e.g., StandardFrameConstants. |
712 void StoreToFrameField(int frame_offset, Register value); | 712 void StoreToFrameField(int frame_offset, Register value); |
713 | 713 |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 | 1081 |
1082 Address start_; | 1082 Address start_; |
1083 Address instruction_start_; | 1083 Address instruction_start_; |
1084 uint32_t length_; | 1084 uint32_t length_; |
1085 }; | 1085 }; |
1086 | 1086 |
1087 | 1087 |
1088 } } // namespace v8::internal | 1088 } } // namespace v8::internal |
1089 | 1089 |
1090 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1090 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |