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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 return FunctionLiteral::NeedsHomeObject(expr); | 665 return FunctionLiteral::NeedsHomeObject(expr); |
666 } | 666 } |
667 | 667 |
668 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. | 668 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. |
669 // The value of the initializer is expected to be at the top of the stack. | 669 // The value of the initializer is expected to be at the top of the stack. |
670 // |offset| is the offset in the stack where the home object can be found. | 670 // |offset| is the offset in the stack where the home object can be found. |
671 void EmitSetHomeObjectIfNeeded( | 671 void EmitSetHomeObjectIfNeeded( |
672 Expression* initializer, int offset, | 672 Expression* initializer, int offset, |
673 FeedbackVectorICSlot slot = FeedbackVectorICSlot::Invalid()); | 673 FeedbackVectorICSlot slot = FeedbackVectorICSlot::Invalid()); |
674 | 674 |
675 void EmitLoadSuperConstructor(); | 675 void EmitLoadSuperConstructor(SuperCallReference* super_call_ref); |
676 void EmitInitializeThisAfterSuper( | 676 void EmitInitializeThisAfterSuper( |
677 SuperReference* super_ref, | 677 SuperCallReference* super_call_ref, |
678 FeedbackVectorICSlot slot = FeedbackVectorICSlot::Invalid()); | 678 FeedbackVectorICSlot slot = FeedbackVectorICSlot::Invalid()); |
679 | 679 |
680 void CallIC(Handle<Code> code, | 680 void CallIC(Handle<Code> code, |
681 TypeFeedbackId id = TypeFeedbackId::None()); | 681 TypeFeedbackId id = TypeFeedbackId::None()); |
682 | 682 |
683 void CallLoadIC(ContextualMode mode, | 683 void CallLoadIC(ContextualMode mode, |
684 TypeFeedbackId id = TypeFeedbackId::None()); | 684 TypeFeedbackId id = TypeFeedbackId::None()); |
685 void CallGlobalLoadIC(Handle<String> name); | 685 void CallGlobalLoadIC(Handle<String> name); |
686 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); | 686 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); |
687 | 687 |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 | 1086 |
1087 Address start_; | 1087 Address start_; |
1088 Address instruction_start_; | 1088 Address instruction_start_; |
1089 uint32_t length_; | 1089 uint32_t length_; |
1090 }; | 1090 }; |
1091 | 1091 |
1092 | 1092 |
1093 } } // namespace v8::internal | 1093 } } // namespace v8::internal |
1094 | 1094 |
1095 #endif // V8_FULL_CODEGEN_H_ | 1095 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |