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

Unified Diff: vm/stub_code_ia32_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
Index: vm/stub_code_ia32_test.cc
===================================================================
--- vm/stub_code_ia32_test.cc (revision 11528)
+++ vm/stub_code_ia32_test.cc (working copy)
@@ -122,9 +122,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/native_entry_test.cc ('k') | vm/stub_code_x64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698