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

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

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/full-codegen.h ('k') | src/full-codegen/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 #include "src/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 CallIC(ic); 1095 CallIC(ic);
1096 if (FLAG_tf_load_ic_stub) RestoreContext(); 1096 if (FLAG_tf_load_ic_stub) RestoreContext();
1097 } 1097 }
1098 1098
1099 void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) { 1099 void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) {
1100 // Stack: receiver, home_object, key. 1100 // Stack: receiver, home_object, key.
1101 SetExpressionPosition(prop); 1101 SetExpressionPosition(prop);
1102 CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper); 1102 CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper);
1103 } 1103 }
1104 1104
1105 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, 1105 void FullCodeGenerator::EmitPropertyKey(LiteralProperty* property,
1106 BailoutId bailout_id) { 1106 BailoutId bailout_id) {
1107 VisitForStackValue(property->key()); 1107 VisitForStackValue(property->key());
1108 CallRuntimeWithOperands(Runtime::kToName); 1108 CallRuntimeWithOperands(Runtime::kToName);
1109 PrepareForBailoutForId(bailout_id, BailoutState::TOS_REGISTER); 1109 PrepareForBailoutForId(bailout_id, BailoutState::TOS_REGISTER);
1110 PushOperand(result_register()); 1110 PushOperand(result_register());
1111 } 1111 }
1112 1112
1113 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { 1113 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
1114 DCHECK(!slot.IsInvalid()); 1114 DCHECK(!slot.IsInvalid());
1115 __ Move(StoreDescriptor::SlotRegister(), SmiFromSlot(slot)); 1115 __ Move(StoreDescriptor::SlotRegister(), SmiFromSlot(slot));
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 return info_->has_simple_parameters(); 2013 return info_->has_simple_parameters();
2014 } 2014 }
2015 2015
2016 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } 2016 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); }
2017 2017
2018 #undef __ 2018 #undef __
2019 2019
2020 2020
2021 } // namespace internal 2021 } // namespace internal
2022 } // namespace v8 2022 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698