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

Side by Side Diff: src/debug.cc

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
« SConstruct ('K') | « src/debug.h ('k') | src/globals.h » ('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 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 return; 603 return;
604 } 604 }
605 605
606 // Clear debugger context global handle. 606 // Clear debugger context global handle.
607 GlobalHandles::Destroy(reinterpret_cast<Object**>(debug_context_.location())); 607 GlobalHandles::Destroy(reinterpret_cast<Object**>(debug_context_.location()));
608 debug_context_ = Handle<Context>(); 608 debug_context_ = Handle<Context>();
609 } 609 }
610 610
611 611
612 void Debug::Iterate(ObjectVisitor* v) { 612 void Debug::Iterate(ObjectVisitor* v) {
613 #define VISIT(field) v->VisitPointer(reinterpret_cast<Object**>(&(field))); 613 #define VISIT(field) v->VisitPointer(bit_cast<Object**, Code**>(&(field)));
614 VISIT(debug_break_return_entry_); 614 VISIT(debug_break_return_entry_);
615 VISIT(debug_break_return_); 615 VISIT(debug_break_return_);
616 #undef VISIT 616 #undef VISIT
617 } 617 }
618 618
619 619
620 Object* Debug::Break(Arguments args) { 620 Object* Debug::Break(Arguments args) {
621 HandleScope scope; 621 HandleScope scope;
622 ASSERT(args.length() == 0); 622 ASSERT(args.length() == 0);
623 623
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 } 1965 }
1966 1966
1967 1967
1968 void LockingMessageQueue::Clear() { 1968 void LockingMessageQueue::Clear() {
1969 ScopedLock sl(lock_); 1969 ScopedLock sl(lock_);
1970 queue_.Clear(); 1970 queue_.Clear();
1971 } 1971 }
1972 1972
1973 1973
1974 } } // namespace v8::internal 1974 } } // namespace v8::internal
OLDNEW
« SConstruct ('K') | « src/debug.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698