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

Unified Diff: runtime/vm/runtime_entry_test.cc

Issue 11293290: Fix native argument handling (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « runtime/vm/native_entry.h ('k') | runtime/vm/stack_frame_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/runtime_entry_test.cc
===================================================================
--- runtime/vm/runtime_entry_test.cc (revision 14922)
+++ runtime/vm/runtime_entry_test.cc (working copy)
@@ -36,9 +36,9 @@
// Arg1: a smi.
// Result: a smi representing arg0 - arg1.
DEFINE_RUNTIME_ENTRY(TestSmiSub, 2) {
- ASSERT(arguments.Count() == kTestSmiSubRuntimeEntry.argument_count());
- const Smi& left = Smi::CheckedHandle(arguments.At(0));
- const Smi& right = Smi::CheckedHandle(arguments.At(1));
+ ASSERT(arguments.ArgCount() == kTestSmiSubRuntimeEntry.argument_count());
+ const Smi& left = Smi::CheckedHandle(arguments.ArgAt(0));
+ const Smi& right = Smi::CheckedHandle(arguments.ArgAt(1));
// Ignoring overflow in the calculation below.
intptr_t result = left.Value() - right.Value();
arguments.SetReturn(Smi::Handle(Smi::New(result)));
« no previous file with comments | « runtime/vm/native_entry.h ('k') | runtime/vm/stack_frame_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698