OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 11 matching lines...) Expand all Loading... |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #include <stdlib.h> | 28 #include <stdlib.h> |
29 #include <cstdarg> | 29 #include <cstdarg> |
30 #include "v8.h" | 30 #include "v8.h" |
31 | 31 |
| 32 #if defined(V8_TARGET_ARCH_ARM) |
| 33 |
32 #include "disasm.h" | 34 #include "disasm.h" |
33 #include "assembler.h" | 35 #include "assembler.h" |
34 #include "arm/constants-arm.h" | 36 #include "arm/constants-arm.h" |
35 #include "arm/simulator-arm.h" | 37 #include "arm/simulator-arm.h" |
36 | 38 |
37 #if !defined(__arm__) | 39 #if !defined(__arm__) |
38 | 40 |
39 // Only build the simulator if not compiling for real ARM hardware. | 41 // Only build the simulator if not compiling for real ARM hardware. |
40 namespace assembler { | 42 namespace assembler { |
41 namespace arm { | 43 namespace arm { |
(...skipping 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2724 int current_sp = get_register(sp); | 2726 int current_sp = get_register(sp); |
2725 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp); | 2727 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp); |
2726 uintptr_t address = *stack_slot; | 2728 uintptr_t address = *stack_slot; |
2727 set_register(sp, current_sp + sizeof(uintptr_t)); | 2729 set_register(sp, current_sp + sizeof(uintptr_t)); |
2728 return address; | 2730 return address; |
2729 } | 2731 } |
2730 | 2732 |
2731 } } // namespace assembler::arm | 2733 } } // namespace assembler::arm |
2732 | 2734 |
2733 #endif // __arm__ | 2735 #endif // __arm__ |
| 2736 |
| 2737 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |