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

Unified Diff: runtime/bin/gen_snapshot.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/bin/file.cc ('k') | runtime/bin/io_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/gen_snapshot.cc
===================================================================
--- runtime/bin/gen_snapshot.cc (revision 23447)
+++ runtime/bin/gen_snapshot.cc (working copy)
@@ -304,7 +304,7 @@
url_string);
Builtin::BuiltinLibraryId libraryBuiltinId = BuiltinId(library_url_string);
- if (tag == kCanonicalizeUrl) {
+ if (tag == Dart_kCanonicalizeUrl) {
if (mapped_url_string) {
return url;
}
@@ -318,20 +318,20 @@
Builtin::BuiltinLibraryId builtinId = BuiltinId(url_string);
if (builtinId != Builtin::kInvalidLibrary) {
// Special case for importing a builtin library.
- if (tag == kImportTag) {
+ if (tag == Dart_kImportTag) {
return Builtin::LoadAndCheckLibrary(builtinId);
}
- ASSERT(tag == kSourceTag);
+ ASSERT(tag == Dart_kSourceTag);
return Dart_Error("Unable to part '%s' ", url_string);
}
if (libraryBuiltinId != Builtin::kInvalidLibrary) {
// Special case for parting sources of a builtin library.
- if (tag == kSourceTag) {
+ if (tag == Dart_kSourceTag) {
return Dart_LoadSource(
library, url, Builtin::PartSource(libraryBuiltinId, url_string));
}
- ASSERT(tag == kImportTag);
+ ASSERT(tag == Dart_kImportTag);
return Dart_Error("Unable to import '%s' ", url_string);
}
« no previous file with comments | « runtime/bin/file.cc ('k') | runtime/bin/io_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698