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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 | 669 |
670 // Complete a super named property assignment. The right-hand-side value | 670 // Complete a super named property assignment. The right-hand-side value |
671 // is expected in accumulator. | 671 // is expected in accumulator. |
672 void EmitKeyedSuperPropertyStore(Property* prop); | 672 void EmitKeyedSuperPropertyStore(Property* prop); |
673 | 673 |
674 // Complete a keyed property assignment. The receiver and key are | 674 // Complete a keyed property assignment. The receiver and key are |
675 // expected on top of the stack and the right-hand-side value in the | 675 // expected on top of the stack and the right-hand-side value in the |
676 // accumulator. | 676 // accumulator. |
677 void EmitKeyedPropertyAssignment(Assignment* expr); | 677 void EmitKeyedPropertyAssignment(Assignment* expr); |
678 | 678 |
679 void EmitLoadHomeObject(SuperReference* expr); | |
680 | |
681 static bool NeedsHomeObject(Expression* expr) { | 679 static bool NeedsHomeObject(Expression* expr) { |
682 return FunctionLiteral::NeedsHomeObject(expr); | 680 return FunctionLiteral::NeedsHomeObject(expr); |
683 } | 681 } |
684 | 682 |
685 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. | 683 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. |
686 // The value of the initializer is expected to be at the top of the stack. | 684 // The value of the initializer is expected to be at the top of the stack. |
687 // |offset| is the offset in the stack where the home object can be found. | 685 // |offset| is the offset in the stack where the home object can be found. |
688 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); | 686 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); |
689 | 687 |
690 void EmitLoadSuperConstructor(); | 688 void EmitLoadSuperConstructor(); |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 | 1094 |
1097 Address start_; | 1095 Address start_; |
1098 Address instruction_start_; | 1096 Address instruction_start_; |
1099 uint32_t length_; | 1097 uint32_t length_; |
1100 }; | 1098 }; |
1101 | 1099 |
1102 | 1100 |
1103 } } // namespace v8::internal | 1101 } } // namespace v8::internal |
1104 | 1102 |
1105 #endif // V8_FULL_CODEGEN_H_ | 1103 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |