| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 831f76dd778d77e88af030d9cebd32710bc93c26..39520343631e9529b43fb61a5d4cb0fd75871095 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -14442,30 +14442,15 @@ RUNTIME_FUNCTION(Runtime_GetScript) {
|
| // native code offset.
|
| RUNTIME_FUNCTION(Runtime_CollectStackTrace) {
|
| HandleScope scope(isolate);
|
| - ASSERT(args.length() == 3);
|
| + ASSERT(args.length() == 2);
|
| CONVERT_ARG_HANDLE_CHECKED(JSObject, error_object, 0);
|
| CONVERT_ARG_HANDLE_CHECKED(Object, caller, 1);
|
| - CONVERT_NUMBER_CHECKED(int32_t, limit, Int32, args[2]);
|
|
|
| // Optionally capture a more detailed stack trace for the message.
|
| isolate->CaptureAndSetDetailedStackTrace(error_object);
|
| // Capture a simple stack trace for the stack property.
|
| - return *isolate->CaptureSimpleStackTrace(error_object, caller, limit);
|
| -}
|
| -
|
| -
|
| -// Retrieve the stack trace. This is the raw stack trace that yet has to
|
| -// be formatted. Since we only need this once, clear it afterwards.
|
| -RUNTIME_FUNCTION(Runtime_GetAndClearOverflowedStackTrace) {
|
| - HandleScope scope(isolate);
|
| - ASSERT(args.length() == 1);
|
| - CONVERT_ARG_HANDLE_CHECKED(JSObject, error_object, 0);
|
| - Handle<String> key = isolate->factory()->hidden_stack_trace_string();
|
| - Handle<Object> result(error_object->GetHiddenProperty(key), isolate);
|
| - if (result->IsTheHole()) return isolate->heap()->undefined_value();
|
| - RUNTIME_ASSERT(result->IsJSArray() || result->IsUndefined());
|
| - JSObject::DeleteHiddenProperty(error_object, key);
|
| - return *result;
|
| + isolate->CaptureAndSetSimpleStackTrace(error_object, caller);
|
| + return isolate->heap()->undefined_value();
|
| }
|
|
|
|
|
|
|