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

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

Issue 22861037: Remove hacks for GC stress builders from cctests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-parsing.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 6625 matching lines...) Expand 10 before | Expand all | Expand 10 after
6636 // Test that GetEventContext doesn't fail and return empty handle for 6636 // Test that GetEventContext doesn't fail and return empty handle for
6637 // ScriptCollected events. 6637 // ScriptCollected events.
6638 TEST(ScriptCollectedEventContext) { 6638 TEST(ScriptCollectedEventContext) {
6639 i::FLAG_stress_compaction = false; 6639 i::FLAG_stress_compaction = false;
6640 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 6640 v8::Isolate* isolate = v8::Isolate::GetCurrent();
6641 v8::internal::Debug* debug = 6641 v8::internal::Debug* debug =
6642 reinterpret_cast<v8::internal::Isolate*>(isolate)->debug(); 6642 reinterpret_cast<v8::internal::Isolate*>(isolate)->debug();
6643 script_collected_message_count = 0; 6643 script_collected_message_count = 0;
6644 v8::HandleScope scope(isolate); 6644 v8::HandleScope scope(isolate);
6645 6645
6646 // TODO(mstarzinger): This test relies explicit GCs being the only
6647 // ones triggered. Remove this temporary workaround once we skip
6648 // running cctests on the GC stress builder.
6649 i::FLAG_gc_interval = -1;
6650
6651 v8::Persistent<v8::Context> context; 6646 v8::Persistent<v8::Context> context;
6652 { 6647 {
6653 v8::HandleScope scope(isolate); 6648 v8::HandleScope scope(isolate);
6654 context.Reset(isolate, v8::Context::New(isolate)); 6649 context.Reset(isolate, v8::Context::New(isolate));
6655 } 6650 }
6656 6651
6657 // Enter context. We can't have a handle to the context in the outer 6652 // Enter context. We can't have a handle to the context in the outer
6658 // scope, so we have to do it the hard way. 6653 // scope, so we have to do it the hard way.
6659 { 6654 {
6660 v8::HandleScope scope(isolate); 6655 v8::HandleScope scope(isolate);
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
7602 TEST(LiveEditDisabled) { 7597 TEST(LiveEditDisabled) {
7603 v8::internal::FLAG_allow_natives_syntax = true; 7598 v8::internal::FLAG_allow_natives_syntax = true;
7604 LocalContext env; 7599 LocalContext env;
7605 v8::HandleScope scope(env->GetIsolate()); 7600 v8::HandleScope scope(env->GetIsolate());
7606 v8::Debug::SetLiveEditEnabled(false); 7601 v8::Debug::SetLiveEditEnabled(false);
7607 CompileRun("%LiveEditCompareStrings('', '')"); 7602 CompileRun("%LiveEditCompareStrings('', '')");
7608 } 7603 }
7609 7604
7610 7605
7611 #endif // ENABLE_DEBUGGER_SUPPORT 7606 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698