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

Unified Diff: bin/dartutils.cc

Issue 8537023: Implement automatic loading of dart:core_native_fields library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' 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 | « bin/dartutils.h ('k') | bin/eventhandler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/dartutils.cc
===================================================================
--- bin/dartutils.cc (revision 1624)
+++ bin/dartutils.cc (working copy)
@@ -4,8 +4,10 @@
#include "bin/dartutils.h"
-const char* DartUtils::kBuiltinLibURL = "./dart:builtin-lib";
-const char* DartUtils::kBuiltinLibSpec = "library { }";
+const char* DartUtils::kBuiltinLibURL = "dart:builtin";
+const char* DartUtils::kCoreLibURL = "dart:core";
+const char* DartUtils::kCoreImplLibURL = "dart:coreimpl";
+const char* DartUtils::kCoreNativeWrappersLibURL = "dart:nativewrappers";
const char* DartUtils::kIdFieldName = "_id";
@@ -17,6 +19,7 @@
return value;
}
+
const char* DartUtils::GetStringValue(Dart_Handle str_obj) {
const char* cstring = NULL;
Dart_Handle result = Dart_StringToCString(str_obj, &cstring);
@@ -32,6 +35,7 @@
return value;
}
+
void DartUtils::SetIntegerInstanceField(Dart_Handle handle,
const char* name,
intptr_t val) {
@@ -41,6 +45,7 @@
ASSERT(!Dart_IsError(result));
}
+
intptr_t DartUtils::GetIntegerInstanceField(Dart_Handle handle,
const char* name) {
Dart_Handle result =
@@ -50,6 +55,7 @@
return value;
}
+
void DartUtils::SetStringInstanceField(Dart_Handle handle,
const char* name,
const char* val) {
« no previous file with comments | « bin/dartutils.h ('k') | bin/eventhandler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698