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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 // Load a value from a keyed property. | 573 // Load a value from a keyed property. |
574 // The receiver and the key is left on the stack by the IC. | 574 // The receiver and the key is left on the stack by the IC. |
575 void EmitKeyedPropertyLoad(Property* expr); | 575 void EmitKeyedPropertyLoad(Property* expr); |
576 | 576 |
577 // Adds the properties to the class (function) object and to its prototype. | 577 // Adds the properties to the class (function) object and to its prototype. |
578 // Expects the class (function) in the accumulator. The class (function) is | 578 // Expects the class (function) in the accumulator. The class (function) is |
579 // in the accumulator after installing all the properties. | 579 // in the accumulator after installing all the properties. |
580 void EmitClassDefineProperties(ClassLiteral* lit); | 580 void EmitClassDefineProperties(ClassLiteral* lit); |
581 | 581 |
582 // Pushes the property key as a Name on the stack. | 582 // Pushes the property key as a Name on the stack. |
583 void EmitPropertyKey(ObjectLiteralProperty* property); | 583 void EmitPropertyKey(ObjectLiteralProperty* property, BailoutId bailout_id); |
584 | 584 |
585 // Apply the compound assignment operator. Expects the left operand on top | 585 // Apply the compound assignment operator. Expects the left operand on top |
586 // of the stack and the right one in the accumulator. | 586 // of the stack and the right one in the accumulator. |
587 void EmitBinaryOp(BinaryOperation* expr, | 587 void EmitBinaryOp(BinaryOperation* expr, |
588 Token::Value op, | 588 Token::Value op, |
589 OverwriteMode mode); | 589 OverwriteMode mode); |
590 | 590 |
591 // Helper functions for generating inlined smi code for certain | 591 // Helper functions for generating inlined smi code for certain |
592 // binary operations. | 592 // binary operations. |
593 void EmitInlineSmiBinaryOp(BinaryOperation* expr, | 593 void EmitInlineSmiBinaryOp(BinaryOperation* expr, |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 | 1050 |
1051 Address start_; | 1051 Address start_; |
1052 Address instruction_start_; | 1052 Address instruction_start_; |
1053 uint32_t length_; | 1053 uint32_t length_; |
1054 }; | 1054 }; |
1055 | 1055 |
1056 | 1056 |
1057 } } // namespace v8::internal | 1057 } } // namespace v8::internal |
1058 | 1058 |
1059 #endif // V8_FULL_CODEGEN_H_ | 1059 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |