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

Unified Diff: runtime/vm/bootstrap.cc

Issue 15689013: - Modify dart_api.h to be a proper C API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/lib/isolate.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap.cc
===================================================================
--- runtime/vm/bootstrap.cc (revision 23447)
+++ runtime/vm/bootstrap.cc (working copy)
@@ -191,13 +191,13 @@
if (!Dart_IsString(uri)) {
return Dart_NewApiError("uri is not a string");
}
- if (tag == kCanonicalizeUrl) {
+ if (tag == Dart_kCanonicalizeUrl) {
// In the boot strap loader we do not try and do any canonicalization.
return uri;
}
const String& uri_str = Api::UnwrapStringHandle(isolate, uri);
ASSERT(!uri_str.IsNull());
- if (tag == kImportTag) {
+ if (tag == Dart_kImportTag) {
// We expect the core bootstrap libraries to only import other
// core bootstrap libraries.
// We have precreated all the bootstrap library objects hence
@@ -206,7 +206,7 @@
return Dart_NewApiError("Invalid import of '%s' in a bootstrap library",
uri_str.ToCString());
}
- ASSERT(tag == kSourceTag);
+ ASSERT(tag == Dart_kSourceTag);
const Library& lib = Api::UnwrapLibraryHandle(isolate, library);
ASSERT(!lib.IsNull());
return LoadPartSource(isolate, lib, uri_str);
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698