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

Unified Diff: src/debug.h

Issue 6236: Allow gcc to use strict-aliasing rules to control pointer aliasing when... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
« SConstruct ('K') | « src/bootstrapper.cc ('k') | src/debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug.h
===================================================================
--- src/debug.h (revision 401)
+++ src/debug.h (working copy)
@@ -232,16 +232,16 @@
}
// Support for saving/restoring registers when handling debug break calls.
- static Address* register_address(int r) {
- return reinterpret_cast<Address *>(&registers_[r]);
+ static Object** register_address(int r) {
+ return &registers_[r];
}
// Address of the debug break return entry code.
static Code* debug_break_return_entry() { return debug_break_return_entry_; }
// Support for getting the address of the debug break on return code.
- static Address* debug_break_return_address() {
- return reinterpret_cast<Address*>(&debug_break_return_);
+ static Code** debug_break_return_address() {
+ return &debug_break_return_;
}
static const int kEstimatedNofDebugInfoEntries = 16;
« SConstruct ('K') | « src/bootstrapper.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698