Lines Matching refs:Number
33 // const $Number = global.Number;
77 function GlobalIsNaN(number) {
78 var n = ToNumber(number);
84 function GlobalIsFinite(number) {
85 return %NumberIsFinite(ToNumber(number));
95 // non-Smi number 9 times faster (230ns vs 2070ns). Together
101 // Truncate number.
781 // Number
783 // Set the Number function and constructor.
784 %SetCode($Number, function(x) {
793 %FunctionSetPrototype($Number, new $Number(0));
797 // NOTE: Both Number objects and values can enter here as
799 var number = this;
802 throw new $TypeError('Number.prototype.toString is not generic');
803 // Get the value of this number in case it's an object.
804 number = %_ValueOf(this);
806 // Fast case: Convert number in radix 10.
808 return ToString(number);
816 // Convert the number to a string in the given radix.
817 return %NumberToRadixString(number, radix);
829 // NOTE: Both Number objects and values can enter here as
832 throw new $TypeError('Number.prototype.valueOf is not generic');
889 %OptimizeObjectForAddingMultipleProperties($Number.prototype, 8);
890 // Setup the constructor property on the Number prototype object.
891 %SetProperty($Number.prototype, "constructor", $Number, DONT_ENUM);
893 %OptimizeObjectForAddingMultipleProperties($Number, 5);
895 %SetProperty($Number,
901 %SetProperty($Number, "MIN_VALUE", 5e-324, DONT_ENUM | DONT_DELETE | READ_ONLY);
904 %SetProperty($Number, "NaN", $NaN, DONT_ENUM | DONT_DELETE | READ_ONLY);
907 %SetProperty($Number,
913 %SetProperty($Number,
917 %ToFastProperties($Number);
919 // Setup non-enumerable functions on the Number prototype object.
920 InstallFunctions($Number.prototype, DONT_ENUM, $Array(