| OLD | NEW |
| 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 |
| (...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 | 908 |
| 909 //---------------------------------------------------------------------------- | 909 //---------------------------------------------------------------------------- |
| 910 | 910 |
| 911 // NOTE: Setting the prototype for Array must take place as early as | 911 // NOTE: Setting the prototype for Array must take place as early as |
| 912 // possible due to code generation for array literals. When | 912 // possible due to code generation for array literals. When |
| 913 // generating code for a array literal a boilerplate array is created | 913 // generating code for a array literal a boilerplate array is created |
| 914 // that is cloned when running the code. It is essential that the | 914 // that is cloned when running the code. It is essential that the |
| 915 // boilerplate gets the right prototype. | 915 // boilerplate gets the right prototype. |
| 916 %FunctionSetPrototype(GlobalArray, new GlobalArray(0)); | 916 %FunctionSetPrototype(GlobalArray, new GlobalArray(0)); |
| 917 | 917 |
| 918 //---------------------------------------------------------------------------- | 918 // ---------------------------------------------------------------------------- |
| 919 | 919 |
| 920 $concatIterableToArray = ConcatIterableToArray; | 920 $concatIterableToArray = ConcatIterableToArray; |
| 921 $defaultNumber = DefaultNumber; | 921 $defaultNumber = DefaultNumber; |
| 922 $defaultString = DefaultString; | 922 $defaultString = DefaultString; |
| 923 $NaN = %GetRootNaN(); | 923 $NaN = %GetRootNaN(); |
| 924 $nonNumberToNumber = NonNumberToNumber; | 924 $nonNumberToNumber = NonNumberToNumber; |
| 925 $nonStringToString = NonStringToString; | 925 $nonStringToString = NonStringToString; |
| 926 $sameValue = SameValue; | 926 $sameValue = SameValue; |
| 927 $sameValueZero = SameValueZero; | 927 $sameValueZero = SameValueZero; |
| 928 $toBoolean = ToBoolean; | 928 $toBoolean = ToBoolean; |
| 929 $toInteger = ToInteger; | 929 $toInteger = ToInteger; |
| 930 $toLength = ToLength; | 930 $toLength = ToLength; |
| 931 $toName = ToName; | 931 $toName = ToName; |
| 932 $toNumber = ToNumber; | 932 $toNumber = ToNumber; |
| 933 $toPositiveInteger = ToPositiveInteger; | 933 $toPositiveInteger = ToPositiveInteger; |
| 934 $toPrimitive = ToPrimitive; | 934 $toPrimitive = ToPrimitive; |
| 935 $toString = ToString; | 935 $toString = ToString; |
| 936 | 936 |
| 937 }) | 937 }) |
| OLD | NEW |