Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 0762de9e3751f625fe3c5f5f5bbb0eefe87a9aa4..530cf30dd195b99d9cae6c8877d9d2145aba6473 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -39,10 +39,9 @@ Debug::Debug(Isolate* isolate) |
break_on_uncaught_exception_(false), |
promise_catch_handlers_(0), |
promise_getters_(0), |
- debug_break_return_(NULL), |
- debug_break_slot_(NULL), |
isolate_(isolate) { |
memset(registers_, 0, sizeof(JSCallerSavedBuffer)); |
+ ThreadInit(); |
} |
@@ -665,21 +664,6 @@ void ScriptCache::HandleWeakScript( |
} |
-void Debug::SetUp(bool create_heap_objects) { |
- ThreadInit(); |
- if (create_heap_objects) { |
- // Get code to handle debug break on return. |
- debug_break_return_ = |
- isolate_->builtins()->builtin(Builtins::kReturn_DebugBreak); |
- ASSERT(debug_break_return_->IsCode()); |
- // Get code to handle debug break in debug break slots. |
- debug_break_slot_ = |
- isolate_->builtins()->builtin(Builtins::kSlot_DebugBreak); |
- ASSERT(debug_break_slot_->IsCode()); |
- } |
-} |
- |
- |
void Debug::HandleWeakDebugInfo( |
const v8::WeakCallbackData<v8::Value, void>& data) { |
Debug* debug = reinterpret_cast<Isolate*>(data.GetIsolate())->debug(); |
@@ -883,12 +867,6 @@ void Debug::PreemptionWhileInDebugger() { |
} |
-void Debug::Iterate(ObjectVisitor* v) { |
- v->VisitPointer(BitCast<Object**>(&(debug_break_return_))); |
- v->VisitPointer(BitCast<Object**>(&(debug_break_slot_))); |
-} |
- |
- |
Object* Debug::Break(Arguments args) { |
Heap* heap = isolate_->heap(); |
HandleScope scope(isolate_); |