| 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 21 matching lines...) Expand all Loading... |
| 32 #if defined(V8_TARGET_ARCH_MIPS) | 32 #if defined(V8_TARGET_ARCH_MIPS) |
| 33 | 33 |
| 34 #include "disasm.h" | 34 #include "disasm.h" |
| 35 #include "assembler.h" | 35 #include "assembler.h" |
| 36 #include "globals.h" // Need the BitCast | 36 #include "globals.h" // Need the BitCast |
| 37 #include "mips/constants-mips.h" | 37 #include "mips/constants-mips.h" |
| 38 #include "mips/simulator-mips.h" | 38 #include "mips/simulator-mips.h" |
| 39 | 39 |
| 40 namespace v8i = v8::internal; | 40 namespace v8i = v8::internal; |
| 41 | 41 |
| 42 #if !defined(__mips) | 42 #if !defined(__mips) || defined(USE_SIMULATOR) |
| 43 | 43 |
| 44 // Only build the simulator if not compiling for real MIPS hardware. | 44 // Only build the simulator if not compiling for real MIPS hardware. |
| 45 namespace assembler { | 45 namespace assembler { |
| 46 namespace mips { | 46 namespace mips { |
| 47 | 47 |
| 48 using ::v8::internal::Object; | 48 using ::v8::internal::Object; |
| 49 using ::v8::internal::PrintF; | 49 using ::v8::internal::PrintF; |
| 50 using ::v8::internal::OS; | 50 using ::v8::internal::OS; |
| 51 using ::v8::internal::ReadLine; | 51 using ::v8::internal::ReadLine; |
| 52 using ::v8::internal::DeleteArray; | 52 using ::v8::internal::DeleteArray; |
| (...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 uintptr_t address = *stack_slot; | 1638 uintptr_t address = *stack_slot; |
| 1639 set_register(sp, current_sp + sizeof(uintptr_t)); | 1639 set_register(sp, current_sp + sizeof(uintptr_t)); |
| 1640 return address; | 1640 return address; |
| 1641 } | 1641 } |
| 1642 | 1642 |
| 1643 | 1643 |
| 1644 #undef UNSUPPORTED | 1644 #undef UNSUPPORTED |
| 1645 | 1645 |
| 1646 } } // namespace assembler::mips | 1646 } } // namespace assembler::mips |
| 1647 | 1647 |
| 1648 #endif // __mips | 1648 #endif // !__mips || USE_SIMULATOR |
| 1649 | 1649 |
| 1650 #endif // V8_TARGET_ARCH_MIPS | 1650 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |