| 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_H_ | 5 #ifndef V8_FULL_CODEGEN_H_ |
| 6 #define V8_FULL_CODEGEN_H_ | 6 #define V8_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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 MacroAssembler* masm() { return masm_; } | 677 MacroAssembler* masm() { return masm_; } |
| 678 | 678 |
| 679 class ExpressionContext; | 679 class ExpressionContext; |
| 680 const ExpressionContext* context() { return context_; } | 680 const ExpressionContext* context() { return context_; } |
| 681 void set_new_context(const ExpressionContext* context) { context_ = context; } | 681 void set_new_context(const ExpressionContext* context) { context_ = context; } |
| 682 | 682 |
| 683 Handle<Script> script() { return info_->script(); } | 683 Handle<Script> script() { return info_->script(); } |
| 684 bool is_eval() { return info_->is_eval(); } | 684 bool is_eval() { return info_->is_eval(); } |
| 685 bool is_native() { return info_->is_native(); } | 685 bool is_native() { return info_->is_native(); } |
| 686 LanguageMode language_mode() { return function()->language_mode(); } | 686 LanguageMode language_mode() { return function()->language_mode(); } |
| 687 bool is_simple_parameter_list() { return info_->is_simple_parameter_list(); } |
| 687 FunctionLiteral* function() { return info_->function(); } | 688 FunctionLiteral* function() { return info_->function(); } |
| 688 Scope* scope() { return scope_; } | 689 Scope* scope() { return scope_; } |
| 689 | 690 |
| 690 static Register result_register(); | 691 static Register result_register(); |
| 691 static Register context_register(); | 692 static Register context_register(); |
| 692 | 693 |
| 693 // Set fields in the stack frame. Offsets are the frame pointer relative | 694 // Set fields in the stack frame. Offsets are the frame pointer relative |
| 694 // offsets defined in, e.g., StandardFrameConstants. | 695 // offsets defined in, e.g., StandardFrameConstants. |
| 695 void StoreToFrameField(int frame_offset, Register value); | 696 void StoreToFrameField(int frame_offset, Register value); |
| 696 | 697 |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 | 1048 |
| 1048 Address start_; | 1049 Address start_; |
| 1049 Address instruction_start_; | 1050 Address instruction_start_; |
| 1050 uint32_t length_; | 1051 uint32_t length_; |
| 1051 }; | 1052 }; |
| 1052 | 1053 |
| 1053 | 1054 |
| 1054 } } // namespace v8::internal | 1055 } } // namespace v8::internal |
| 1055 | 1056 |
| 1056 #endif // V8_FULL_CODEGEN_H_ | 1057 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |