Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index ad22411b85e8dd585041e65bfeefb9bacd3c5057..6623a3ed95e7d242841615860fe5360e9242a92b 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -6624,10 +6624,6 @@ TEST(Backtrace) { |
v8::Debug::SetMessageHandler(BacktraceData::MessageHandler); |
- // TODO(mstarzinger): This doesn't work with --always-opt because we don't |
- // have correct source positions in optimized code. Enable once we have. |
- i::FLAG_always_opt = false; |
- |
const int kBufferSize = 1000; |
uint16_t buffer[kBufferSize]; |
const char* scripts_command = |
@@ -6966,12 +6962,13 @@ TEST(DeoptimizeDuringDebugBreak) { |
v8::Debug::SetDebugEventListener(DebugEventBreakDeoptimize); |
// Compile and run function bar which will optimize it for some flag settings. |
- v8::Local<v8::Function> f = CompileFunction(&env, "function bar(){}", "bar"); |
- f->Call(v8::Undefined(env->GetIsolate()), 0, NULL); |
+ v8::Script::Compile(v8::String::NewFromUtf8( |
+ env->GetIsolate(), "function bar(){}; bar()"))->Run(); |
// Set debug break and call bar again. |
v8::Debug::DebugBreak(env->GetIsolate()); |
- f->Call(v8::Undefined(env->GetIsolate()), 0, NULL); |
+ v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "bar()")) |
+ ->Run(); |
CHECK(debug_event_break_deoptimize_done); |