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

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

Issue 13469002: Cleanup: Rename Simulator::watched_stops to match style guide. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 | « 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 v8::internal::Isolate* isolate_; 407 v8::internal::Isolate* isolate_;
408 408
409 // A stop is watched if its code is less than kNumOfWatchedStops. 409 // A stop is watched if its code is less than kNumOfWatchedStops.
410 // Only watched stops support enabling/disabling and the counter feature. 410 // Only watched stops support enabling/disabling and the counter feature.
411 static const uint32_t kNumOfWatchedStops = 256; 411 static const uint32_t kNumOfWatchedStops = 256;
412 412
413 // Breakpoint is disabled if bit 31 is set. 413 // Breakpoint is disabled if bit 31 is set.
414 static const uint32_t kStopDisabledBit = 1 << 31; 414 static const uint32_t kStopDisabledBit = 1 << 31;
415 415
416 // A stop is enabled, meaning the simulator will stop when meeting the 416 // A stop is enabled, meaning the simulator will stop when meeting the
417 // instruction, if bit 31 of watched_stops[code].count is unset. 417 // instruction, if bit 31 of watched_stops_[code].count is unset.
418 // The value watched_stops[code].count & ~(1 << 31) indicates how many times 418 // The value watched_stops_[code].count & ~(1 << 31) indicates how many times
419 // the breakpoint was hit or gone through. 419 // the breakpoint was hit or gone through.
420 struct StopCountAndDesc { 420 struct StopCountAndDesc {
421 uint32_t count; 421 uint32_t count;
422 char* desc; 422 char* desc;
423 }; 423 };
424 StopCountAndDesc watched_stops[kNumOfWatchedStops]; 424 StopCountAndDesc watched_stops_[kNumOfWatchedStops];
425 }; 425 };
426 426
427 427
428 // When running with the simulator transition into simulated execution at this 428 // When running with the simulator transition into simulated execution at this
429 // point. 429 // point.
430 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ 430 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \
431 reinterpret_cast<Object*>(Simulator::current(Isolate::Current())->Call( \ 431 reinterpret_cast<Object*>(Simulator::current(Isolate::Current())->Call( \
432 FUNCTION_ADDR(entry), 5, p0, p1, p2, p3, p4)) 432 FUNCTION_ADDR(entry), 5, p0, p1, p2, p3, p4))
433 433
434 #define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7, p8) \ 434 #define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7, p8) \
(...skipping 24 matching lines...) Expand all
459 459
460 static inline void UnregisterCTryCatch() { 460 static inline void UnregisterCTryCatch() {
461 Simulator::current(Isolate::Current())->PopAddress(); 461 Simulator::current(Isolate::Current())->PopAddress();
462 } 462 }
463 }; 463 };
464 464
465 } } // namespace v8::internal 465 } } // namespace v8::internal
466 466
467 #endif // !defined(USE_SIMULATOR) 467 #endif // !defined(USE_SIMULATOR)
468 #endif // V8_ARM_SIMULATOR_ARM_H_ 468 #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