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

Unified Diff: src/prologue.js

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 4 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 | « src/prettyprinter.cc ('k') | src/promise.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/prologue.js
diff --git a/src/prologue.js b/src/prologue.js
index 56f9ed5b38fa576f0a2c563877e37114d1b9ab8e..5a0832c25ba682273a6b00babaedf05a6f35f31c 100644
--- a/src/prologue.js
+++ b/src/prologue.js
@@ -13,7 +13,6 @@
var imports = UNDEFINED;
var imports_from_experimental = UNDEFINED;
-var exports_to_runtime = UNDEFINED;
var exports_container = {};
// Export to other scripts.
@@ -25,13 +24,6 @@ function Export(f) {
}
-// Export to the native context for calls from the runtime.
-function ExportToRuntime(f) {
- f.next = exports_to_runtime;
- exports_to_runtime = f;
-}
-
-
// Import from other scripts. The actual importing happens in PostNatives and
// PostExperimental so that we can import from scripts executed later. However,
// that means that the import is not available until the very end. If the
@@ -173,13 +165,6 @@ function PostNatives(utils) {
imports(exports_container);
}
- var runtime_container = {};
- for ( ; !IS_UNDEFINED(exports_to_runtime);
- exports_to_runtime = exports_to_runtime.next) {
- exports_to_runtime(runtime_container);
- }
- %ImportToRuntime(runtime_container);
-
// Whitelist of exports from normal natives to experimental natives and debug.
var expose_list = [
"ArrayToString",
@@ -235,12 +220,6 @@ function PostExperimentals(utils) {
imports_from_experimental = imports_from_experimental.next) {
imports_from_experimental(exports_container);
}
- var runtime_container = {};
- for ( ; !IS_UNDEFINED(exports_to_runtime);
- exports_to_runtime = exports_to_runtime.next) {
- exports_to_runtime(runtime_container);
- }
- %ImportExperimentalToRuntime(runtime_container);
exports_container = UNDEFINED;
private_symbols = UNDEFINED;
@@ -268,12 +247,11 @@ function PostDebug(utils) {
// -----------------------------------------------------------------------
-%OptimizeObjectForAddingMultipleProperties(utils, 15);
+%OptimizeObjectForAddingMultipleProperties(utils, 14);
utils.Import = Import;
utils.ImportNow = ImportNow;
utils.Export = Export;
-utils.ExportToRuntime = ExportToRuntime;
utils.ImportFromExperimental = ImportFromExperimental;
utils.GetPrivateSymbol = GetPrivateSymbol;
utils.SetFunctionName = SetFunctionName;
« no previous file with comments | « src/prettyprinter.cc ('k') | src/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698