| 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 |
| 571 // Apply the compound assignment operator. Expects the left operand on top | 574 // Apply the compound assignment operator. Expects the left operand on top |
| 572 // of the stack and the right one in the accumulator. | 575 // of the stack and the right one in the accumulator. |
| 573 void EmitBinaryOp(BinaryOperation* expr, | 576 void EmitBinaryOp(BinaryOperation* expr, |
| 574 Token::Value op, | 577 Token::Value op, |
| 575 OverwriteMode mode); | 578 OverwriteMode mode); |
| 576 | 579 |
| 577 // Helper functions for generating inlined smi code for certain | 580 // Helper functions for generating inlined smi code for certain |
| 578 // binary operations. | 581 // binary operations. |
| 579 void EmitInlineSmiBinaryOp(BinaryOperation* expr, | 582 void EmitInlineSmiBinaryOp(BinaryOperation* expr, |
| 580 Token::Value op, | 583 Token::Value op, |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 | 1039 |
| 1037 Address start_; | 1040 Address start_; |
| 1038 Address instruction_start_; | 1041 Address instruction_start_; |
| 1039 uint32_t length_; | 1042 uint32_t length_; |
| 1040 }; | 1043 }; |
| 1041 | 1044 |
| 1042 | 1045 |
| 1043 } } // namespace v8::internal | 1046 } } // namespace v8::internal |
| 1044 | 1047 |
| 1045 #endif // V8_FULL_CODEGEN_H_ | 1048 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |