| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 CompileRunChecked(isolate, "debug.Debug.setBreakOnUncaughtException()"); | 334 CompileRunChecked(isolate, "debug.Debug.setBreakOnUncaughtException()"); |
| 335 } else { | 335 } else { |
| 336 CompileRunChecked(isolate, "debug.Debug.clearBreakOnUncaughtException()"); | 336 CompileRunChecked(isolate, "debug.Debug.clearBreakOnUncaughtException()"); |
| 337 } | 337 } |
| 338 } | 338 } |
| 339 | 339 |
| 340 | 340 |
| 341 // Prepare to step to next break location. | 341 // Prepare to step to next break location. |
| 342 static void PrepareStep(StepAction step_action) { | 342 static void PrepareStep(StepAction step_action) { |
| 343 v8::internal::Debug* debug = CcTest::i_isolate()->debug(); | 343 v8::internal::Debug* debug = CcTest::i_isolate()->debug(); |
| 344 debug->PrepareStep(step_action, 1); | 344 debug->PrepareStep(step_action); |
| 345 } | 345 } |
| 346 | 346 |
| 347 | 347 |
| 348 static void ClearStepping() { CcTest::i_isolate()->debug()->ClearStepping(); } | 348 static void ClearStepping() { CcTest::i_isolate()->debug()->ClearStepping(); } |
| 349 | 349 |
| 350 | 350 |
| 351 // This function is in namespace v8::internal to be friend with class | 351 // This function is in namespace v8::internal to be friend with class |
| 352 // v8::internal::Debug. | 352 // v8::internal::Debug. |
| 353 namespace v8 { | 353 namespace v8 { |
| 354 namespace internal { | 354 namespace internal { |
| (...skipping 7694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8049 CompileRun("function foo() {}; foo();"); | 8049 CompileRun("function foo() {}; foo();"); |
| 8050 --after_compile_handler_depth; | 8050 --after_compile_handler_depth; |
| 8051 } | 8051 } |
| 8052 | 8052 |
| 8053 | 8053 |
| 8054 TEST(NoInterruptsInDebugListener) { | 8054 TEST(NoInterruptsInDebugListener) { |
| 8055 DebugLocalContext env; | 8055 DebugLocalContext env; |
| 8056 v8::Debug::SetDebugEventListener(env->GetIsolate(), NoInterruptsOnDebugEvent); | 8056 v8::Debug::SetDebugEventListener(env->GetIsolate(), NoInterruptsOnDebugEvent); |
| 8057 CompileRun("void(0);"); | 8057 CompileRun("void(0);"); |
| 8058 } | 8058 } |
| OLD | NEW |