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

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

Issue 4044003: Clean up definitions in simulator. ... (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/arm/simulator-arm.h ('k') | src/globals.h » ('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 19 matching lines...) Expand all
30 #include <cstdarg> 30 #include <cstdarg>
31 #include "v8.h" 31 #include "v8.h"
32 32
33 #if defined(V8_TARGET_ARCH_ARM) 33 #if defined(V8_TARGET_ARCH_ARM)
34 34
35 #include "disasm.h" 35 #include "disasm.h"
36 #include "assembler.h" 36 #include "assembler.h"
37 #include "arm/constants-arm.h" 37 #include "arm/constants-arm.h"
38 #include "arm/simulator-arm.h" 38 #include "arm/simulator-arm.h"
39 39
40 #if !defined(__arm__) || defined(USE_SIMULATOR) 40 #if defined(USE_SIMULATOR)
41 41
42 // Only build the simulator if not compiling for real ARM hardware. 42 // Only build the simulator if not compiling for real ARM hardware.
43 namespace assembler { 43 namespace assembler {
44 namespace arm { 44 namespace arm {
45 45
46 using ::v8::internal::Object; 46 using ::v8::internal::Object;
47 using ::v8::internal::PrintF; 47 using ::v8::internal::PrintF;
48 using ::v8::internal::OS; 48 using ::v8::internal::OS;
49 using ::v8::internal::ReadLine; 49 using ::v8::internal::ReadLine;
50 using ::v8::internal::DeleteArray; 50 using ::v8::internal::DeleteArray;
(...skipping 2782 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 uintptr_t Simulator::PopAddress() { 2833 uintptr_t Simulator::PopAddress() {
2834 int current_sp = get_register(sp); 2834 int current_sp = get_register(sp);
2835 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp); 2835 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp);
2836 uintptr_t address = *stack_slot; 2836 uintptr_t address = *stack_slot;
2837 set_register(sp, current_sp + sizeof(uintptr_t)); 2837 set_register(sp, current_sp + sizeof(uintptr_t));
2838 return address; 2838 return address;
2839 } 2839 }
2840 2840
2841 } } // namespace assembler::arm 2841 } } // namespace assembler::arm
2842 2842
2843 #endif // !__arm__ || USE_SIMULATOR 2843 #endif // USE_SIMULATOR
2844 2844
2845 #endif // V8_TARGET_ARCH_ARM 2845 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698