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

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

Issue 2423053002: Install the 'name' property in classes at runtime (Closed)
Patch Set: Created 4 years, 2 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
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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 548
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 // Adds a static 'name' property to the class (function) object unless an
559 // equally-named static property already exists.
560 void EmitClassDefineNameProperty(ClassLiteral* lit);
561
558 // Pushes the property key as a Name on the stack. 562 // Pushes the property key as a Name on the stack.
559 void EmitPropertyKey(LiteralProperty* property, BailoutId bailout_id); 563 void EmitPropertyKey(LiteralProperty* property, BailoutId bailout_id);
560 564
561 // Apply the compound assignment operator. Expects the left operand on top 565 // Apply the compound assignment operator. Expects the left operand on top
562 // of the stack and the right one in the accumulator. 566 // of the stack and the right one in the accumulator.
563 void EmitBinaryOp(BinaryOperation* expr, Token::Value op); 567 void EmitBinaryOp(BinaryOperation* expr, Token::Value op);
564 568
565 // Helper functions for generating inlined smi code for certain 569 // Helper functions for generating inlined smi code for certain
566 // binary operations. 570 // binary operations.
567 void EmitInlineSmiBinaryOp(BinaryOperation* expr, 571 void EmitInlineSmiBinaryOp(BinaryOperation* expr,
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 Address start_; 1027 Address start_;
1024 Address instruction_start_; 1028 Address instruction_start_;
1025 uint32_t length_; 1029 uint32_t length_;
1026 }; 1030 };
1027 1031
1028 1032
1029 } // namespace internal 1033 } // namespace internal
1030 } // namespace v8 1034 } // namespace v8
1031 1035
1032 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ 1036 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698