| 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 4019 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4030   v8::Debug::DebugBreak(env->GetIsolate()); | 4030   v8::Debug::DebugBreak(env->GetIsolate()); | 
| 4031 | 4031 | 
| 4032   // Call all functions with different argument count. | 4032   // Call all functions with different argument count. | 
| 4033   break_point_hit_count = 0; | 4033   break_point_hit_count = 0; | 
| 4034   f->Call(context, env->Global(), 0, NULL).ToLocalChecked(); | 4034   f->Call(context, env->Global(), 0, NULL).ToLocalChecked(); | 
| 4035   CHECK_EQ(1, break_point_hit_count); | 4035   CHECK_EQ(1, break_point_hit_count); | 
| 4036 | 4036 | 
| 4037   { | 4037   { | 
| 4038     v8::Debug::DebugBreak(env->GetIsolate()); | 4038     v8::Debug::DebugBreak(env->GetIsolate()); | 
| 4039     i::Isolate* isolate = reinterpret_cast<i::Isolate*>(env->GetIsolate()); | 4039     i::Isolate* isolate = reinterpret_cast<i::Isolate*>(env->GetIsolate()); | 
| 4040     v8::internal::DisableBreak disable_break(isolate->debug(), true); | 4040     v8::internal::DisableBreak disable_break(isolate->debug()); | 
| 4041     f->Call(context, env->Global(), 0, NULL).ToLocalChecked(); | 4041     f->Call(context, env->Global(), 0, NULL).ToLocalChecked(); | 
| 4042     CHECK_EQ(1, break_point_hit_count); | 4042     CHECK_EQ(1, break_point_hit_count); | 
| 4043   } | 4043   } | 
| 4044 | 4044 | 
| 4045   f->Call(context, env->Global(), 0, NULL).ToLocalChecked(); | 4045   f->Call(context, env->Global(), 0, NULL).ToLocalChecked(); | 
| 4046   CHECK_EQ(2, break_point_hit_count); | 4046   CHECK_EQ(2, break_point_hit_count); | 
| 4047 | 4047 | 
| 4048   // Get rid of the debug event listener. | 4048   // Get rid of the debug event listener. | 
| 4049   v8::Debug::SetDebugEventListener(env->GetIsolate(), nullptr); | 4049   v8::Debug::SetDebugEventListener(env->GetIsolate(), nullptr); | 
| 4050   CheckDebuggerUnloaded(env->GetIsolate()); | 4050   CheckDebuggerUnloaded(env->GetIsolate()); | 
| (...skipping 2607 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6658       "function foo() {\n" | 6658       "function foo() {\n" | 
| 6659       "  try { throw new Error(); } catch (e) {}\n" | 6659       "  try { throw new Error(); } catch (e) {}\n" | 
| 6660       "}\n" | 6660       "}\n" | 
| 6661       "debugger;\n" | 6661       "debugger;\n" | 
| 6662       "foo();\n" | 6662       "foo();\n" | 
| 6663       "foo();\n"); | 6663       "foo();\n"); | 
| 6664 | 6664 | 
| 6665   v8::Debug::SetDebugEventListener(env->GetIsolate(), nullptr); | 6665   v8::Debug::SetDebugEventListener(env->GetIsolate(), nullptr); | 
| 6666   CHECK_EQ(break_point_hit_count, 4); | 6666   CHECK_EQ(break_point_hit_count, 4); | 
| 6667 } | 6667 } | 
| OLD | NEW | 
|---|