Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: test/cctest/test-debug.cc

Issue 2580323002: [debug-wrapper] remove last uses of --expose-debug-as (Closed)
Patch Set: address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | test/cctest/test-flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | test/cctest/test-flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698