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

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

Issue 1065923002: [turbofan] Add JSStackCheck into loop bodies. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-toplevel
Patch Set: Rebased. Created 5 years, 8 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
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-thread-termination.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 6679 matching lines...) Expand 10 before | Expand all | Expand 10 after
6690 6690
6691 v8::Debug::SetMessageHandler( 6691 v8::Debug::SetMessageHandler(
6692 SendCommandThread::CountingAndSignallingMessageHandler); 6692 SendCommandThread::CountingAndSignallingMessageHandler);
6693 send_command_thread_ = new SendCommandThread(isolate); 6693 send_command_thread_ = new SendCommandThread(isolate);
6694 send_command_thread_->Start(); 6694 send_command_thread_->Start();
6695 6695
6696 v8::Handle<v8::FunctionTemplate> start = 6696 v8::Handle<v8::FunctionTemplate> start =
6697 v8::FunctionTemplate::New(isolate, StartSendingCommands); 6697 v8::FunctionTemplate::New(isolate, StartSendingCommands);
6698 env->Global()->Set(v8_str("start"), start->GetFunction()); 6698 env->Global()->Set(v8_str("start"), start->GetFunction());
6699 6699
6700 i::FLAG_turbo_osr = false; // TODO(titzer): interrupts in TF loops.
6701 CompileRun("start(); while (true) { }"); 6700 CompileRun("start(); while (true) { }");
6702 6701
6703 CHECK_EQ(20, counting_message_handler_counter); 6702 CHECK_EQ(20, counting_message_handler_counter);
6704 6703
6705 v8::Debug::SetMessageHandler(NULL); 6704 v8::Debug::SetMessageHandler(NULL);
6706 CheckDebuggerUnloaded(); 6705 CheckDebuggerUnloaded();
6707 } 6706 }
6708 6707
6709 6708
6710 struct BacktraceData { 6709 struct BacktraceData {
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
7590 "let y = 2; \n" 7589 "let y = 2; \n"
7591 "debugger; \n" 7590 "debugger; \n"
7592 "x * y", 7591 "x * y",
7593 30); 7592 30);
7594 ExpectInt32( 7593 ExpectInt32(
7595 "x = 1; y = 2; \n" 7594 "x = 1; y = 2; \n"
7596 "debugger;" 7595 "debugger;"
7597 "x * y", 7596 "x * y",
7598 30); 7597 30);
7599 } 7598 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-thread-termination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698