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: src/js/v8natives.js

Issue 1540893004: [runtime] Migrate GlobalEval to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index 8f17a838b0d9de173e67e2d70a7ef5871747f081..8446c93a4cb615945a8875fd6c11d52c6bf0d21f 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -100,19 +100,6 @@ function GlobalParseFloat(string) {
}
-// ES6 18.2.1 eval(x)
-function GlobalEval(x) {
- if (!IS_STRING(x)) return x;
-
- var global_proxy = %GlobalProxy(GlobalEval);
-
- var f = %CompileString(x, false);
- if (!IS_FUNCTION(f)) return f;
-
- return %_Call(f, global_proxy);
-}
-
-
// ----------------------------------------------------------------------------
// Set up global object.
@@ -133,7 +120,6 @@ utils.InstallFunctions(global, DONT_ENUM, [
"isFinite", GlobalIsFinite,
"parseInt", GlobalParseInt,
"parseFloat", GlobalParseFloat,
- "eval", GlobalEval
]);
@@ -1403,7 +1389,6 @@ utils.Export(function(to) {
});
%InstallToContext([
- "global_eval_fun", GlobalEval,
"object_value_of", ObjectValueOf,
]);
« no previous file with comments | « src/builtins.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698