OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 <stdarg.h> | 5 #include <stdarg.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
11 #if V8_TARGET_ARCH_ARM | 11 #if V8_TARGET_ARCH_ARM |
12 | 12 |
13 #include "src/disasm.h" | 13 #include "src/arm/constants-arm.h" |
| 14 #include "src/arm/simulator-arm.h" |
14 #include "src/assembler.h" | 15 #include "src/assembler.h" |
15 #include "src/codegen.h" | 16 #include "src/codegen.h" |
16 #include "src/arm/constants-arm.h" | 17 #include "src/disasm.h" |
17 #include "src/arm/simulator-arm.h" | |
18 | 18 |
19 #if defined(USE_SIMULATOR) | 19 #if defined(USE_SIMULATOR) |
20 | 20 |
21 // Only build the simulator if not compiling for real ARM hardware. | 21 // Only build the simulator if not compiling for real ARM hardware. |
22 namespace v8 { | 22 namespace v8 { |
23 namespace internal { | 23 namespace internal { |
24 | 24 |
25 // This macro provides a platform independent use of sscanf. The reason for | 25 // This macro provides a platform independent use of sscanf. The reason for |
26 // SScanF not being implemented in a platform independent way through | 26 // SScanF not being implemented in a platform independent way through |
27 // ::v8::internal::OS in the same way as SNPrintF is that the | 27 // ::v8::internal::OS in the same way as SNPrintF is that the |
(...skipping 3801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3829 uintptr_t address = *stack_slot; | 3829 uintptr_t address = *stack_slot; |
3830 set_register(sp, current_sp + sizeof(uintptr_t)); | 3830 set_register(sp, current_sp + sizeof(uintptr_t)); |
3831 return address; | 3831 return address; |
3832 } | 3832 } |
3833 | 3833 |
3834 } } // namespace v8::internal | 3834 } } // namespace v8::internal |
3835 | 3835 |
3836 #endif // USE_SIMULATOR | 3836 #endif // USE_SIMULATOR |
3837 | 3837 |
3838 #endif // V8_TARGET_ARCH_ARM | 3838 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |