OLD | NEW |
1 | 1 |
2 // Copyright 2012 the V8 project authors. All rights reserved. | 2 // Copyright 2012 the V8 project authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
7 | 7 |
8 #if V8_TARGET_ARCH_MIPS | 8 #if V8_TARGET_ARCH_MIPS |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
11 #include "src/base/division-by-constant.h" | 11 #include "src/base/division-by-constant.h" |
12 #include "src/bootstrapper.h" | 12 #include "src/bootstrapper.h" |
13 #include "src/codegen.h" | 13 #include "src/codegen.h" |
14 #include "src/debug/debug.h" | 14 #include "src/debug/debug.h" |
15 #include "src/mips/macro-assembler-mips.h" | 15 #include "src/mips/macro-assembler-mips.h" |
16 #include "src/register-configuration.h" | 16 #include "src/register-configuration.h" |
17 #include "src/runtime/runtime.h" | 17 #include "src/runtime/runtime.h" |
18 | 18 |
19 namespace v8 { | 19 namespace v8 { |
20 namespace internal { | 20 namespace internal { |
21 | 21 |
22 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) | 22 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) |
23 : Assembler(arg_isolate, buffer, size), | 23 : Assembler(arg_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 if (isolate() != NULL) { | 27 if (isolate() != NULL) { |
28 code_object_ = Handle<Object>(isolate()->heap()->undefined_value(), | 28 code_object_ = |
29 isolate()); | 29 Handle<Object>::New(isolate()->heap()->undefined_value(), isolate()); |
30 } | 30 } |
31 } | 31 } |
32 | 32 |
33 | 33 |
34 void MacroAssembler::Load(Register dst, | 34 void MacroAssembler::Load(Register dst, |
35 const MemOperand& src, | 35 const MemOperand& src, |
36 Representation r) { | 36 Representation r) { |
37 DCHECK(!r.IsDouble()); | 37 DCHECK(!r.IsDouble()); |
38 if (r.IsInteger8()) { | 38 if (r.IsInteger8()) { |
39 lb(dst, src); | 39 lb(dst, src); |
(...skipping 5890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5930 if (mag.shift > 0) sra(result, result, mag.shift); | 5930 if (mag.shift > 0) sra(result, result, mag.shift); |
5931 srl(at, dividend, 31); | 5931 srl(at, dividend, 31); |
5932 Addu(result, result, Operand(at)); | 5932 Addu(result, result, Operand(at)); |
5933 } | 5933 } |
5934 | 5934 |
5935 | 5935 |
5936 } // namespace internal | 5936 } // namespace internal |
5937 } // namespace v8 | 5937 } // namespace v8 |
5938 | 5938 |
5939 #endif // V8_TARGET_ARCH_MIPS | 5939 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |