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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 // Load a value from a keyed property. | 549 // Load a value from a keyed property. |
550 // The receiver and the key is left on the stack by the IC. | 550 // The receiver and the key is left on the stack by the IC. |
551 void EmitKeyedPropertyLoad(Property* expr); | 551 void EmitKeyedPropertyLoad(Property* expr); |
552 | 552 |
553 // Adds the properties to the class (function) object and to its prototype. | 553 // Adds the properties to the class (function) object and to its prototype. |
554 // Expects the class (function) in the accumulator. The class (function) is | 554 // Expects the class (function) in the accumulator. The class (function) is |
555 // in the accumulator after installing all the properties. | 555 // in the accumulator after installing all the properties. |
556 void EmitClassDefineProperties(ClassLiteral* lit); | 556 void EmitClassDefineProperties(ClassLiteral* lit); |
557 | 557 |
558 // Pushes the property key as a Name on the stack. | 558 // Pushes the property key as a Name on the stack. |
559 void EmitPropertyKey(ObjectLiteralProperty* property, BailoutId bailout_id); | 559 void EmitPropertyKey(LiteralProperty* property, BailoutId bailout_id); |
560 | 560 |
561 // Apply the compound assignment operator. Expects the left operand on top | 561 // Apply the compound assignment operator. Expects the left operand on top |
562 // of the stack and the right one in the accumulator. | 562 // of the stack and the right one in the accumulator. |
563 void EmitBinaryOp(BinaryOperation* expr, Token::Value op); | 563 void EmitBinaryOp(BinaryOperation* expr, Token::Value op); |
564 | 564 |
565 // Helper functions for generating inlined smi code for certain | 565 // Helper functions for generating inlined smi code for certain |
566 // binary operations. | 566 // binary operations. |
567 void EmitInlineSmiBinaryOp(BinaryOperation* expr, | 567 void EmitInlineSmiBinaryOp(BinaryOperation* expr, |
568 Token::Value op, | 568 Token::Value op, |
569 Expression* left, | 569 Expression* left, |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 Address start_; | 1023 Address start_; |
1024 Address instruction_start_; | 1024 Address instruction_start_; |
1025 uint32_t length_; | 1025 uint32_t length_; |
1026 }; | 1026 }; |
1027 | 1027 |
1028 | 1028 |
1029 } // namespace internal | 1029 } // namespace internal |
1030 } // namespace v8 | 1030 } // namespace v8 |
1031 | 1031 |
1032 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1032 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |