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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
556 void EmitNamedSuperPropertyLoad(Property* expr); | 556 void EmitNamedSuperPropertyLoad(Property* expr); |
557 | 557 |
558 // Load a value from super[keyed] property. | 558 // Load a value from super[keyed] property. |
559 // Expect receiver ('this' value), home_object and key on the stack. | 559 // Expect receiver ('this' value), home_object and key on the stack. |
560 void EmitKeyedSuperPropertyLoad(Property* expr); | 560 void EmitKeyedSuperPropertyLoad(Property* expr); |
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. | |
567 // Expects the class (function) in the accumulator. | |
Dmitry Lomov (no reviews)
2014/10/27 21:37:13
Nit: add a comment that accumulator contains const
arv (Not doing code reviews)
2014/10/28 09:42:00
Done.
Dmitry Lomov (no reviews)
2014/10/28 10:34:08
Acknowledged.
| |
568 void EmitClassDefineProperties(ClassLiteral* lit); | |
569 | |
566 // Apply the compound assignment operator. Expects the left operand on top | 570 // Apply the compound assignment operator. Expects the left operand on top |
567 // of the stack and the right one in the accumulator. | 571 // of the stack and the right one in the accumulator. |
568 void EmitBinaryOp(BinaryOperation* expr, | 572 void EmitBinaryOp(BinaryOperation* expr, |
569 Token::Value op, | 573 Token::Value op, |
570 OverwriteMode mode); | 574 OverwriteMode mode); |
571 | 575 |
572 // Helper functions for generating inlined smi code for certain | 576 // Helper functions for generating inlined smi code for certain |
573 // binary operations. | 577 // binary operations. |
574 void EmitInlineSmiBinaryOp(BinaryOperation* expr, | 578 void EmitInlineSmiBinaryOp(BinaryOperation* expr, |
575 Token::Value op, | 579 Token::Value op, |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
993 | 997 |
994 Address start_; | 998 Address start_; |
995 Address instruction_start_; | 999 Address instruction_start_; |
996 uint32_t length_; | 1000 uint32_t length_; |
997 }; | 1001 }; |
998 | 1002 |
999 | 1003 |
1000 } } // namespace v8::internal | 1004 } } // namespace v8::internal |
1001 | 1005 |
1002 #endif // V8_FULL_CODEGEN_H_ | 1006 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |