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

Unified Diff: src/top.cc

Issue 39124: Handle thread preemption in debugger (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/top.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/top.cc
===================================================================
--- src/top.cc (revision 1435)
+++ src/top.cc (working copy)
@@ -38,9 +38,6 @@
ThreadLocalTop Top::thread_local_;
Mutex* Top::break_access_ = OS::CreateMutex();
-StackFrame::Id Top::break_frame_id_;
-int Top::break_count_;
-int Top::break_id_;
NoAllocationStringAllocator* preallocated_message_space = NULL;
@@ -222,10 +219,6 @@
InitializeThreadLocal();
- break_frame_id_ = StackFrame::NO_ID;
- break_count_ = 0;
- break_id_ = 0;
-
// Only preallocate on the first initialization.
if (FLAG_preallocate_message_memory && (preallocated_message_space == NULL)) {
// Start the thread which will set aside some memory.
@@ -295,44 +288,6 @@
}
-void Top::new_break(StackFrame::Id break_frame_id) {
- ExecutionAccess access;
- break_frame_id_ = break_frame_id;
- break_id_ = ++break_count_;
-}
-
-
-void Top::set_break(StackFrame::Id break_frame_id, int break_id) {
- ExecutionAccess access;
- break_frame_id_ = break_frame_id;
- break_id_ = break_id;
-}
-
-
-bool Top::check_break(int break_id) {
- ExecutionAccess access;
- return break_id == break_id_;
-}
-
-
-bool Top::is_break() {
- ExecutionAccess access;
- return break_id_ != 0;
-}
-
-
-StackFrame::Id Top::break_frame_id() {
- ExecutionAccess access;
- return break_frame_id_;
-}
-
-
-int Top::break_id() {
- ExecutionAccess access;
- return break_id_;
-}
-
-
void Top::MarkCompactPrologue(bool is_compacting) {
MarkCompactPrologue(is_compacting, &thread_local_);
}
« no previous file with comments | « src/top.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698