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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 | 623 |
624 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. | 624 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. |
625 // The value of the initializer is expected to be at the top of the stack. | 625 // The value of the initializer is expected to be at the top of the stack. |
626 // |offset| is the offset in the stack where the home object can be found. | 626 // |offset| is the offset in the stack where the home object can be found. |
627 void EmitSetHomeObject(Expression* initializer, int offset, | 627 void EmitSetHomeObject(Expression* initializer, int offset, |
628 FeedbackVectorSlot slot); | 628 FeedbackVectorSlot slot); |
629 | 629 |
630 void EmitSetHomeObjectAccumulator(Expression* initializer, int offset, | 630 void EmitSetHomeObjectAccumulator(Expression* initializer, int offset, |
631 FeedbackVectorSlot slot); | 631 FeedbackVectorSlot slot); |
632 | 632 |
633 void EmitLoadSuperConstructor(SuperCallReference* super_call_ref); | |
634 | |
635 void CallIC(Handle<Code> code, | 633 void CallIC(Handle<Code> code, |
636 TypeFeedbackId id = TypeFeedbackId::None()); | 634 TypeFeedbackId id = TypeFeedbackId::None()); |
637 | 635 |
638 // Inside typeof reference errors are never thrown. | 636 // Inside typeof reference errors are never thrown. |
639 void CallLoadIC(TypeofMode typeof_mode, LanguageMode language_mode = SLOPPY, | 637 void CallLoadIC(TypeofMode typeof_mode, LanguageMode language_mode = SLOPPY, |
640 TypeFeedbackId id = TypeFeedbackId::None()); | 638 TypeFeedbackId id = TypeFeedbackId::None()); |
641 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); | 639 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); |
642 | 640 |
643 void SetFunctionPosition(FunctionLiteral* fun); | 641 void SetFunctionPosition(FunctionLiteral* fun); |
644 void SetReturnPosition(FunctionLiteral* fun); | 642 void SetReturnPosition(FunctionLiteral* fun); |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 Address start_; | 1044 Address start_; |
1047 Address instruction_start_; | 1045 Address instruction_start_; |
1048 uint32_t length_; | 1046 uint32_t length_; |
1049 }; | 1047 }; |
1050 | 1048 |
1051 | 1049 |
1052 } // namespace internal | 1050 } // namespace internal |
1053 } // namespace v8 | 1051 } // namespace v8 |
1054 | 1052 |
1055 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1053 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |