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

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

Issue 1314863003: [heap] More flag cleanup. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation and add const to parameters Created 5 years, 3 months 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
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 391
392 // Check that the debugger has been fully unloaded. 392 // Check that the debugger has been fully unloaded.
393 void CheckDebuggerUnloaded(bool check_functions) { 393 void CheckDebuggerUnloaded(bool check_functions) {
394 // Check that the debugger context is cleared and that there is no debug 394 // Check that the debugger context is cleared and that there is no debug
395 // information stored for the debugger. 395 // information stored for the debugger.
396 CHECK(CcTest::i_isolate()->debug()->debug_context().is_null()); 396 CHECK(CcTest::i_isolate()->debug()->debug_context().is_null());
397 CHECK(!CcTest::i_isolate()->debug()->debug_info_list_); 397 CHECK(!CcTest::i_isolate()->debug()->debug_info_list_);
398 398
399 // Collect garbage to ensure weak handles are cleared. 399 // Collect garbage to ensure weak handles are cleared.
400 CcTest::heap()->CollectAllGarbage(); 400 CcTest::heap()->CollectAllGarbage();
401 CcTest::heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask); 401 CcTest::heap()->CollectAllGarbage("CheckDebuggerUnloaded",
402 Heap::kMakeHeapIterableMask);
402 403
403 // Iterate the head and check that there are no debugger related objects left. 404 // Iterate the head and check that there are no debugger related objects left.
404 HeapIterator iterator(CcTest::heap()); 405 HeapIterator iterator(CcTest::heap());
405 for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { 406 for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
406 CHECK(!obj->IsDebugInfo()); 407 CHECK(!obj->IsDebugInfo());
407 CHECK(!obj->IsBreakPointInfo()); 408 CHECK(!obj->IsBreakPointInfo());
408 409
409 // If deep check of functions is requested check that no debug break code 410 // If deep check of functions is requested check that no debug break code
410 // is left in all functions. 411 // is left in all functions.
411 if (check_functions) { 412 if (check_functions) {
(...skipping 7205 matching lines...) Expand 10 before | Expand all | Expand 10 after
7617 "let y = 2; \n" 7618 "let y = 2; \n"
7618 "debugger; \n" 7619 "debugger; \n"
7619 "x * y", 7620 "x * y",
7620 30); 7621 30);
7621 ExpectInt32( 7622 ExpectInt32(
7622 "x = 1; y = 2; \n" 7623 "x = 1; y = 2; \n"
7623 "debugger;" 7624 "debugger;"
7624 "x * y", 7625 "x * y",
7625 30); 7626 30);
7626 } 7627 }
OLDNEW
« src/heap/heap.cc ('K') | « test/cctest/test-api.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698