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

Unified Diff: runtime/bin/main.cc

Issue 17261011: Replace uses of Dart_GetClass with Dart_GetType and Dart_InstanceGetClass with Dart_InstanceGetType… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/bin/directory.cc ('k') | runtime/bin/secure_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
===================================================================
--- runtime/bin/main.cc (revision 24207)
+++ runtime/bin/main.cc (working copy)
@@ -407,10 +407,10 @@
if (Dart_IsError(runtime_options_class_name)) {
return runtime_options_class_name;
}
- Dart_Handle runtime_options_class = Dart_GetClass(
- io_lib, runtime_options_class_name);
- if (Dart_IsError(runtime_options_class)) {
- return runtime_options_class;
+ Dart_Handle runtime_options_type = Dart_GetType(
+ io_lib, runtime_options_class_name, 0, NULL);
+ if (Dart_IsError(runtime_options_type)) {
+ return runtime_options_type;
}
Dart_Handle executable_name_name =
DartUtils::NewString("_nativeExecutable");
@@ -418,7 +418,7 @@
return executable_name_name;
}
Dart_Handle set_executable_name =
- Dart_SetField(runtime_options_class,
+ Dart_SetField(runtime_options_type,
executable_name_name,
dart_executable);
if (Dart_IsError(set_executable_name)) {
@@ -429,7 +429,7 @@
return script_name_name;
}
Dart_Handle set_script_name =
- Dart_SetField(runtime_options_class, script_name_name, dart_script);
+ Dart_SetField(runtime_options_type, script_name_name, dart_script);
if (Dart_IsError(set_script_name)) {
return set_script_name;
}
@@ -438,7 +438,7 @@
return native_name;
}
- return Dart_SetField(runtime_options_class, native_name, dart_arguments);
+ return Dart_SetField(runtime_options_type, native_name, dart_arguments);
}
« no previous file with comments | « runtime/bin/directory.cc ('k') | runtime/bin/secure_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698