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

Side by Side Diff: src/mips64/macro-assembler-mips64.cc

Issue 2081993002: MIPS: Fix 'MIPS: Followup [turbofan] Introduce new operators Float32SubPreserveNan and Float64SubPr… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/mips/macro-assembler-mips.cc ('k') | no next file » | 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 <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/base/division-by-constant.h" 9 #include "src/base/division-by-constant.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
11 #include "src/codegen.h" 11 #include "src/codegen.h"
12 #include "src/debug/debug.h" 12 #include "src/debug/debug.h"
13 #include "src/mips64/macro-assembler-mips64.h" 13 #include "src/mips64/macro-assembler-mips64.h"
14 #include "src/register-configuration.h" 14 #include "src/register-configuration.h"
15 #include "src/runtime/runtime.h" 15 #include "src/runtime/runtime.h"
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 19
20 // Floating point constants. 20 // Floating point constants.
21 const uint64_t kDoubleSignMask = Double::kSignMask; 21 const uint64_t kDoubleSignMask = Double::kSignMask;
22 const uint32_t kDoubleExponentShift = HeapNumber::kMantissaBits; 22 const uint32_t kDoubleExponentShift = HeapNumber::kMantissaBits;
23 const uint32_t kDoubleNaNShift = kDoubleExponentShift - 1; 23 const uint32_t kDoubleNaNShift = kDoubleExponentShift - 1;
24 const uint64_t kDoubleNaNMask = 24 const uint64_t kDoubleNaNMask = Double::kExponentMask | (1L << kDoubleNaNShift);
25 kDoubleSignMask | Double::kExponentMask | (1L << kDoubleNaNShift);
26 25
27 const uint32_t kSingleSignMask = kBinary32SignMask; 26 const uint32_t kSingleSignMask = kBinary32SignMask;
28 const uint32_t kSingleExponentMask = kBinary32ExponentMask; 27 const uint32_t kSingleExponentMask = kBinary32ExponentMask;
29 const uint32_t kSingleExponentShift = kBinary32ExponentShift; 28 const uint32_t kSingleExponentShift = kBinary32ExponentShift;
30 const uint32_t kSingleNaNShift = kSingleExponentShift - 1; 29 const uint32_t kSingleNaNShift = kSingleExponentShift - 1;
31 const uint32_t kSingleNaNMask = 30 const uint32_t kSingleNaNMask = kSingleExponentMask | (1 << kSingleNaNShift);
32 kSingleSignMask | kSingleExponentMask | (1 << kSingleNaNShift);
33 31
34 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size, 32 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size,
35 CodeObjectRequired create_code_object) 33 CodeObjectRequired create_code_object)
36 : Assembler(arg_isolate, buffer, size), 34 : Assembler(arg_isolate, buffer, size),
37 generating_stub_(false), 35 generating_stub_(false),
38 has_frame_(false), 36 has_frame_(false),
39 has_double_zero_reg_set_(false) { 37 has_double_zero_reg_set_(false) {
40 if (create_code_object == CodeObjectRequired::kYes) { 38 if (create_code_object == CodeObjectRequired::kYes) {
41 code_object_ = 39 code_object_ =
42 Handle<Object>::New(isolate()->heap()->undefined_value(), isolate()); 40 Handle<Object>::New(isolate()->heap()->undefined_value(), isolate());
(...skipping 7177 matching lines...) Expand 10 before | Expand all | Expand 10 after
7220 if (mag.shift > 0) sra(result, result, mag.shift); 7218 if (mag.shift > 0) sra(result, result, mag.shift);
7221 srl(at, dividend, 31); 7219 srl(at, dividend, 31);
7222 Addu(result, result, Operand(at)); 7220 Addu(result, result, Operand(at));
7223 } 7221 }
7224 7222
7225 7223
7226 } // namespace internal 7224 } // namespace internal
7227 } // namespace v8 7225 } // namespace v8
7228 7226
7229 #endif // V8_TARGET_ARCH_MIPS64 7227 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698