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 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #if V8_TARGET_ARCH_PPC | 10 #if V8_TARGET_ARCH_PPC |
11 | 11 |
12 #include "src/base/bits.h" | 12 #include "src/base/bits.h" |
13 #include "src/base/division-by-constant.h" | 13 #include "src/base/division-by-constant.h" |
14 #include "src/bootstrapper.h" | 14 #include "src/bootstrapper.h" |
15 #include "src/codegen.h" | 15 #include "src/codegen.h" |
16 #include "src/cpu-profiler.h" | 16 #include "src/cpu-profiler.h" |
17 #include "src/debug.h" | 17 #include "src/debug/debug.h" |
18 #include "src/runtime/runtime.h" | 18 #include "src/runtime/runtime.h" |
19 | 19 |
20 namespace v8 { | 20 namespace v8 { |
21 namespace internal { | 21 namespace internal { |
22 | 22 |
23 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) | 23 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) |
24 : Assembler(arg_isolate, buffer, size), | 24 : Assembler(arg_isolate, buffer, size), |
25 generating_stub_(false), | 25 generating_stub_(false), |
26 has_frame_(false) { | 26 has_frame_(false) { |
27 if (isolate() != NULL) { | 27 if (isolate() != NULL) { |
(...skipping 4614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4642 } | 4642 } |
4643 if (mag.shift > 0) srawi(result, result, mag.shift); | 4643 if (mag.shift > 0) srawi(result, result, mag.shift); |
4644 ExtractBit(r0, dividend, 31); | 4644 ExtractBit(r0, dividend, 31); |
4645 add(result, result, r0); | 4645 add(result, result, r0); |
4646 } | 4646 } |
4647 | 4647 |
4648 } // namespace internal | 4648 } // namespace internal |
4649 } // namespace v8 | 4649 } // namespace v8 |
4650 | 4650 |
4651 #endif // V8_TARGET_ARCH_PPC | 4651 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |