| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |