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

Unified Diff: runtime/bin/directory.cc

Issue 9642003: Start using Dart_SetField and Dart_GetField in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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/dartutils.cc ('k') | runtime/bin/eventhandler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory.cc
===================================================================
--- runtime/bin/directory.cc (revision 5182)
+++ runtime/bin/directory.cc (working copy)
@@ -69,8 +69,8 @@
static const int kMaxChildOsErrorMessageLength = 256;
char os_error_message[kMaxChildOsErrorMessageLength];
if (!Dart_IsString(path)) {
- DartUtils::SetIntegerInstanceField(status_handle, "_errorCode", 0);
- DartUtils::SetStringInstanceField(
+ DartUtils::SetIntegerField(status_handle, "_errorCode", 0);
+ DartUtils::SetStringField(
status_handle, "_errorMessage", "Invalid arguments");
Dart_SetReturnValue(args, Dart_Null());
Dart_ExitScope();
@@ -88,13 +88,13 @@
} else {
ASSERT(result == NULL);
if (error_code == -1) {
- DartUtils::SetIntegerInstanceField(status_handle, "_errorCode", 0);
- DartUtils::SetStringInstanceField(
+ DartUtils::SetIntegerField(status_handle, "_errorCode", 0);
+ DartUtils::SetStringField(
status_handle, "_errorMessage", "Invalid arguments");
} else {
- DartUtils::SetIntegerInstanceField(
+ DartUtils::SetIntegerField(
status_handle, "_errorCode", error_code);
- DartUtils::SetStringInstanceField(
+ DartUtils::SetStringField(
status_handle, "_errorMessage", os_error_message);
}
Dart_SetReturnValue(args, Dart_Null());
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/bin/eventhandler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698