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

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

Issue 1727953004: [fullcodegen] Factor out EmitLoadStoreICSlot from archs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/ast-numbering.h" 8 #include "src/ast/ast-numbering.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 } 1069 }
1070 1070
1071 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, 1071 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property,
1072 BailoutId bailout_id) { 1072 BailoutId bailout_id) {
1073 VisitForStackValue(property->key()); 1073 VisitForStackValue(property->key());
1074 CallRuntimeWithOperands(Runtime::kToName); 1074 CallRuntimeWithOperands(Runtime::kToName);
1075 PrepareForBailoutForId(bailout_id, NO_REGISTERS); 1075 PrepareForBailoutForId(bailout_id, NO_REGISTERS);
1076 PushOperand(result_register()); 1076 PushOperand(result_register());
1077 } 1077 }
1078 1078
1079 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
1080 DCHECK(!slot.IsInvalid());
1081 __ Move(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot));
1082 }
1079 1083
1080 void FullCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { 1084 void FullCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) {
1081 Comment cmnt(masm_, "[ ReturnStatement"); 1085 Comment cmnt(masm_, "[ ReturnStatement");
1082 SetStatementPosition(stmt); 1086 SetStatementPosition(stmt);
1083 Expression* expr = stmt->expression(); 1087 Expression* expr = stmt->expression();
1084 VisitForAccumulatorValue(expr); 1088 VisitForAccumulatorValue(expr);
1085 EmitUnwindAndReturn(); 1089 EmitUnwindAndReturn();
1086 } 1090 }
1087 1091
1088 1092
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1923 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1920 var->initializer_position() >= proxy->position(); 1924 var->initializer_position() >= proxy->position();
1921 } 1925 }
1922 1926
1923 1927
1924 #undef __ 1928 #undef __
1925 1929
1926 1930
1927 } // namespace internal 1931 } // namespace internal
1928 } // namespace v8 1932 } // 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