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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.cc

Issue 1884193003: [arm] Turn off the default NaN mode on arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@arm64-default-nan
Patch Set: Created 4 years, 8 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/common-operator.cc ('k') | test/cctest/wasm/test-run-wasm.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/crankshaft/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 4012 matching lines...) Expand 10 before | Expand all | Expand 10 after
4023 } else { 4023 } else {
4024 int shift_size = (instr->hydrogen()->key()->representation().IsSmi()) 4024 int shift_size = (instr->hydrogen()->key()->representation().IsSmi())
4025 ? (element_size_shift - kSmiTagSize) : element_size_shift; 4025 ? (element_size_shift - kSmiTagSize) : element_size_shift;
4026 __ add(scratch, elements, Operand(base_offset)); 4026 __ add(scratch, elements, Operand(base_offset));
4027 __ add(scratch, scratch, 4027 __ add(scratch, scratch,
4028 Operand(ToRegister(instr->key()), LSL, shift_size)); 4028 Operand(ToRegister(instr->key()), LSL, shift_size));
4029 } 4029 }
4030 4030
4031 if (instr->NeedsCanonicalization()) { 4031 if (instr->NeedsCanonicalization()) {
4032 // Force a canonical NaN. 4032 // Force a canonical NaN.
4033 if (masm()->emit_debug_code()) {
4034 __ vmrs(ip);
4035 __ tst(ip, Operand(kVFPDefaultNaNModeControlBit));
4036 __ Assert(ne, kDefaultNaNModeNotSet);
4037 }
4038 __ VFPCanonicalizeNaN(double_scratch, value); 4033 __ VFPCanonicalizeNaN(double_scratch, value);
4039 __ vstr(double_scratch, scratch, 0); 4034 __ vstr(double_scratch, scratch, 0);
4040 } else { 4035 } else {
4041 __ vstr(value, scratch, 0); 4036 __ vstr(value, scratch, 0);
4042 } 4037 }
4043 } 4038 }
4044 4039
4045 4040
4046 void LCodeGen::DoStoreKeyedFixedArray(LStoreKeyed* instr) { 4041 void LCodeGen::DoStoreKeyedFixedArray(LStoreKeyed* instr) {
4047 Register value = ToRegister(instr->value()); 4042 Register value = ToRegister(instr->value());
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
5546 __ ldr(result, FieldMemOperand(scratch, 5541 __ ldr(result, FieldMemOperand(scratch,
5547 FixedArray::kHeaderSize - kPointerSize)); 5542 FixedArray::kHeaderSize - kPointerSize));
5548 __ bind(deferred->exit()); 5543 __ bind(deferred->exit());
5549 __ bind(&done); 5544 __ bind(&done);
5550 } 5545 }
5551 5546
5552 #undef __ 5547 #undef __
5553 5548
5554 } // namespace internal 5549 } // namespace internal
5555 } // namespace v8 5550 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | test/cctest/wasm/test-run-wasm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698