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

Unified Diff: src/array.js

Issue 1309503003: Install js intrinsic fallbacks for array functions on the native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@context_intrinsics
Patch Set: 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 | « no previous file | src/builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/array.js
diff --git a/src/array.js b/src/array.js
index 4520a34e35055da4129e60c7e12f1dc2fe3d2bd1..af3dbd701ebac2f756dde8ff379af2c5efc9370c 100644
--- a/src/array.js
+++ b/src/array.js
@@ -2,14 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var $arrayConcat;
-var $arrayPush;
-var $arrayPop;
-var $arrayShift;
-var $arraySlice;
-var $arraySplice;
-var $arrayUnshift;
-
(function(global, utils) {
"use strict";
@@ -1695,6 +1687,7 @@ utils.SetUpLockedPrototype(InternalPackedArray, GlobalArray(), [
utils.Export(function(to) {
to.ArrayIndexOf = ArrayIndexOf;
to.ArrayJoin = ArrayJoin;
+ to.ArrayPush = ArrayPush;
to.ArrayToString = ArrayToString;
to.InnerArrayEvery = InnerArrayEvery;
to.InnerArrayFilter = InnerArrayFilter;
@@ -1711,12 +1704,14 @@ utils.Export(function(to) {
to.PackedArrayReverse = PackedArrayReverse;
});
-$arrayConcat = ArrayConcatJS;
-$arrayPush = ArrayPush;
-$arrayPop = ArrayPop;
-$arrayShift = ArrayShift;
-$arraySlice = ArraySlice;
-$arraySplice = ArraySplice;
-$arrayUnshift = ArrayUnshift;
+%InstallToContext([
+ "array_concat", ArrayConcatJS,
+ "array_pop", ArrayPop,
+ "array_push", ArrayPush,
+ "array_shift", ArrayShift,
+ "array_splice", ArraySplice,
+ "array_slice", ArraySlice,
+ "array_unshift", ArrayUnshift,
+]);
});
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698