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

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

Issue 1135243004: [es6] Support super.property in eval and arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code review cleanup Created 5 years, 7 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/compiler/ast-graph-builder.cc ('k') | src/ia32/full-codegen-ia32.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_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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 669
670 // Complete a super named property assignment. The right-hand-side value 670 // Complete a super named property assignment. The right-hand-side value
671 // is expected in accumulator. 671 // is expected in accumulator.
672 void EmitKeyedSuperPropertyStore(Property* prop); 672 void EmitKeyedSuperPropertyStore(Property* prop);
673 673
674 // Complete a keyed property assignment. The receiver and key are 674 // Complete a keyed property assignment. The receiver and key are
675 // expected on top of the stack and the right-hand-side value in the 675 // expected on top of the stack and the right-hand-side value in the
676 // accumulator. 676 // accumulator.
677 void EmitKeyedPropertyAssignment(Assignment* expr); 677 void EmitKeyedPropertyAssignment(Assignment* expr);
678 678
679 void EmitLoadHomeObject(SuperReference* expr);
680
681 static bool NeedsHomeObject(Expression* expr) { 679 static bool NeedsHomeObject(Expression* expr) {
682 return FunctionLiteral::NeedsHomeObject(expr); 680 return FunctionLiteral::NeedsHomeObject(expr);
683 } 681 }
684 682
685 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. 683 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral.
686 // The value of the initializer is expected to be at the top of the stack. 684 // The value of the initializer is expected to be at the top of the stack.
687 // |offset| is the offset in the stack where the home object can be found. 685 // |offset| is the offset in the stack where the home object can be found.
688 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset); 686 void EmitSetHomeObjectIfNeeded(Expression* initializer, int offset);
689 687
690 void EmitLoadSuperConstructor(); 688 void EmitLoadSuperConstructor();
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 1094
1097 Address start_; 1095 Address start_;
1098 Address instruction_start_; 1096 Address instruction_start_;
1099 uint32_t length_; 1097 uint32_t length_;
1100 }; 1098 };
1101 1099
1102 1100
1103 } } // namespace v8::internal 1101 } } // namespace v8::internal
1104 1102
1105 #endif // V8_FULL_CODEGEN_H_ 1103 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698