Lines Matching refs:number
36 // Convert from Number object to C integer.
37 inline int32_t NumberToInt32(Object* number) {
38 if (number->IsSmi()) return Smi::cast(number)->value();
39 return DoubleToInt32(number->Number());
43 inline uint32_t NumberToUint32(Object* number) {
44 if (number->IsSmi()) return Smi::cast(number)->value();
45 return DoubleToUint32(number->Number());
58 // Converts a number into size_t.
60 Object* number) {
62 if (number->IsSmi()) {
63 return Smi::cast(number)->value();
65 ASSERT(number->IsHeapNumber());
66 double value = HeapNumber::cast(number)->value();