Index: runtime/bin/secure_socket.cc |
=================================================================== |
--- runtime/bin/secure_socket.cc (revision 24207) |
+++ runtime/bin/secure_socket.cc (working copy) |
@@ -264,23 +264,23 @@ |
Dart_Handle start_epoch_ms_int = Dart_NewInteger(start_epoch_ms); |
Dart_Handle end_epoch_ms_int = Dart_NewInteger(end_epoch_ms); |
- Dart_Handle date_class = |
- DartUtils::GetDartClass(DartUtils::kCoreLibURL, "DateTime"); |
+ Dart_Handle date_type = |
+ DartUtils::GetDartType(DartUtils::kCoreLibURL, "DateTime"); |
Dart_Handle from_milliseconds = |
DartUtils::NewString("fromMillisecondsSinceEpoch"); |
Dart_Handle start_validity_date = |
- Dart_New(date_class, from_milliseconds, 1, &start_epoch_ms_int); |
+ Dart_New(date_type, from_milliseconds, 1, &start_epoch_ms_int); |
Dart_Handle end_validity_date = |
- Dart_New(date_class, from_milliseconds, 1, &end_epoch_ms_int); |
+ Dart_New(date_type, from_milliseconds, 1, &end_epoch_ms_int); |
- Dart_Handle x509_class = |
- DartUtils::GetDartClass(DartUtils::kIOLibURL, "X509Certificate"); |
+ Dart_Handle x509_type = |
+ DartUtils::GetDartType(DartUtils::kIOLibURL, "X509Certificate"); |
Dart_Handle arguments[] = { subject_name_object, |
issuer_name_object, |
start_validity_date, |
end_validity_date }; |
- return Dart_New(x509_class, Dart_Null(), 4, arguments); |
+ return Dart_New(x509_type, Dart_Null(), 4, arguments); |
} |
@@ -309,13 +309,13 @@ |
Dart_GetField(dart_this, DartUtils::NewString("buffers"))); |
Dart_Handle dart_buffer_object = |
Dart_ListGetAt(dart_buffers_object, kReadPlaintext); |
- Dart_Handle external_buffer_class = |
- Dart_InstanceGetClass(dart_buffer_object); |
+ Dart_Handle external_buffer_type = |
+ Dart_InstanceGetType(dart_buffer_object); |
Dart_Handle dart_buffer_size = ThrowIfError( |
- Dart_GetField(external_buffer_class, DartUtils::NewString("SIZE"))); |
+ Dart_GetField(external_buffer_type, DartUtils::NewString("SIZE"))); |
int64_t buffer_size = DartUtils::GetIntegerValue(dart_buffer_size); |
Dart_Handle dart_encrypted_buffer_size = ThrowIfError( |
- Dart_GetField(external_buffer_class, |
+ Dart_GetField(external_buffer_type, |
DartUtils::NewString("ENCRYPTED_SIZE"))); |
int64_t encrypted_buffer_size = |
DartUtils::GetIntegerValue(dart_encrypted_buffer_size); |