Index: runtime/vm/native_entry.cc |
diff --git a/runtime/vm/native_entry.cc b/runtime/vm/native_entry.cc |
index 51c4a463e454cf05d8f1a5f3e3b53b46bb3719b6..5f373dfa0076f590dce25da5a57fc92a80ccfe02 100644 |
--- a/runtime/vm/native_entry.cc |
+++ b/runtime/vm/native_entry.cc |
@@ -210,10 +210,10 @@ void NativeEntry::LinkNativeCall(Dart_NativeArguments args) { |
#if defined(DEBUG) |
{ |
NativeFunction current_function = NULL; |
- const Code& current_trampoline = Code::Handle( |
+ uword current_trampoline = |
CodePatcher::GetNativeCallAt(caller_frame->pc(), |
code, |
- ¤t_function)); |
+ ¤t_function); |
#if !defined(USING_SIMULATOR) |
ASSERT(current_function == |
reinterpret_cast<NativeFunction>(LinkNativeCall)); |
@@ -225,8 +225,8 @@ void NativeEntry::LinkNativeCall(Dart_NativeArguments args) { |
Simulator::kBootstrapNativeCall, |
NativeEntry::kNumArguments))); |
#endif |
- ASSERT(current_trampoline.raw() == |
- StubCode::CallBootstrapCFunction_entry()->code()); |
+ ASSERT(current_trampoline == |
+ StubCode::CallBootstrapCFunction_entry()->EntryPoint()); |
} |
#endif |