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

Side by Side Diff: src/js/prologue.js

Issue 1404943002: Use import/export for more functions (instead of js builtins object). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/js/object-observe.js ('k') | src/js/runtime.js » ('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 (function(global, utils, extrasUtils) { 5 (function(global, utils, extrasUtils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 function PostNatives(utils) { 156 function PostNatives(utils) {
157 %CheckIsBootstrapping(); 157 %CheckIsBootstrapping();
158 158
159 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { 159 for ( ; !IS_UNDEFINED(imports); imports = imports.next) {
160 imports(exports_container); 160 imports(exports_container);
161 } 161 }
162 162
163 // Whitelist of exports from normal natives to experimental natives and debug. 163 // Whitelist of exports from normal natives to experimental natives and debug.
164 var expose_list = [ 164 var expose_list = [
165 "ArrayToString", 165 "ArrayToString",
166 "ErrorToString",
166 "FunctionSourceString", 167 "FunctionSourceString",
167 "GetIterator", 168 "GetIterator",
168 "GetMethod", 169 "GetMethod",
169 "InnerArrayEvery", 170 "InnerArrayEvery",
170 "InnerArrayFilter", 171 "InnerArrayFilter",
171 "InnerArrayForEach", 172 "InnerArrayForEach",
172 "InnerArrayIndexOf", 173 "InnerArrayIndexOf",
173 "InnerArrayJoin", 174 "InnerArrayJoin",
174 "InnerArrayLastIndexOf", 175 "InnerArrayLastIndexOf",
175 "InnerArrayMap", 176 "InnerArrayMap",
176 "InnerArrayReduce", 177 "InnerArrayReduce",
177 "InnerArrayReduceRight", 178 "InnerArrayReduceRight",
178 "InnerArrayReverse", 179 "InnerArrayReverse",
179 "InnerArraySome", 180 "InnerArraySome",
180 "InnerArraySort", 181 "InnerArraySort",
181 "InnerArrayToLocaleString", 182 "InnerArrayToLocaleString",
182 "IsNaN", 183 "IsNaN",
184 "MapEntries",
185 "MapIteratorNext",
183 "MathMax", 186 "MathMax",
184 "MathMin", 187 "MathMin",
185 "ObjectIsFrozen", 188 "ObjectIsFrozen",
186 "ObjectDefineProperty", 189 "ObjectDefineProperty",
187 "ObserveArrayMethods", 190 "ObserveArrayMethods",
188 "ObserveObjectMethods", 191 "ObserveObjectMethods",
189 "OwnPropertyKeys", 192 "OwnPropertyKeys",
193 "SetIteratorNext",
194 "SetValues",
190 "SymbolToString", 195 "SymbolToString",
191 "ToNameArray", 196 "ToNameArray",
197 "ToPositiveInteger",
192 // From runtime: 198 // From runtime:
193 "is_concat_spreadable_symbol", 199 "is_concat_spreadable_symbol",
194 "iterator_symbol", 200 "iterator_symbol",
195 "promise_status_symbol", 201 "promise_status_symbol",
196 "promise_value_symbol", 202 "promise_value_symbol",
197 "reflect_apply", 203 "reflect_apply",
198 "reflect_construct", 204 "reflect_construct",
199 "to_string_tag_symbol", 205 "to_string_tag_symbol",
200 ]; 206 ];
201 207
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 311
306 extrasUtils.uncurryThis = function uncurryThis(func) { 312 extrasUtils.uncurryThis = function uncurryThis(func) {
307 return function(thisArg) { 313 return function(thisArg) {
308 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); 314 return %Apply(func, thisArg, arguments, 1, arguments.length - 1);
309 }; 315 };
310 }; 316 };
311 317
312 %ToFastProperties(extrasUtils); 318 %ToFastProperties(extrasUtils);
313 319
314 }) 320 })
OLDNEW
« no previous file with comments | « src/js/object-observe.js ('k') | src/js/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698