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

Side by Side Diff: src/harmony-spread.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, 3 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 unified diff | Download patch
« no previous file with comments | « src/harmony-reflect.js ('k') | src/hydrogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var $spreadArguments;
6 var $spreadIterable;
7
8 (function(global, utils) { 5 (function(global, utils) {
9 6
10 'use strict'; 7 'use strict';
11 8
12 // ------------------------------------------------------------------- 9 // -------------------------------------------------------------------
13 // Imports 10 // Imports
14 var InternalArray = utils.InternalArray; 11 var InternalArray = utils.InternalArray;
15 12
16 // ------------------------------------------------------------------- 13 // -------------------------------------------------------------------
17 14
(...skipping 18 matching lines...) Expand all
36 throw MakeTypeError(kNotIterable, collection); 33 throw MakeTypeError(kNotIterable, collection);
37 } 34 }
38 35
39 var args = new InternalArray(); 36 var args = new InternalArray();
40 for (var value of collection) { 37 for (var value of collection) {
41 args.push(value); 38 args.push(value);
42 } 39 }
43 return args; 40 return args;
44 } 41 }
45 42
46 $spreadArguments = SpreadArguments; 43 // ----------------------------------------------------------------------------
47 $spreadIterable = SpreadIterable; 44 // Exports
45
46 %InstallToContext([
47 "spread_arguments", SpreadArguments,
48 "spread_iterable", SpreadIterable,
49 ]);
48 50
49 }) 51 })
OLDNEW
« no previous file with comments | « src/harmony-reflect.js ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698