OLD | NEW |
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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
11 #include "src/bootstrapper.h" | 11 #include "src/bootstrapper.h" |
12 #include "src/codegen.h" | 12 #include "src/codegen.h" |
13 #include "src/debug/debug.h" | 13 #include "src/debug/debug.h" |
14 #include "src/mips/macro-assembler-mips.h" | 14 #include "src/mips/macro-assembler-mips.h" |
15 #include "src/register-configuration.h" | 15 #include "src/register-configuration.h" |
16 #include "src/runtime/runtime.h" | 16 #include "src/runtime/runtime.h" |
17 | 17 |
18 namespace v8 { | 18 namespace v8 { |
19 namespace internal { | 19 namespace internal { |
20 | 20 |
21 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size, | 21 MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size, |
22 CodeObjectRequired create_code_object) | 22 CodeObjectRequired create_code_object) |
23 : Assembler(arg_isolate, buffer, size), | 23 : Assembler(isolate, buffer, size), |
24 generating_stub_(false), | 24 generating_stub_(false), |
25 has_frame_(false), | 25 has_frame_(false), |
26 has_double_zero_reg_set_(false) { | 26 has_double_zero_reg_set_(false), |
| 27 isolate_(isolate) { |
27 if (create_code_object == CodeObjectRequired::kYes) { | 28 if (create_code_object == CodeObjectRequired::kYes) { |
28 code_object_ = | 29 code_object_ = |
29 Handle<Object>::New(isolate()->heap()->undefined_value(), isolate()); | 30 Handle<Object>::New(isolate_->heap()->undefined_value(), isolate_); |
30 } | 31 } |
31 } | 32 } |
32 | 33 |
33 void MacroAssembler::Load(Register dst, | 34 void MacroAssembler::Load(Register dst, |
34 const MemOperand& src, | 35 const MemOperand& src, |
35 Representation r) { | 36 Representation r) { |
36 DCHECK(!r.IsDouble()); | 37 DCHECK(!r.IsDouble()); |
37 if (r.IsInteger8()) { | 38 if (r.IsInteger8()) { |
38 lb(dst, src); | 39 lb(dst, src); |
39 } else if (r.IsUInteger8()) { | 40 } else if (r.IsUInteger8()) { |
(...skipping 6429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6469 if (mag.shift > 0) sra(result, result, mag.shift); | 6470 if (mag.shift > 0) sra(result, result, mag.shift); |
6470 srl(at, dividend, 31); | 6471 srl(at, dividend, 31); |
6471 Addu(result, result, Operand(at)); | 6472 Addu(result, result, Operand(at)); |
6472 } | 6473 } |
6473 | 6474 |
6474 | 6475 |
6475 } // namespace internal | 6476 } // namespace internal |
6476 } // namespace v8 | 6477 } // namespace v8 |
6477 | 6478 |
6478 #endif // V8_TARGET_ARCH_MIPS | 6479 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |