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

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

Issue 8510012: Fixing presubmit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // This macro provides a platform independent use of sscanf. The reason for 46 // This macro provides a platform independent use of sscanf. The reason for
47 // SScanF not being implemented in a platform independent way through 47 // SScanF not being implemented in a platform independent way through
48 // ::v8::internal::OS in the same way as SNPrintF is that the 48 // ::v8::internal::OS in the same way as SNPrintF is that the
49 // Windows C Run-Time Library does not provide vsscanf. 49 // Windows C Run-Time Library does not provide vsscanf.
50 #define SScanF sscanf // NOLINT 50 #define SScanF sscanf // NOLINT
51 51
52 // The ArmDebugger class is used by the simulator while debugging simulated ARM 52 // The ArmDebugger class is used by the simulator while debugging simulated ARM
53 // code. 53 // code.
54 class ArmDebugger { 54 class ArmDebugger {
55 public: 55 public:
56 explicit ArmDebugger(Simulator* sim) : sim_(sim) { }; 56 explicit ArmDebugger(Simulator* sim) : sim_(sim) { }
57 ~ArmDebugger(); 57 ~ArmDebugger();
58 58
59 void Stop(Instruction* instr); 59 void Stop(Instruction* instr);
60 void Debug(); 60 void Debug();
61 61
62 private: 62 private:
63 static const Instr kBreakpointInstr = 63 static const Instr kBreakpointInstr =
64 (al | (7*B25) | (1*B24) | kBreakpoint); 64 (al | (7*B25) | (1*B24) | kBreakpoint);
65 static const Instr kNopInstr = (al | (13*B21)); 65 static const Instr kNopInstr = (al | (13*B21));
66 66
(...skipping 3359 matching lines...) Expand 10 before | Expand all | Expand 10 after
3426 uintptr_t address = *stack_slot; 3426 uintptr_t address = *stack_slot;
3427 set_register(sp, current_sp + sizeof(uintptr_t)); 3427 set_register(sp, current_sp + sizeof(uintptr_t));
3428 return address; 3428 return address;
3429 } 3429 }
3430 3430
3431 } } // namespace v8::internal 3431 } } // namespace v8::internal
3432 3432
3433 #endif // USE_SIMULATOR 3433 #endif // USE_SIMULATOR
3434 3434
3435 #endif // V8_TARGET_ARCH_ARM 3435 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698