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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 | 640 |
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(SuperReference* expr); | 650 void EmitLoadSuperConstructor(); |
651 | 651 |
652 void CallIC(Handle<Code> code, | 652 void CallIC(Handle<Code> code, |
653 TypeFeedbackId id = TypeFeedbackId::None()); | 653 TypeFeedbackId id = TypeFeedbackId::None()); |
654 | 654 |
655 void CallLoadIC(ContextualMode mode, | 655 void CallLoadIC(ContextualMode mode, |
656 TypeFeedbackId id = TypeFeedbackId::None()); | 656 TypeFeedbackId id = TypeFeedbackId::None()); |
657 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); | 657 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); |
658 | 658 |
659 void SetFunctionPosition(FunctionLiteral* fun); | 659 void SetFunctionPosition(FunctionLiteral* fun); |
660 void SetReturnPosition(FunctionLiteral* fun); | 660 void SetReturnPosition(FunctionLiteral* fun); |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 | 1047 |
1048 Address start_; | 1048 Address start_; |
1049 Address instruction_start_; | 1049 Address instruction_start_; |
1050 uint32_t length_; | 1050 uint32_t length_; |
1051 }; | 1051 }; |
1052 | 1052 |
1053 | 1053 |
1054 } } // namespace v8::internal | 1054 } } // namespace v8::internal |
1055 | 1055 |
1056 #endif // V8_FULL_CODEGEN_H_ | 1056 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |