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

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

Issue 8506015: Repeat last debugger command in the arm simulator when command input is empty. (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 | src/arm/simulator-arm.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 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // generated RegExp code with 7 parameters. This is a convenience function, 187 // generated RegExp code with 7 parameters. This is a convenience function,
188 // which sets up the simulator state and grabs the result on return. 188 // which sets up the simulator state and grabs the result on return.
189 int32_t Call(byte* entry, int argument_count, ...); 189 int32_t Call(byte* entry, int argument_count, ...);
190 190
191 // Push an address onto the JS stack. 191 // Push an address onto the JS stack.
192 uintptr_t PushAddress(uintptr_t address); 192 uintptr_t PushAddress(uintptr_t address);
193 193
194 // Pop an address from the JS stack. 194 // Pop an address from the JS stack.
195 uintptr_t PopAddress(); 195 uintptr_t PopAddress();
196 196
197 // Debugger input.
198 void set_last_debugger_input(char* input);
199 char* last_debugger_input() { return last_debugger_input_; }
200
197 // ICache checking. 201 // ICache checking.
198 static void FlushICache(v8::internal::HashMap* i_cache, void* start, 202 static void FlushICache(v8::internal::HashMap* i_cache, void* start,
199 size_t size); 203 size_t size);
200 204
201 // Returns true if pc register contains one of the 'special_values' defined 205 // Returns true if pc register contains one of the 'special_values' defined
202 // below (bad_lr, end_sim_pc). 206 // below (bad_lr, end_sim_pc).
203 bool has_bad_pc() const; 207 bool has_bad_pc() const;
204 208
205 // EABI variant for double arguments in use. 209 // EABI variant for double arguments in use.
206 bool use_eabi_hardfloat() { 210 bool use_eabi_hardfloat() {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 bool div_zero_vfp_flag_; 357 bool div_zero_vfp_flag_;
354 bool overflow_vfp_flag_; 358 bool overflow_vfp_flag_;
355 bool underflow_vfp_flag_; 359 bool underflow_vfp_flag_;
356 bool inexact_vfp_flag_; 360 bool inexact_vfp_flag_;
357 361
358 // Simulator support. 362 // Simulator support.
359 char* stack_; 363 char* stack_;
360 bool pc_modified_; 364 bool pc_modified_;
361 int icount_; 365 int icount_;
362 366
367 // Debugger input.
368 char* last_debugger_input_;
369
363 // Icache simulation 370 // Icache simulation
364 v8::internal::HashMap* i_cache_; 371 v8::internal::HashMap* i_cache_;
365 372
366 // Registered breakpoints. 373 // Registered breakpoints.
367 Instruction* break_pc_; 374 Instruction* break_pc_;
368 Instr break_instr_; 375 Instr break_instr_;
369 376
370 v8::internal::Isolate* isolate_; 377 v8::internal::Isolate* isolate_;
371 378
372 // A stop is watched if its code is less than kNumOfWatchedStops. 379 // A stop is watched if its code is less than kNumOfWatchedStops.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 429
423 static inline void UnregisterCTryCatch() { 430 static inline void UnregisterCTryCatch() {
424 Simulator::current(Isolate::Current())->PopAddress(); 431 Simulator::current(Isolate::Current())->PopAddress();
425 } 432 }
426 }; 433 };
427 434
428 } } // namespace v8::internal 435 } } // namespace v8::internal
429 436
430 #endif // !defined(USE_SIMULATOR) 437 #endif // !defined(USE_SIMULATOR)
431 #endif // V8_ARM_SIMULATOR_ARM_H_ 438 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698