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