Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 7ee75e9a289ffc1120ef9e8a6a6db4313c94e7a3..e40f406c3c5f869743cb13e2f0d75b4afb95b480 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -197,9 +197,10 @@ static bool HasDebugInfo(v8::Handle<v8::Function> fun) { |
// number. |
static int SetBreakPoint(Handle<v8::internal::JSFunction> fun, int position) { |
static int break_point = 0; |
+ Handle<v8::internal::SharedFunctionInfo> shared(fun->shared()); |
v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); |
debug->SetBreakPoint( |
- fun, |
+ shared, |
Handle<Object>(v8::internal::Smi::FromInt(++break_point)), |
&position); |
return break_point; |
@@ -514,7 +515,7 @@ void CheckDebugBreakFunction(DebugLocalContext* env, |
// there |
ClearBreakPoint(bp); |
CHECK(!debug->HasDebugInfo(shared)); |
- CHECK(debug->EnsureDebugInfo(shared, fun)); |
+ CHECK(debug->EnsureDebugInfo(shared)); |
TestBreakLocationIterator it2(Debug::GetDebugInfo(shared)); |
it2.FindBreakLocationFromPosition(position); |
actual_mode = it2.it()->rinfo()->rmode(); |