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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « bin/builtin_natives.cc ('k') | bin/gen_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 #include <stdio.h>
6
7 #include "include/dart_api.h"
8
9 #include "bin/builtin.h"
10 #include "bin/dartutils.h"
11
12
13 Dart_Handle Builtin::Source() {
14 UNREACHABLE();
15 return Dart_Null();
16 }
17
18
19 void Builtin::SetupLibrary(Dart_Handle builtin_lib) {
20 UNREACHABLE();
21 }
22
23
24 void Builtin::ImportLibrary(Dart_Handle library) {
25 Dart_Handle url = Dart_NewString(DartUtils::kBuiltinLibURL);
26 Dart_Handle builtin_lib = Dart_LookupLibrary(url);
27 // Import the builtin library into current library.
28 DART_CHECK_VALID(builtin_lib);
29 DART_CHECK_VALID(Dart_LibraryImportLibrary(library, builtin_lib));
30 }
OLDNEW
« 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