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

Unified Diff: runtime/bin/builtin.h

Issue 1998963003: Rework standalone to use a synchronous loader that does not invoke Dart code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | runtime/bin/builtin.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.h
diff --git a/runtime/bin/builtin.h b/runtime/bin/builtin.h
index a4893d9bf7fc1541c6153952dc2f1f882b646d06..5029cf1b30c2350b8f8ef866c3da5fe7ad3e1693 100644
--- a/runtime/bin/builtin.h
+++ b/runtime/bin/builtin.h
@@ -51,6 +51,11 @@ class Builtin {
static Dart_Handle SetLoadPort(Dart_Port port);
+ static Dart_Port LoadPort() {
+ ASSERT(load_port_ != ILLEGAL_PORT);
+ return load_port_;
+ }
+
private:
// Map specified URI to an actual file name from 'source_paths' and read
// the file.
« no previous file with comments | « no previous file | runtime/bin/builtin.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698