Chromium Code Reviews| Index: src/runtime/runtime-debug.cc |
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
| index c196ee28da760de360a7a3dc68a458cb512d1c92..17bc8cc9c48c4ca61d56debbb3c1fc7142f3cfb5 100644 |
| --- a/src/runtime/runtime-debug.cc |
| +++ b/src/runtime/runtime-debug.cc |
| @@ -1212,11 +1212,11 @@ RUNTIME_FUNCTION(Runtime_IsBreakOnException) { |
| // of frames to step down. |
| RUNTIME_FUNCTION(Runtime_PrepareStep) { |
| HandleScope scope(isolate); |
| - DCHECK(args.length() == 3); |
| + DCHECK(args.length() == 2); |
|
Benedikt Meurer
2015/12/16 08:03:23
Nit: DCHECK_EQ(2, args.length())
|
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); |
| - if (!args[1]->IsNumber() || !args[2]->IsNumber()) { |
| + if (!args[1]->IsNumber()) { |
| return isolate->Throw(isolate->heap()->illegal_argument_string()); |
| } |
| @@ -1227,18 +1227,11 @@ RUNTIME_FUNCTION(Runtime_PrepareStep) { |
| return isolate->Throw(isolate->heap()->illegal_argument_string()); |
| } |
| - // Get the number of steps. |
| - int step_count = NumberToInt32(args[2]); |
| - if (step_count < 1) { |
| - return isolate->Throw(isolate->heap()->illegal_argument_string()); |
| - } |
| - |
| // Clear all current stepping setup. |
| isolate->debug()->ClearStepping(); |
| // Prepare step. |
| - isolate->debug()->PrepareStep(static_cast<StepAction>(step_action), |
| - step_count); |
| + isolate->debug()->PrepareStep(static_cast<StepAction>(step_action), 1); |
| return isolate->heap()->undefined_value(); |
| } |