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.h" |
18 #include "src/isolate-inl.h" | |
19 #include "src/runtime/runtime.h" | 18 #include "src/runtime/runtime.h" |
20 | 19 |
21 namespace v8 { | 20 namespace v8 { |
22 namespace internal { | 21 namespace internal { |
23 | 22 |
24 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) | 23 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) |
25 : Assembler(arg_isolate, buffer, size), | 24 : Assembler(arg_isolate, buffer, size), |
26 generating_stub_(false), | 25 generating_stub_(false), |
27 has_frame_(false) { | 26 has_frame_(false) { |
28 if (isolate() != NULL) { | 27 if (isolate() != NULL) { |
(...skipping 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4524 } | 4523 } |
4525 if (mag.shift > 0) srawi(result, result, mag.shift); | 4524 if (mag.shift > 0) srawi(result, result, mag.shift); |
4526 ExtractBit(r0, dividend, 31); | 4525 ExtractBit(r0, dividend, 31); |
4527 add(result, result, r0); | 4526 add(result, result, r0); |
4528 } | 4527 } |
4529 | 4528 |
4530 } // namespace internal | 4529 } // namespace internal |
4531 } // namespace v8 | 4530 } // namespace v8 |
4532 | 4531 |
4533 #endif // V8_TARGET_ARCH_PPC | 4532 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |