OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |