| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 9a54a824ca2a16659208b9b50040261a65f1c1d7..42d303ed5e6a4e8c615fb45951f691f99ecf46f8 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -410,50 +410,6 @@ RUNTIME_FUNCTION(Runtime_DebugPropertyAttributesFromDetails) {
|
| }
|
|
|
|
|
| -// Return the property insertion index calculated from the property details.
|
| -// args[0]: smi with property details.
|
| -RUNTIME_FUNCTION(Runtime_DebugPropertyIndexFromDetails) {
|
| - SealHandleScope shs(isolate);
|
| - DCHECK(args.length() == 1);
|
| - CONVERT_PROPERTY_DETAILS_CHECKED(details, 0);
|
| - // TODO(verwaest): Works only for dictionary mode holders.
|
| - return Smi::FromInt(details.dictionary_index());
|
| -}
|
| -
|
| -
|
| -// Return property value from named interceptor.
|
| -// args[0]: object
|
| -// args[1]: property name
|
| -RUNTIME_FUNCTION(Runtime_DebugNamedInterceptorPropertyValue) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 2);
|
| - CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
|
| - RUNTIME_ASSERT(obj->HasNamedInterceptor());
|
| - CONVERT_ARG_HANDLE_CHECKED(Name, name, 1);
|
| -
|
| - Handle<Object> result;
|
| - ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result,
|
| - JSObject::GetProperty(obj, name));
|
| - return *result;
|
| -}
|
| -
|
| -
|
| -// Return element value from indexed interceptor.
|
| -// args[0]: object
|
| -// args[1]: index
|
| -RUNTIME_FUNCTION(Runtime_DebugIndexedInterceptorElementValue) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 2);
|
| - CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
|
| - RUNTIME_ASSERT(obj->HasIndexedInterceptor());
|
| - CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]);
|
| - Handle<Object> result;
|
| - ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, result, JSReceiver::GetElement(isolate, obj, index));
|
| - return *result;
|
| -}
|
| -
|
| -
|
| RUNTIME_FUNCTION(Runtime_CheckExecutionState) {
|
| SealHandleScope shs(isolate);
|
| DCHECK(args.length() == 1);
|
| @@ -960,78 +916,6 @@ RUNTIME_FUNCTION(Runtime_DebugPrintScopes) {
|
| }
|
|
|
|
|
| -RUNTIME_FUNCTION(Runtime_GetThreadCount) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 1);
|
| - CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]);
|
| - RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id));
|
| -
|
| - // Count all archived V8 threads.
|
| - int n = 0;
|
| - for (ThreadState* thread = isolate->thread_manager()->FirstThreadStateInUse();
|
| - thread != NULL; thread = thread->Next()) {
|
| - n++;
|
| - }
|
| -
|
| - // Total number of threads is current thread and archived threads.
|
| - return Smi::FromInt(n + 1);
|
| -}
|
| -
|
| -
|
| -static const int kThreadDetailsCurrentThreadIndex = 0;
|
| -static const int kThreadDetailsThreadIdIndex = 1;
|
| -static const int kThreadDetailsSize = 2;
|
| -
|
| -// Return an array with thread details
|
| -// args[0]: number: break id
|
| -// args[1]: number: thread index
|
| -//
|
| -// The array returned contains the following information:
|
| -// 0: Is current thread?
|
| -// 1: Thread id
|
| -RUNTIME_FUNCTION(Runtime_GetThreadDetails) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 2);
|
| - CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]);
|
| - RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id));
|
| -
|
| - CONVERT_NUMBER_CHECKED(int, index, Int32, args[1]);
|
| -
|
| - // Allocate array for result.
|
| - Handle<FixedArray> details =
|
| - isolate->factory()->NewFixedArray(kThreadDetailsSize);
|
| -
|
| - // Thread index 0 is current thread.
|
| - if (index == 0) {
|
| - // Fill the details.
|
| - details->set(kThreadDetailsCurrentThreadIndex,
|
| - isolate->heap()->true_value());
|
| - details->set(kThreadDetailsThreadIdIndex,
|
| - Smi::FromInt(ThreadId::Current().ToInteger()));
|
| - } else {
|
| - // Find the thread with the requested index.
|
| - int n = 1;
|
| - ThreadState* thread = isolate->thread_manager()->FirstThreadStateInUse();
|
| - while (index != n && thread != NULL) {
|
| - thread = thread->Next();
|
| - n++;
|
| - }
|
| - if (thread == NULL) {
|
| - return isolate->heap()->undefined_value();
|
| - }
|
| -
|
| - // Fill the details.
|
| - details->set(kThreadDetailsCurrentThreadIndex,
|
| - isolate->heap()->false_value());
|
| - details->set(kThreadDetailsThreadIdIndex,
|
| - Smi::FromInt(thread->id().ToInteger()));
|
| - }
|
| -
|
| - // Convert to JS array and return.
|
| - return *isolate->factory()->NewJSArrayWithElements(details);
|
| -}
|
| -
|
| -
|
| // Sets the disable break state
|
| // args[0]: disable break state
|
| RUNTIME_FUNCTION(Runtime_SetBreakPointsActive) {
|
|
|