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

Side by Side Diff: src/debug.cc

Issue 6446: Revert 428. Breaks 64-bit compilation. (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
« no previous file with comments | « 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(bit_cast<Object**, Code**>(&(field))); 613 #define VISIT(field) v->VisitPointer(reinterpret_cast<Object**>(&(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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 v8::Local<v8::Value> json_event = *fun->Call(api_event_data, 0, NULL); 1718 v8::Local<v8::Value> json_event = *fun->Call(api_event_data, 0, NULL);
1719 v8::Local<v8::String> json_event_string; 1719 v8::Local<v8::String> json_event_string;
1720 if (!try_catch.HasCaught()) { 1720 if (!try_catch.HasCaught()) {
1721 if (!json_event->IsUndefined()) { 1721 if (!json_event->IsUndefined()) {
1722 json_event_string = json_event->ToString(); 1722 json_event_string = json_event->ToString();
1723 if (FLAG_trace_debug_json) { 1723 if (FLAG_trace_debug_json) {
1724 PrintLn(json_event_string); 1724 PrintLn(json_event_string);
1725 } 1725 }
1726 v8::String::Value val(json_event_string); 1726 v8::String::Value val(json_event_string);
1727 Vector<uint16_t> str(reinterpret_cast<uint16_t*>(*val), 1727 Vector<uint16_t> str(reinterpret_cast<uint16_t*>(*val),
1728 json_event_string->Length()); 1728 json_event_string->Length());
1729 SendMessage(str); 1729 SendMessage(str);
1730 } else { 1730 } else {
1731 SendMessage(Vector<uint16_t>::empty()); 1731 SendMessage(Vector<uint16_t>::empty());
1732 } 1732 }
1733 } else { 1733 } else {
1734 PrintLn(try_catch.Exception()); 1734 PrintLn(try_catch.Exception());
1735 SendMessage(Vector<uint16_t>::empty()); 1735 SendMessage(Vector<uint16_t>::empty());
1736 } 1736 }
1737 } 1737 }
1738 1738
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 } 1964 }
1965 1965
1966 1966
1967 void LockingMessageQueue::Clear() { 1967 void LockingMessageQueue::Clear() {
1968 ScopedLock sl(lock_); 1968 ScopedLock sl(lock_);
1969 queue_.Clear(); 1969 queue_.Clear();
1970 } 1970 }
1971 1971
1972 1972
1973 } } // namespace v8::internal 1973 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698