| 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_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 void EmitNamedSuperPropertyLoad(Property* expr); | 528 void EmitNamedSuperPropertyLoad(Property* expr); |
| 529 | 529 |
| 530 // Load a value from super[keyed] property. | 530 // Load a value from super[keyed] property. |
| 531 // Expect receiver ('this' value), home_object and key on the stack. | 531 // Expect receiver ('this' value), home_object and key on the stack. |
| 532 void EmitKeyedSuperPropertyLoad(Property* expr); | 532 void EmitKeyedSuperPropertyLoad(Property* expr); |
| 533 | 533 |
| 534 // Load a value from a keyed property. | 534 // Load a value from a keyed property. |
| 535 // The receiver and the key is left on the stack by the IC. | 535 // The receiver and the key is left on the stack by the IC. |
| 536 void EmitKeyedPropertyLoad(Property* expr); | 536 void EmitKeyedPropertyLoad(Property* expr); |
| 537 | 537 |
| 538 // Adds the properties to the class (function) object and to its prototype. | |
| 539 // Expects the class (function) in the accumulator. The class (function) is | |
| 540 // in the accumulator after installing all the properties. | |
| 541 void EmitClassDefineProperties(ClassLiteral* lit); | |
| 542 | |
| 543 // Pushes the property key as a Name on the stack. | 538 // Pushes the property key as a Name on the stack. |
| 544 void EmitPropertyKey(LiteralProperty* property, BailoutId bailout_id); | 539 void EmitPropertyKey(LiteralProperty* property, BailoutId bailout_id); |
| 545 | 540 |
| 546 // Apply the compound assignment operator. Expects the left operand on top | 541 // Apply the compound assignment operator. Expects the left operand on top |
| 547 // of the stack and the right one in the accumulator. | 542 // of the stack and the right one in the accumulator. |
| 548 void EmitBinaryOp(BinaryOperation* expr, Token::Value op); | 543 void EmitBinaryOp(BinaryOperation* expr, Token::Value op); |
| 549 | 544 |
| 550 // Helper functions for generating inlined smi code for certain | 545 // Helper functions for generating inlined smi code for certain |
| 551 // binary operations. | 546 // binary operations. |
| 552 void EmitInlineSmiBinaryOp(BinaryOperation* expr, | 547 void EmitInlineSmiBinaryOp(BinaryOperation* expr, |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 Address start_; | 1002 Address start_; |
| 1008 Address instruction_start_; | 1003 Address instruction_start_; |
| 1009 uint32_t length_; | 1004 uint32_t length_; |
| 1010 }; | 1005 }; |
| 1011 | 1006 |
| 1012 | 1007 |
| 1013 } // namespace internal | 1008 } // namespace internal |
| 1014 } // namespace v8 | 1009 } // namespace v8 |
| 1015 | 1010 |
| 1016 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1011 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| OLD | NEW |