Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: src/full-codegen/full-codegen.h

Issue 2302643002: Split the AST representation of class properties from object properties (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698