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

Unified Diff: src/v8natives.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/templates.js ('k') | test/cctest/compiler/test-run-jscalls.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 778607633382183a66cf2661303e3399513b04f0..7d8b78a6b2f4ee249510421725e05328a8de8159 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1809,11 +1809,11 @@ utils.Export(function(to) {
to.ToNameArray = ToNameArray;
});
-utils.ExportToRuntime(function(to) {
- to["global_eval_fun"] = GlobalEval;
- to["object_define_own_property"] = DefineOwnPropertyFromAPI;
- to["object_get_own_property_descriptor"] = ObjectGetOwnPropertyDescriptor;
- to["to_complete_property_descriptor"] = ToCompletePropertyDescriptor;
-});
+%InstallToContext([
+ "global_eval_fun", GlobalEval,
+ "object_define_own_property", DefineOwnPropertyFromAPI,
+ "object_get_own_property_descriptor", ObjectGetOwnPropertyDescriptor,
+ "to_complete_property_descriptor", ToCompletePropertyDescriptor,
+]);
})
« no previous file with comments | « src/templates.js ('k') | test/cctest/compiler/test-run-jscalls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698