| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/debug/debug-evaluate.h" | 9 #include "src/debug/debug-evaluate.h" |
| 10 #include "src/debug/debug-frames.h" | 10 #include "src/debug/debug-frames.h" |
| (...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 StepAction step_action = static_cast<StepAction>(NumberToInt32(args[1])); | 1224 StepAction step_action = static_cast<StepAction>(NumberToInt32(args[1])); |
| 1225 if (step_action != StepIn && step_action != StepNext && | 1225 if (step_action != StepIn && step_action != StepNext && |
| 1226 step_action != StepOut && step_action != StepFrame) { | 1226 step_action != StepOut && step_action != StepFrame) { |
| 1227 return isolate->Throw(isolate->heap()->illegal_argument_string()); | 1227 return isolate->Throw(isolate->heap()->illegal_argument_string()); |
| 1228 } | 1228 } |
| 1229 | 1229 |
| 1230 // Clear all current stepping setup. | 1230 // Clear all current stepping setup. |
| 1231 isolate->debug()->ClearStepping(); | 1231 isolate->debug()->ClearStepping(); |
| 1232 | 1232 |
| 1233 // Prepare step. | 1233 // Prepare step. |
| 1234 isolate->debug()->PrepareStep(static_cast<StepAction>(step_action), 1); | 1234 isolate->debug()->PrepareStep(static_cast<StepAction>(step_action)); |
| 1235 return isolate->heap()->undefined_value(); | 1235 return isolate->heap()->undefined_value(); |
| 1236 } | 1236 } |
| 1237 | 1237 |
| 1238 | 1238 |
| 1239 // Clear all stepping set by PrepareStep. | 1239 // Clear all stepping set by PrepareStep. |
| 1240 RUNTIME_FUNCTION(Runtime_ClearStepping) { | 1240 RUNTIME_FUNCTION(Runtime_ClearStepping) { |
| 1241 HandleScope scope(isolate); | 1241 HandleScope scope(isolate); |
| 1242 DCHECK(args.length() == 0); | 1242 DCHECK(args.length() == 0); |
| 1243 RUNTIME_ASSERT(isolate->debug()->is_active()); | 1243 RUNTIME_ASSERT(isolate->debug()->is_active()); |
| 1244 isolate->debug()->ClearStepping(); | 1244 isolate->debug()->ClearStepping(); |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 return Smi::FromInt(isolate->debug()->is_active()); | 1680 return Smi::FromInt(isolate->debug()->is_active()); |
| 1681 } | 1681 } |
| 1682 | 1682 |
| 1683 | 1683 |
| 1684 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 1684 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
| 1685 UNIMPLEMENTED(); | 1685 UNIMPLEMENTED(); |
| 1686 return NULL; | 1686 return NULL; |
| 1687 } | 1687 } |
| 1688 } // namespace internal | 1688 } // namespace internal |
| 1689 } // namespace v8 | 1689 } // namespace v8 |
| OLD | NEW |