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/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 | 698 |
699 class ExpressionContext; | 699 class ExpressionContext; |
700 const ExpressionContext* context() { return context_; } | 700 const ExpressionContext* context() { return context_; } |
701 void set_new_context(const ExpressionContext* context) { context_ = context; } | 701 void set_new_context(const ExpressionContext* context) { context_ = context; } |
702 | 702 |
703 Isolate* isolate() const { return isolate_; } | 703 Isolate* isolate() const { return isolate_; } |
704 Zone* zone() const { return zone_; } | 704 Zone* zone() const { return zone_; } |
705 Handle<Script> script() { return info_->script(); } | 705 Handle<Script> script() { return info_->script(); } |
706 bool is_eval() { return info_->is_eval(); } | 706 bool is_eval() { return info_->is_eval(); } |
707 bool is_native() { return info_->is_native(); } | 707 bool is_native() { return info_->is_native(); } |
708 LanguageMode language_mode() { return literal()->language_mode(); } | 708 LanguageMode language_mode() { return scope()->language_mode(); } |
709 bool has_simple_parameters() { return info_->has_simple_parameters(); } | 709 bool has_simple_parameters() { return info_->has_simple_parameters(); } |
710 FunctionLiteral* literal() const { return info_->literal(); } | 710 FunctionLiteral* literal() const { return info_->literal(); } |
711 Scope* scope() { return scope_; } | 711 Scope* scope() { return scope_; } |
712 | 712 |
713 static Register context_register(); | 713 static Register context_register(); |
714 | 714 |
715 // Get fields from the stack frame. Offsets are the frame pointer relative | 715 // Get fields from the stack frame. Offsets are the frame pointer relative |
716 // offsets defined in, e.g., StandardFrameConstants. | 716 // offsets defined in, e.g., StandardFrameConstants. |
717 void LoadFromFrameField(int frame_offset, Register value); | 717 void LoadFromFrameField(int frame_offset, Register value); |
718 // Set fields in the stack frame. Offsets are the frame pointer relative | 718 // Set fields in the stack frame. Offsets are the frame pointer relative |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 Address start_; | 1049 Address start_; |
1050 Address instruction_start_; | 1050 Address instruction_start_; |
1051 uint32_t length_; | 1051 uint32_t length_; |
1052 }; | 1052 }; |
1053 | 1053 |
1054 | 1054 |
1055 } // namespace internal | 1055 } // namespace internal |
1056 } // namespace v8 | 1056 } // namespace v8 |
1057 | 1057 |
1058 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1058 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |