OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 <assert.h> // For assert | 5 #include <assert.h> // For assert |
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_PPC | 8 #if V8_TARGET_ARCH_PPC |
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/ppc/macro-assembler-ppc.h" | 15 #include "src/ppc/macro-assembler-ppc.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 4350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4375 } | 4374 } |
4376 if (mag.shift > 0) srawi(result, result, mag.shift); | 4375 if (mag.shift > 0) srawi(result, result, mag.shift); |
4377 ExtractBit(r0, dividend, 31); | 4376 ExtractBit(r0, dividend, 31); |
4378 add(result, result, r0); | 4377 add(result, result, r0); |
4379 } | 4378 } |
4380 | 4379 |
4381 } // namespace internal | 4380 } // namespace internal |
4382 } // namespace v8 | 4381 } // namespace v8 |
4383 | 4382 |
4384 #endif // V8_TARGET_ARCH_PPC | 4383 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |