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