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

Unified Diff: src/js/spread.js

Issue 1677063005: Revert of [builtins] Remove bunch of uses of %_Arguments and %_ArgumentsLength. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/js/json.js ('k') | src/js/typedarray.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/spread.js
diff --git a/src/js/spread.js b/src/js/spread.js
index 82ea83959853634d274089d13b54bc4db6918b01..235c91ab7928b00597ac2b5e9f093835a76e6647 100644
--- a/src/js/spread.js
+++ b/src/js/spread.js
@@ -18,11 +18,11 @@
// -------------------------------------------------------------------
function SpreadArguments() {
- var count = arguments.length;
+ var count = %_ArgumentsLength();
var args = new InternalArray();
for (var i = 0; i < count; ++i) {
- var array = arguments[i];
+ var array = %_Arguments(i);
var length = array.length;
for (var j = 0; j < length; ++j) {
args.push(array[j]);
« no previous file with comments | « src/js/json.js ('k') | src/js/typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698