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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 561 |
562 // Load a value from a keyed property. | 562 // Load a value from a keyed property. |
563 // The receiver and the key is left on the stack by the IC. | 563 // The receiver and the key is left on the stack by the IC. |
564 void EmitKeyedPropertyLoad(Property* expr); | 564 void EmitKeyedPropertyLoad(Property* expr); |
565 | 565 |
566 // Adds the properties to the class (function) object and to its prototype. | 566 // Adds the properties to the class (function) object and to its prototype. |
567 // Expects the class (function) in the accumulator. The class (function) is | 567 // Expects the class (function) in the accumulator. The class (function) is |
568 // in the accumulator after installing all the properties. | 568 // in the accumulator after installing all the properties. |
569 void EmitClassDefineProperties(ClassLiteral* lit); | 569 void EmitClassDefineProperties(ClassLiteral* lit); |
570 | 570 |
571 // Pushes the property key as a Name on the stack. | |
572 void EmitPropertyKey(ObjectLiteralProperty* property); | |
573 | |
574 // Apply the compound assignment operator. Expects the left operand on top | 571 // Apply the compound assignment operator. Expects the left operand on top |
575 // of the stack and the right one in the accumulator. | 572 // of the stack and the right one in the accumulator. |
576 void EmitBinaryOp(BinaryOperation* expr, | 573 void EmitBinaryOp(BinaryOperation* expr, |
577 Token::Value op, | 574 Token::Value op, |
578 OverwriteMode mode); | 575 OverwriteMode mode); |
579 | 576 |
580 // Helper functions for generating inlined smi code for certain | 577 // Helper functions for generating inlined smi code for certain |
581 // binary operations. | 578 // binary operations. |
582 void EmitInlineSmiBinaryOp(BinaryOperation* expr, | 579 void EmitInlineSmiBinaryOp(BinaryOperation* expr, |
583 Token::Value op, | 580 Token::Value op, |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 | 1036 |
1040 Address start_; | 1037 Address start_; |
1041 Address instruction_start_; | 1038 Address instruction_start_; |
1042 uint32_t length_; | 1039 uint32_t length_; |
1043 }; | 1040 }; |
1044 | 1041 |
1045 | 1042 |
1046 } } // namespace v8::internal | 1043 } } // namespace v8::internal |
1047 | 1044 |
1048 #endif // V8_FULL_CODEGEN_H_ | 1045 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |