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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 k_debug_break_return_address, 225 k_debug_break_return_address,
226 k_register_address 226 k_register_address
227 }; 227 };
228 228
229 // Support for setting the address to jump to when returning from break point. 229 // Support for setting the address to jump to when returning from break point.
230 static Address* after_break_target_address() { 230 static Address* after_break_target_address() {
231 return reinterpret_cast<Address*>(&thread_local_.after_break_target_); 231 return reinterpret_cast<Address*>(&thread_local_.after_break_target_);
232 } 232 }
233 233
234 // Support for saving/restoring registers when handling debug break calls. 234 // Support for saving/restoring registers when handling debug break calls.
235 static Address* register_address(int r) { 235 static Object** register_address(int r) {
236 return reinterpret_cast<Address *>(&registers_[r]); 236 return &registers_[r];
237 } 237 }
238 238
239 // Address of the debug break return entry code. 239 // Address of the debug break return entry code.
240 static Code* debug_break_return_entry() { return debug_break_return_entry_; } 240 static Code* debug_break_return_entry() { return debug_break_return_entry_; }
241 241
242 // Support for getting the address of the debug break on return code. 242 // Support for getting the address of the debug break on return code.
243 static Address* debug_break_return_address() { 243 static Code** debug_break_return_address() {
244 return reinterpret_cast<Address*>(&debug_break_return_); 244 return &debug_break_return_;
245 } 245 }
246 246
247 static const int kEstimatedNofDebugInfoEntries = 16; 247 static const int kEstimatedNofDebugInfoEntries = 16;
248 static const int kEstimatedNofBreakPointsInFunction = 16; 248 static const int kEstimatedNofBreakPointsInFunction = 16;
249 249
250 static void HandleWeakDebugInfo(v8::Persistent<v8::Object> obj, void* data); 250 static void HandleWeakDebugInfo(v8::Persistent<v8::Object> obj, void* data);
251 251
252 friend class Debugger; 252 friend class Debugger;
253 friend Handle<FixedArray> GetDebuggedFunctions(); // Found in test-debug.cc 253 friend Handle<FixedArray> GetDebuggedFunctions(); // Found in test-debug.cc
254 254
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 } 570 }
571 private: 571 private:
572 Debug::AddressId id_; 572 Debug::AddressId id_;
573 int reg_; 573 int reg_;
574 }; 574 };
575 575
576 576
577 } } // namespace v8::internal 577 } } // namespace v8::internal
578 578
579 #endif // V8_V8_DEBUG_H_ 579 #endif // V8_V8_DEBUG_H_
OLDNEW
« SConstruct ('K') | « src/bootstrapper.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698