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

Unified Diff: vm/code_generator_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/code_generator_test.cc
===================================================================
--- vm/code_generator_test.cc (revision 11528)
+++ vm/code_generator_test.cc (working copy)
@@ -222,7 +222,7 @@
const String& native_name =
String::ZoneHandle(Symbols::New("TestSmiSub"));
NativeFunction native_function =
- reinterpret_cast<NativeFunction>(NATIVE_ENTRY_FUNCTION(TestSmiSub));
+ reinterpret_cast<NativeFunction>(TestSmiSub);
node_seq->Add(new ReturnNode(kPos,
new NativeBodyNode(kPos,
native_name,
@@ -399,7 +399,7 @@
const String& native_name =
String::ZoneHandle(Symbols::New("TestSmiSum"));
NativeFunction native_function =
- reinterpret_cast<NativeFunction>(NATIVE_ENTRY_FUNCTION(TestSmiSum));
+ reinterpret_cast<NativeFunction>(TestSmiSum);
node_seq->Add(new ReturnNode(kPos,
new NativeBodyNode(kPos,
native_name,
« vm/bootstrap_natives.h ('K') | « vm/code_generator.cc ('k') | vm/code_patcher_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698