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/cpu-profiler.h" | |
15 #include "src/debug/debug.h" | 14 #include "src/debug/debug.h" |
16 #include "src/mips/macro-assembler-mips.h" | 15 #include "src/mips/macro-assembler-mips.h" |
17 #include "src/runtime/runtime.h" | 16 #include "src/runtime/runtime.h" |
18 | 17 |
19 namespace v8 { | 18 namespace v8 { |
20 namespace internal { | 19 namespace internal { |
21 | 20 |
22 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) | 21 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) |
23 : Assembler(arg_isolate, buffer, size), | 22 : Assembler(arg_isolate, buffer, size), |
24 generating_stub_(false), | 23 generating_stub_(false), |
(...skipping 5902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5927 if (mag.shift > 0) sra(result, result, mag.shift); | 5926 if (mag.shift > 0) sra(result, result, mag.shift); |
5928 srl(at, dividend, 31); | 5927 srl(at, dividend, 31); |
5929 Addu(result, result, Operand(at)); | 5928 Addu(result, result, Operand(at)); |
5930 } | 5929 } |
5931 | 5930 |
5932 | 5931 |
5933 } // namespace internal | 5932 } // namespace internal |
5934 } // namespace v8 | 5933 } // namespace v8 |
5935 | 5934 |
5936 #endif // V8_TARGET_ARCH_MIPS | 5935 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |