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