| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/debug.h" | 10 #include "src/debug.h" |
| (...skipping 3194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3205 return isolate->heap()->undefined_value(); | 3205 return isolate->heap()->undefined_value(); |
| 3206 } | 3206 } |
| 3207 | 3207 |
| 3208 | 3208 |
| 3209 RUNTIME_FUNCTION(Runtime_DebugIsActive) { | 3209 RUNTIME_FUNCTION(Runtime_DebugIsActive) { |
| 3210 SealHandleScope shs(isolate); | 3210 SealHandleScope shs(isolate); |
| 3211 return Smi::FromInt(isolate->debug()->is_active()); | 3211 return Smi::FromInt(isolate->debug()->is_active()); |
| 3212 } | 3212 } |
| 3213 | 3213 |
| 3214 | 3214 |
| 3215 RUNTIME_FUNCTION(Runtime_DebugHandleStepIntoAccessor) { |
| 3216 HandleScope scope(isolate); |
| 3217 DCHECK(args.length() == 2); |
| 3218 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| 3219 Debug* debug = isolate->debug(); |
| 3220 // Handle stepping into constructors if step into is active. |
| 3221 if (debug->StepInActive()) debug->HandleStepIn(function, false); |
| 3222 return *isolate->factory()->undefined_value(); |
| 3223 } |
| 3224 |
| 3225 |
| 3215 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 3226 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
| 3216 UNIMPLEMENTED(); | 3227 UNIMPLEMENTED(); |
| 3217 return NULL; | 3228 return NULL; |
| 3218 } | 3229 } |
| 3219 } // namespace internal | 3230 } // namespace internal |
| 3220 } // namespace v8 | 3231 } // namespace v8 |
| OLD | NEW |