Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/mips/simulator-mips.cc

Issue 3825001: Added USE_SIMULATOR macro that explicitly indicates that we wish to use the s... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/simulator-mips.h ('k') | src/v8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/mips/simulator-mips.h ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698