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

Unified Diff: runtime/bin/directory.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.h ('k') | runtime/bin/main.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 24207)
+++ runtime/bin/directory.cc (working copy)
@@ -146,7 +146,7 @@
// Create the list to hold the directory listing here, and pass it to the
// SyncDirectoryListing object, which adds elements to it.
Dart_Handle results =
- Dart_New(DartUtils::GetDartClass(DartUtils::kCoreLibURL, "List"),
+ Dart_New(DartUtils::GetDartType(DartUtils::kCoreLibURL, "List"),
Dart_Null(),
0,
NULL);
@@ -413,7 +413,7 @@
bool SyncDirectoryListing::HandleDirectory(char* dir_name) {
Dart_Handle dir_name_dart = DartUtils::NewString(dir_name);
Dart_Handle dir =
- Dart_New(directory_class_, Dart_Null(), 1, &dir_name_dart);
+ Dart_New(directory_type_, Dart_Null(), 1, &dir_name_dart);
Dart_Invoke(results_, add_string_, 1, &dir);
return true;
}
@@ -421,7 +421,7 @@
bool SyncDirectoryListing::HandleLink(char* link_name) {
Dart_Handle link_name_dart = DartUtils::NewString(link_name);
Dart_Handle link =
- Dart_New(link_class_, Dart_Null(), 1, &link_name_dart);
+ Dart_New(link_type_, Dart_Null(), 1, &link_name_dart);
Dart_Invoke(results_, add_string_, 1, &link);
return true;
}
@@ -429,7 +429,7 @@
bool SyncDirectoryListing::HandleFile(char* file_name) {
Dart_Handle file_name_dart = DartUtils::NewString(file_name);
Dart_Handle file =
- Dart_New(file_class_, Dart_Null(), 1, &file_name_dart);
+ Dart_New(file_type_, Dart_Null(), 1, &file_name_dart);
Dart_Invoke(results_, add_string_, 1, &file);
return true;
}
@@ -441,7 +441,7 @@
args[1] = DartUtils::NewString(dir_name);
args[2] = dart_os_error;
Dart_ThrowException(Dart_New(
- DartUtils::GetDartClass(DartUtils::kIOLibURL, "DirectoryException"),
+ DartUtils::GetDartType(DartUtils::kIOLibURL, "DirectoryException"),
Dart_Null(),
3,
args));
« no previous file with comments | « runtime/bin/directory.h ('k') | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698