Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(953)

Unified Diff: vm/stub_code_x64_test.cc

Issue 10874072: Use the return value of vm native methods to set the return value, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« vm/bootstrap_natives.h ('K') | « vm/stub_code_ia32_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/stub_code_x64_test.cc
===================================================================
--- vm/stub_code_x64_test.cc (revision 11528)
+++ vm/stub_code_x64_test.cc (working copy)
@@ -120,9 +120,7 @@
const Smi& smi1 = Smi::ZoneHandle(Smi::New(value1));
const Smi& smi2 = Smi::ZoneHandle(Smi::New(value2));
const Object& result = Object::ZoneHandle();
- const String& native_name = String::ZoneHandle(String::New("TestSmiSub"));
- Dart_NativeFunction native_function =
- NativeTestEntry_Lookup(native_name, argc);
+ Dart_NativeFunction native_function = TestSmiSub;
ASSERT(native_function != NULL);
const Context& context = Context::ZoneHandle(Context::New(0, Heap::kOld));
ASSERT(context.isolate() == Isolate::Current());
« vm/bootstrap_natives.h ('K') | « vm/stub_code_ia32_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698