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

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

Issue 2732273003: Disentangle assembler from isolate. (Closed)
Patch Set: Address feedback. Created 3 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/mips64/macro-assembler-mips64.h ('k') | src/objects.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 <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"
(...skipping 11 matching lines...) Expand all
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 = Double::kExponentMask | (1L << kDoubleNaNShift); 24 const uint64_t kDoubleNaNMask = Double::kExponentMask | (1L << kDoubleNaNShift);
25 25
26 const uint32_t kSingleSignMask = kBinary32SignMask; 26 const uint32_t kSingleSignMask = kBinary32SignMask;
27 const uint32_t kSingleExponentMask = kBinary32ExponentMask; 27 const uint32_t kSingleExponentMask = kBinary32ExponentMask;
28 const uint32_t kSingleExponentShift = kBinary32ExponentShift; 28 const uint32_t kSingleExponentShift = kBinary32ExponentShift;
29 const uint32_t kSingleNaNShift = kSingleExponentShift - 1; 29 const uint32_t kSingleNaNShift = kSingleExponentShift - 1;
30 const uint32_t kSingleNaNMask = kSingleExponentMask | (1 << kSingleNaNShift); 30 const uint32_t kSingleNaNMask = kSingleExponentMask | (1 << kSingleNaNShift);
31 31
32 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size, 32 MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
33 CodeObjectRequired create_code_object) 33 CodeObjectRequired create_code_object)
34 : Assembler(arg_isolate, buffer, size), 34 : Assembler(isolate, buffer, size),
35 generating_stub_(false), 35 generating_stub_(false),
36 has_frame_(false), 36 has_frame_(false),
37 has_double_zero_reg_set_(false) { 37 has_double_zero_reg_set_(false),
38 isolate_(isolate) {
38 if (create_code_object == CodeObjectRequired::kYes) { 39 if (create_code_object == CodeObjectRequired::kYes) {
39 code_object_ = 40 code_object_ =
40 Handle<Object>::New(isolate()->heap()->undefined_value(), isolate()); 41 Handle<Object>::New(isolate_->heap()->undefined_value(), isolate_);
41 } 42 }
42 } 43 }
43 44
44 void MacroAssembler::Load(Register dst, 45 void MacroAssembler::Load(Register dst,
45 const MemOperand& src, 46 const MemOperand& src,
46 Representation r) { 47 Representation r) {
47 DCHECK(!r.IsDouble()); 48 DCHECK(!r.IsDouble());
48 if (r.IsInteger8()) { 49 if (r.IsInteger8()) {
49 lb(dst, src); 50 lb(dst, src);
50 } else if (r.IsUInteger8()) { 51 } else if (r.IsUInteger8()) {
(...skipping 6825 matching lines...) Expand 10 before | Expand all | Expand 10 after
6876 if (mag.shift > 0) sra(result, result, mag.shift); 6877 if (mag.shift > 0) sra(result, result, mag.shift);
6877 srl(at, dividend, 31); 6878 srl(at, dividend, 31);
6878 Addu(result, result, Operand(at)); 6879 Addu(result, result, Operand(at));
6879 } 6880 }
6880 6881
6881 6882
6882 } // namespace internal 6883 } // namespace internal
6883 } // namespace v8 6884 } // namespace v8
6884 6885
6885 #endif // V8_TARGET_ARCH_MIPS64 6886 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698