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

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

Issue 2367693002: [fullcodegen] Refactor code that calls load ICs. (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
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 __ bne(done); 1192 __ bne(done);
1193 __ mov(r2, Operand(var->name())); 1193 __ mov(r2, Operand(var->name()));
1194 __ push(r2); 1194 __ push(r2);
1195 __ CallRuntime(Runtime::kThrowReferenceError); 1195 __ CallRuntime(Runtime::kThrowReferenceError);
1196 } else { 1196 } else {
1197 __ b(done); 1197 __ b(done);
1198 } 1198 }
1199 } 1199 }
1200 } 1200 }
1201 1201
1202 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy,
1203 TypeofMode typeof_mode) {
1204 #ifdef DEBUG
1205 Variable* var = proxy->var();
1206 DCHECK(var->IsUnallocated() ||
1207 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL));
1208 #endif
1209 __ mov(LoadGlobalDescriptor::SlotRegister(),
1210 Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
1211 CallLoadGlobalIC(typeof_mode);
1212 }
1213
1214 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, 1202 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
1215 TypeofMode typeof_mode) { 1203 TypeofMode typeof_mode) {
1216 // Record position before possible IC call. 1204 // Record position before possible IC call.
1217 SetExpressionPosition(proxy); 1205 SetExpressionPosition(proxy);
1218 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); 1206 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS);
1219 Variable* var = proxy->var(); 1207 Variable* var = proxy->var();
1220 1208
1221 // Three cases: global variables, lookup variables, and all other types of 1209 // Three cases: global variables, lookup variables, and all other types of
1222 // variables. 1210 // variables.
1223 switch (var->location()) { 1211 switch (var->location()) {
(...skipping 2379 matching lines...) Expand 10 before | Expand all | Expand 10 after
3603 DCHECK(kOSRBranchInstruction == br_instr); 3591 DCHECK(kOSRBranchInstruction == br_instr);
3604 3592
3605 DCHECK(interrupt_address == 3593 DCHECK(interrupt_address ==
3606 isolate->builtins()->OnStackReplacement()->entry()); 3594 isolate->builtins()->OnStackReplacement()->entry());
3607 return ON_STACK_REPLACEMENT; 3595 return ON_STACK_REPLACEMENT;
3608 } 3596 }
3609 3597
3610 } // namespace internal 3598 } // namespace internal
3611 } // namespace v8 3599 } // namespace v8
3612 #endif // V8_TARGET_ARCH_S390 3600 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698