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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 static bool NeedsHomeObject(Expression* expr) { | 633 static bool NeedsHomeObject(Expression* expr) { |
634 return FunctionLiteral::NeedsHomeObject(expr); | 634 return FunctionLiteral::NeedsHomeObject(expr); |
635 } | 635 } |
636 | 636 |
637 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. | 637 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. |
638 // The value of the initializer is expected to be at the top of the stack. | 638 // The value of the initializer is expected to be at the top of the stack. |
639 // |offset| is the offset in the stack where the home object can be found. | 639 // |offset| is the offset in the stack where the home object can be found. |
640 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); | 640 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); |
641 | 641 |
642 void EmitLoadSuperConstructor(); | 642 void EmitLoadSuperConstructor(); |
643 bool ValidateSuperCall(Call* expr); | |
644 | 643 |
645 void CallIC(Handle<Code> code, | 644 void CallIC(Handle<Code> code, |
646 TypeFeedbackId id = TypeFeedbackId::None()); | 645 TypeFeedbackId id = TypeFeedbackId::None()); |
647 | 646 |
648 void CallLoadIC(ContextualMode mode, | 647 void CallLoadIC(ContextualMode mode, |
649 TypeFeedbackId id = TypeFeedbackId::None()); | 648 TypeFeedbackId id = TypeFeedbackId::None()); |
650 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); | 649 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); |
651 | 650 |
652 void SetFunctionPosition(FunctionLiteral* fun); | 651 void SetFunctionPosition(FunctionLiteral* fun); |
653 void SetReturnPosition(FunctionLiteral* fun); | 652 void SetReturnPosition(FunctionLiteral* fun); |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 | 1040 |
1042 Address start_; | 1041 Address start_; |
1043 Address instruction_start_; | 1042 Address instruction_start_; |
1044 uint32_t length_; | 1043 uint32_t length_; |
1045 }; | 1044 }; |
1046 | 1045 |
1047 | 1046 |
1048 } } // namespace v8::internal | 1047 } } // namespace v8::internal |
1049 | 1048 |
1050 #endif // V8_FULL_CODEGEN_H_ | 1049 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |