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

Side by Side Diff: src/debug.h

Issue 7366: Split window support from V8. ... (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/contexts.cc ('k') | src/debug.cc » ('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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 // Create the new break info. 487 // Create the new break info.
488 Top::new_break(it_.frame()->id()); 488 Top::new_break(it_.frame()->id());
489 } 489 }
490 490
491 // Make sure that debugger is loaded and enter the debugger context. 491 // Make sure that debugger is loaded and enter the debugger context.
492 load_failed_ = !Debug::Load(); 492 load_failed_ = !Debug::Load();
493 if (!load_failed_) { 493 if (!load_failed_) {
494 // NOTE the member variable save which saves the previous context before 494 // NOTE the member variable save which saves the previous context before
495 // this change. 495 // this change.
496 Top::set_context(*Debug::debug_context()); 496 Top::set_context(*Debug::debug_context());
497 Top::set_security_context(*Debug::debug_context());
498 } 497 }
499 } 498 }
500 499
501 ~EnterDebugger() { 500 ~EnterDebugger() {
502 if (set_) { 501 if (set_) {
503 // Restore to the previous break state. 502 // Restore to the previous break state.
504 Top::set_break(break_frame_id_, break_id_); 503 Top::set_break(break_frame_id_, break_id_);
505 } 504 }
506 } 505 }
507 506
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 } 573 }
575 private: 574 private:
576 Debug::AddressId id_; 575 Debug::AddressId id_;
577 int reg_; 576 int reg_;
578 }; 577 };
579 578
580 579
581 } } // namespace v8::internal 580 } } // namespace v8::internal
582 581
583 #endif // V8_V8_DEBUG_H_ 582 #endif // V8_V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/contexts.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698