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

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

Issue 2411873004: [ignition] Eliminate hole checks where statically possible for loads and stores (Closed)
Patch Set: Rebased 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 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 context()->Plug(r2); 1214 context()->Plug(r2);
1215 break; 1215 break;
1216 } 1216 }
1217 1217
1218 case VariableLocation::PARAMETER: 1218 case VariableLocation::PARAMETER:
1219 case VariableLocation::LOCAL: 1219 case VariableLocation::LOCAL:
1220 case VariableLocation::CONTEXT: { 1220 case VariableLocation::CONTEXT: {
1221 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); 1221 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode);
1222 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" 1222 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable"
1223 : "[ Stack variable"); 1223 : "[ Stack variable");
1224 if (NeedsHoleCheckForLoad(proxy)) { 1224 if (proxy->needs_hole_check()) {
1225 // Throw a reference error when using an uninitialized let/const 1225 // Throw a reference error when using an uninitialized let/const
1226 // binding in harmony mode. 1226 // binding in harmony mode.
1227 Label done; 1227 Label done;
1228 GetVar(r2, var); 1228 GetVar(r2, var);
1229 __ CompareRoot(r2, Heap::kTheHoleValueRootIndex); 1229 __ CompareRoot(r2, Heap::kTheHoleValueRootIndex);
1230 __ bne(&done); 1230 __ bne(&done);
1231 __ mov(r2, Operand(var->name())); 1231 __ mov(r2, Operand(var->name()));
1232 __ push(r2); 1232 __ push(r2);
1233 __ CallRuntime(Runtime::kThrowReferenceError); 1233 __ CallRuntime(Runtime::kThrowReferenceError);
1234 __ bind(&done); 1234 __ bind(&done);
(...skipping 2304 matching lines...) Expand 10 before | Expand all | Expand 10 after
3539 DCHECK(kOSRBranchInstruction == br_instr); 3539 DCHECK(kOSRBranchInstruction == br_instr);
3540 3540
3541 DCHECK(interrupt_address == 3541 DCHECK(interrupt_address ==
3542 isolate->builtins()->OnStackReplacement()->entry()); 3542 isolate->builtins()->OnStackReplacement()->entry());
3543 return ON_STACK_REPLACEMENT; 3543 return ON_STACK_REPLACEMENT;
3544 } 3544 }
3545 3545
3546 } // namespace internal 3546 } // namespace internal
3547 } // namespace v8 3547 } // namespace v8
3548 #endif // V8_TARGET_ARCH_S390 3548 #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