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

Side by Side Diff: src/runtime.js

Issue 1370943002: [builtins] Fix ToString in Array.prototype.join. (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/array.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 // This files contains runtime support implemented in JavaScript. 5 // This files contains runtime support implemented in JavaScript.
6 6
7 // CAUTION: Some of the functions specified in this file are called 7 // CAUTION: Some of the functions specified in this file are called
8 // directly from compiled code. These are the functions with names in 8 // directly from compiled code. These are the functions with names in
9 // ALL CAPS. The compiled code passes the first argument in 'this'. 9 // ALL CAPS. The compiled code passes the first argument in 'this'.
10 10
11 11
12 // The following declarations are shared with other native JS files. 12 // The following declarations are shared with other native JS files.
13 // They are all declared at this one spot to avoid redeclaration errors. 13 // They are all declared at this one spot to avoid redeclaration errors.
14 var $defaultString;
15 var $NaN; 14 var $NaN;
16 var $nonNumberToNumber; 15 var $nonNumberToNumber;
17 var $sameValue; 16 var $sameValue;
18 var $sameValueZero; 17 var $sameValueZero;
19 var $toInteger; 18 var $toInteger;
20 var $toLength; 19 var $toLength;
21 var $toNumber; 20 var $toNumber;
22 var $toPositiveInteger; 21 var $toPositiveInteger;
23 22
24 var harmony_tolength = false; 23 var harmony_tolength = false;
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // NOTE: Setting the prototype for Array must take place as early as 337 // NOTE: Setting the prototype for Array must take place as early as
339 // possible due to code generation for array literals. When 338 // possible due to code generation for array literals. When
340 // generating code for a array literal a boilerplate array is created 339 // generating code for a array literal a boilerplate array is created
341 // that is cloned when running the code. It is essential that the 340 // that is cloned when running the code. It is essential that the
342 // boilerplate gets the right prototype. 341 // boilerplate gets the right prototype.
343 %FunctionSetPrototype(GlobalArray, new GlobalArray(0)); 342 %FunctionSetPrototype(GlobalArray, new GlobalArray(0));
344 343
345 // ---------------------------------------------------------------------------- 344 // ----------------------------------------------------------------------------
346 // Exports 345 // Exports
347 346
348 $defaultString = DefaultString;
349 $NaN = %GetRootNaN(); 347 $NaN = %GetRootNaN();
350 $nonNumberToNumber = NonNumberToNumber; 348 $nonNumberToNumber = NonNumberToNumber;
351 $sameValue = SameValue; 349 $sameValue = SameValue;
352 $sameValueZero = SameValueZero; 350 $sameValueZero = SameValueZero;
353 $toInteger = ToInteger; 351 $toInteger = ToInteger;
354 $toLength = ToLength; 352 $toLength = ToLength;
355 $toNumber = ToNumber; 353 $toNumber = ToNumber;
356 $toPositiveInteger = ToPositiveInteger; 354 $toPositiveInteger = ToPositiveInteger;
357 355
358 %InstallToContext([ 356 %InstallToContext([
(...skipping 12 matching lines...) Expand all
371 ]); 369 ]);
372 370
373 utils.Export(function(to) { 371 utils.Export(function(to) {
374 to.ToBoolean = ToBoolean; 372 to.ToBoolean = ToBoolean;
375 to.ToLength = ToLength; 373 to.ToLength = ToLength;
376 to.ToNumber = ToNumber; 374 to.ToNumber = ToNumber;
377 to.ToString = ToString; 375 to.ToString = ToString;
378 }); 376 });
379 377
380 }) 378 })
OLDNEW
« no previous file with comments | « src/array.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698