| 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 } | 686 } |
| 687 | 687 |
| 688 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. | 688 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. |
| 689 // The value of the initializer is expected to be at the top of the stack. | 689 // The value of the initializer is expected to be at the top of the stack. |
| 690 // |offset| is the offset in the stack where the home object can be found. | 690 // |offset| is the offset in the stack where the home object can be found. |
| 691 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); | 691 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); |
| 692 | 692 |
| 693 void EmitLoadSuperConstructor(); | 693 void EmitLoadSuperConstructor(); |
| 694 void EmitInitializeThisAfterSuper(SuperReference* super_ref); | 694 void EmitInitializeThisAfterSuper(SuperReference* super_ref); |
| 695 | 695 |
| 696 void EmitAssignNewTarget(Variable* new_target_var); |
| 697 |
| 696 void CallIC(Handle<Code> code, | 698 void CallIC(Handle<Code> code, |
| 697 TypeFeedbackId id = TypeFeedbackId::None()); | 699 TypeFeedbackId id = TypeFeedbackId::None()); |
| 698 | 700 |
| 699 void CallLoadIC(ContextualMode mode, | 701 void CallLoadIC(ContextualMode mode, |
| 700 TypeFeedbackId id = TypeFeedbackId::None()); | 702 TypeFeedbackId id = TypeFeedbackId::None()); |
| 701 void CallGlobalLoadIC(Handle<String> name); | 703 void CallGlobalLoadIC(Handle<String> name); |
| 702 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); | 704 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); |
| 703 | 705 |
| 704 void SetFunctionPosition(FunctionLiteral* fun); | 706 void SetFunctionPosition(FunctionLiteral* fun); |
| 705 void SetReturnPosition(FunctionLiteral* fun); | 707 void SetReturnPosition(FunctionLiteral* fun); |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 | 1100 |
| 1099 Address start_; | 1101 Address start_; |
| 1100 Address instruction_start_; | 1102 Address instruction_start_; |
| 1101 uint32_t length_; | 1103 uint32_t length_; |
| 1102 }; | 1104 }; |
| 1103 | 1105 |
| 1104 | 1106 |
| 1105 } } // namespace v8::internal | 1107 } } // namespace v8::internal |
| 1106 | 1108 |
| 1107 #endif // V8_FULL_CODEGEN_H_ | 1109 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |