Home | History | Annotate | Download | only in src

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());
59 Object* number, size_t* result) {
61 if (number->IsSmi()) {
62 int value = Smi::cast(number)->value();
72 ASSERT(number->IsHeapNumber());
73 double value = HeapNumber::cast(number)->value();
84 // Converts a number into size_t.
86 Object* number) {
88 bool is_valid = TryNumberToSize(isolate, number, &result);