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

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

Issue 85163003: Speed up long-running test cases. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | test/mjsunit/compiler/math-floor-global.js » ('j') | test/mjsunit/json2.js » ('J')
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 7496 matching lines...) Expand 10 before | Expand all | Expand 10 after
7507 // Test that setting the terminate execution flag during debug break processing. 7507 // Test that setting the terminate execution flag during debug break processing.
7508 static void TestDebugBreakInLoop(const char* loop_head, 7508 static void TestDebugBreakInLoop(const char* loop_head,
7509 const char** loop_bodies, 7509 const char** loop_bodies,
7510 const char* loop_tail) { 7510 const char* loop_tail) {
7511 // Receive 100 breaks for each test and then terminate JavaScript execution. 7511 // Receive 100 breaks for each test and then terminate JavaScript execution.
7512 static const int kBreaksPerTest = 100; 7512 static const int kBreaksPerTest = 100;
7513 7513
7514 for (int i = 0; loop_bodies[i] != NULL; i++) { 7514 for (int i = 0; loop_bodies[i] != NULL; i++) {
7515 // Perform a lazy deoptimization after various numbers of breaks 7515 // Perform a lazy deoptimization after various numbers of breaks
7516 // have been hit. 7516 // have been hit.
7517 for (int j = 0; j < 11; j++) { 7517 for (int j = 0; j < 7; j++) {
7518 break_point_hit_count_deoptimize = j; 7518 break_point_hit_count_deoptimize = j;
7519 if (j == 10) { 7519 if (j == 6) {
7520 break_point_hit_count_deoptimize = kBreaksPerTest; 7520 break_point_hit_count_deoptimize = kBreaksPerTest;
7521 } 7521 }
7522 7522
7523 break_point_hit_count = 0; 7523 break_point_hit_count = 0;
7524 max_break_point_hit_count = kBreaksPerTest; 7524 max_break_point_hit_count = kBreaksPerTest;
7525 terminate_after_max_break_point_hit = true; 7525 terminate_after_max_break_point_hit = true;
7526 7526
7527 EmbeddedVector<char, 1024> buffer; 7527 EmbeddedVector<char, 1024> buffer;
7528 OS::SNPrintF(buffer, 7528 OS::SNPrintF(buffer,
7529 "function f() {%s%s%s}", 7529 "function f() {%s%s%s}",
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
7730 TEST(LiveEditDisabled) { 7730 TEST(LiveEditDisabled) {
7731 v8::internal::FLAG_allow_natives_syntax = true; 7731 v8::internal::FLAG_allow_natives_syntax = true;
7732 LocalContext env; 7732 LocalContext env;
7733 v8::HandleScope scope(env->GetIsolate()); 7733 v8::HandleScope scope(env->GetIsolate());
7734 v8::Debug::SetLiveEditEnabled(false), env->GetIsolate(); 7734 v8::Debug::SetLiveEditEnabled(false), env->GetIsolate();
7735 CompileRun("%LiveEditCompareStrings('', '')"); 7735 CompileRun("%LiveEditCompareStrings('', '')");
7736 } 7736 }
7737 7737
7738 7738
7739 #endif // ENABLE_DEBUGGER_SUPPORT 7739 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/compiler/math-floor-global.js » ('j') | test/mjsunit/json2.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698