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

Unified Diff: runtime/bin/process.cc

Issue 8372094: Renaming Array -> List in the VM API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 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/bin/main.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.cc
diff --git a/runtime/bin/process.cc b/runtime/bin/process.cc
index 7ac4eeac56622bd300c806c3c79b544ee38f0793..1f2bf715656f127097349c2d736faccda00d779c 100644
--- a/runtime/bin/process.cc
+++ b/runtime/bin/process.cc
@@ -31,13 +31,13 @@ void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) {
Dart_Handle arguments = Dart_GetNativeArgument(args, 2);
// The arguments are copied into a non-extensible array in the
// dart code so this should not fail.
- ASSERT(Dart_IsArray(arguments));
+ ASSERT(Dart_IsList(arguments));
intptr_t length = 0;
- Dart_Handle result = Dart_GetLength(arguments, &length);
+ Dart_Handle result = Dart_ListLength(arguments, &length);
ASSERT(Dart_IsValid(result));
char** string_args = new char*[length];
for (int i = 0; i < length; i++) {
- Dart_Handle arg = Dart_ArrayGetAt(arguments, i);
+ Dart_Handle arg = Dart_ListGetAt(arguments, i);
ASSERT(Dart_IsValid(arg));
// The Dart code verifies that the arguments implement the String
// interface. However, only builtin Strings are handled by
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698