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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 // is expected in accumulator. | 607 // is expected in accumulator. |
608 void EmitKeyedSuperPropertyStore(Property* prop); | 608 void EmitKeyedSuperPropertyStore(Property* prop); |
609 | 609 |
610 // Complete a keyed property assignment. The receiver and key are | 610 // Complete a keyed property assignment. The receiver and key are |
611 // expected on top of the stack and the right-hand-side value in the | 611 // expected on top of the stack and the right-hand-side value in the |
612 // accumulator. | 612 // accumulator. |
613 void EmitKeyedPropertyAssignment(Assignment* expr); | 613 void EmitKeyedPropertyAssignment(Assignment* expr); |
614 | 614 |
615 void EmitLoadHomeObject(SuperReference* expr); | 615 void EmitLoadHomeObject(SuperReference* expr); |
616 | 616 |
| 617 // Adds the [[HomeObject]] to |expr| if it is a FunctionLiteral. |
| 618 // The value of the expr is expected to be at the top of the stack. |
| 619 // |offset| is the offset in the stack where the home object can be found. |
| 620 void EmitSetHomeObject(Expression* expr, int offset); |
| 621 |
617 void EmitLoadSuperConstructor(SuperReference* expr); | 622 void EmitLoadSuperConstructor(SuperReference* expr); |
618 | 623 |
619 void CallIC(Handle<Code> code, | 624 void CallIC(Handle<Code> code, |
620 TypeFeedbackId id = TypeFeedbackId::None()); | 625 TypeFeedbackId id = TypeFeedbackId::None()); |
621 | 626 |
622 void CallLoadIC(ContextualMode mode, | 627 void CallLoadIC(ContextualMode mode, |
623 TypeFeedbackId id = TypeFeedbackId::None()); | 628 TypeFeedbackId id = TypeFeedbackId::None()); |
624 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); | 629 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); |
625 | 630 |
626 void SetFunctionPosition(FunctionLiteral* fun); | 631 void SetFunctionPosition(FunctionLiteral* fun); |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 | 1003 |
999 Address start_; | 1004 Address start_; |
1000 Address instruction_start_; | 1005 Address instruction_start_; |
1001 uint32_t length_; | 1006 uint32_t length_; |
1002 }; | 1007 }; |
1003 | 1008 |
1004 | 1009 |
1005 } } // namespace v8::internal | 1010 } } // namespace v8::internal |
1006 | 1011 |
1007 #endif // V8_FULL_CODEGEN_H_ | 1012 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |