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

Unified Diff: vm/runtime_entry_test.cc

Issue 10592006: Rework leaf calls as just simple C calls with a signature and not the NativeArgumentDescriptor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « vm/runtime_entry_ia32.cc ('k') | vm/runtime_entry_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/runtime_entry_test.cc
===================================================================
--- vm/runtime_entry_test.cc (revision 8859)
+++ vm/runtime_entry_test.cc (working copy)
@@ -43,16 +43,17 @@
// A leaf runtime call for test purposes.
-// Arg0: a smi.
-// Arg1: a smi.
+// arg0: a smi.
+// arg1: a smi.
// returns a smi representing arg0 + arg1.
-DEFINE_LEAF_RUNTIME_ENTRY(TestLeafSmiAdd, 2) {
- ASSERT(args.Count() == kTestLeafSmiAddRuntimeEntry.argument_count());
+DEFINE_LEAF_RUNTIME_ENTRY(RawObject*, TestLeafSmiAdd,
+ RawObject* arg0, RawObject* arg1) {
// Ignoring overflow in the calculation below and using the internal
// representation of Smi directly without using any handlized code.
- intptr_t result = reinterpret_cast<intptr_t>(args.At(0)) +
- reinterpret_cast<intptr_t>(args.At(1));
+ intptr_t result = reinterpret_cast<intptr_t>(arg0) +
+ reinterpret_cast<intptr_t>(arg1);
return reinterpret_cast<RawObject*>(result);
}
+END_LEAF_RUNTIME_ENTRY
} // namespace dart
« no previous file with comments | « vm/runtime_entry_ia32.cc ('k') | vm/runtime_entry_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698