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 630 matching lines...) Loading... |
641 static bool NeedsHomeObject(Expression* expr) { | 641 static bool NeedsHomeObject(Expression* expr) { |
642 return FunctionLiteral::NeedsHomeObject(expr); | 642 return FunctionLiteral::NeedsHomeObject(expr); |
643 } | 643 } |
644 | 644 |
645 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. | 645 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. |
646 // The value of the initializer is expected to be at the top of the stack. | 646 // The value of the initializer is expected to be at the top of the stack. |
647 // |offset| is the offset in the stack where the home object can be found. | 647 // |offset| is the offset in the stack where the home object can be found. |
648 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); | 648 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); |
649 | 649 |
650 void EmitLoadSuperConstructor(); | 650 void EmitLoadSuperConstructor(); |
| 651 bool ValidateSuperCall(Call* expr); |
651 | 652 |
652 void CallIC(Handle<Code> code, | 653 void CallIC(Handle<Code> code, |
653 TypeFeedbackId id = TypeFeedbackId::None()); | 654 TypeFeedbackId id = TypeFeedbackId::None()); |
654 | 655 |
655 void CallLoadIC(ContextualMode mode, | 656 void CallLoadIC(ContextualMode mode, |
656 TypeFeedbackId id = TypeFeedbackId::None()); | 657 TypeFeedbackId id = TypeFeedbackId::None()); |
657 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); | 658 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); |
658 | 659 |
659 void SetFunctionPosition(FunctionLiteral* fun); | 660 void SetFunctionPosition(FunctionLiteral* fun); |
660 void SetReturnPosition(FunctionLiteral* fun); | 661 void SetReturnPosition(FunctionLiteral* fun); |
(...skipping 386 matching lines...) Loading... |
1047 | 1048 |
1048 Address start_; | 1049 Address start_; |
1049 Address instruction_start_; | 1050 Address instruction_start_; |
1050 uint32_t length_; | 1051 uint32_t length_; |
1051 }; | 1052 }; |
1052 | 1053 |
1053 | 1054 |
1054 } } // namespace v8::internal | 1055 } } // namespace v8::internal |
1055 | 1056 |
1056 #endif // V8_FULL_CODEGEN_H_ | 1057 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |