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

Unified Diff: bin/builtin_nolib.cc

Issue 8673002: - Refactor the isolate callback mechanism to also include creation of the (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/builtin_natives.cc ('k') | bin/gen_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/builtin_nolib.cc
===================================================================
--- bin/builtin_nolib.cc (revision 0)
+++ bin/builtin_nolib.cc (revision 0)
@@ -0,0 +1,30 @@
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#include <stdio.h>
+
+#include "include/dart_api.h"
+
+#include "bin/builtin.h"
+#include "bin/dartutils.h"
+
+
+Dart_Handle Builtin::Source() {
+ UNREACHABLE();
+ return Dart_Null();
+}
+
+
+void Builtin::SetupLibrary(Dart_Handle builtin_lib) {
+ UNREACHABLE();
+}
+
+
+void Builtin::ImportLibrary(Dart_Handle library) {
+ Dart_Handle url = Dart_NewString(DartUtils::kBuiltinLibURL);
+ Dart_Handle builtin_lib = Dart_LookupLibrary(url);
+ // Import the builtin library into current library.
+ DART_CHECK_VALID(builtin_lib);
+ DART_CHECK_VALID(Dart_LibraryImportLibrary(library, builtin_lib));
+}
« no previous file with comments | « bin/builtin_natives.cc ('k') | bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698