/external/v8/src/ |
v8conversions.h | 38 if (number->IsSmi()) return Smi::cast(number)->value(); 44 if (number->IsSmi()) return Smi::cast(number)->value();
|
dateparser.cc | 79 if (!Smi::IsValid(year) || !IsMonth(month) || !IsDay(day)) return false; 81 output->set(YEAR, Smi::FromInt(year)); 82 output->set(MONTH, Smi::FromInt(month - 1)); // 0-based 83 output->set(DAY, Smi::FromInt(day)); 108 output->set(HOUR, Smi::FromInt(hour)); 109 output->set(MINUTE, Smi::FromInt(minute)); 110 output->set(SECOND, Smi::FromInt(second)); 111 output->set(MILLISECOND, Smi::FromInt(millisecond)); 120 if (!Smi::IsValid(total_seconds)) return false; 121 output->set(UTC_OFFSET, Smi::FromInt(total_seconds)) [all...] |
property-details.h | 51 class Smi; 97 explicit inline PropertyDetails(Smi* smi); 98 inline Smi* AsSmi();
|
builtins.cc | 168 const Smi* kConstructMarker = Smi::FromInt(StackFrame::CONSTRUCT); 199 array->set_length(Smi::FromInt(0)); 215 // small smi. 219 int len = Smi::cast(obj)->value(); 227 array->set_length(Smi::cast(obj)); 293 array->set_length(Smi::FromInt(number_of_elements)); 365 *zap++ = Smi::FromInt(0); 374 former_start[to_trim + 1] = Smi::FromInt(len - to_trim); 499 int len = Smi::cast(array->length())->value() [all...] |
arguments.h | 67 return Smi::cast((*this)[index])->value();
|
math.js | 128 // Make sure -0 is considered less than +0. -0 is never a Smi, +0 can be 129 // a Smi or a heap number. 145 // Make sure +0 is considered greater than -0. -0 is never a Smi, +0 can be 146 // a Smi or heap number. 161 // Make sure -0 is considered less than +0. -0 is never a Smi, +0 can be 162 // a Smi or a heap number. 178 // Make sure -0 is considered less than +0. -0 is never a Smi, +0 can be a 179 // Smi or a heap number.
|
/external/chromium_org/v8/test/cctest/ |
test-representation.cc | 53 TestPairPositive(Representation::Smi(), Representation::None()); 64 TestPairPositive(Representation::Smi(), Representation::Integer8()); 75 TestPairPositive(Representation::Smi(), Representation::UInteger8()); 86 TestPairPositive(Representation::Smi(), Representation::Integer16()); 97 TestPairPositive(Representation::Smi(), Representation::UInteger16()); 103 TestPairNegative(Representation::None(), Representation::Smi()); 104 TestPairNegative(Representation::Integer8(), Representation::Smi()); 105 TestPairNegative(Representation::UInteger8(), Representation::Smi()); 106 TestPairNegative(Representation::Integer16(), Representation::Smi()); 107 TestPairNegative(Representation::UInteger16(), Representation::Smi()); [all...] |
test-macro-assembler-x64.cc | 53 using i::Smi; 101 // Smi constant register is callee save. 111 __ Move(rdx, Smi::FromInt(1)); 120 TEST(Smi) { 121 // Check that C++ Smi operations work as expected. 124 Smi::kMaxValue, static_cast<int64_t>(Smi::kMaxValue) + 1, 125 Smi::kMinValue, static_cast<int64_t>(Smi::kMinValue) - 1 130 bool is_valid = Smi::IsValid(number) [all...] |
test-dictionary.cc | 108 set(EntryToIndex(entry), Smi::FromInt(key)); 109 set(EntryToIndex(entry) + 1, Smi::FromInt(value)); 113 return Smi::cast(Lookup(Smi::FromInt(key)))->value(); 135 t->Rehash(Smi::FromInt(0)); 148 t->Rehash(Smi::FromInt(0));
|
test-weakmaps.cc | 52 weakmap->set_next(Smi::FromInt(0)); 101 Handle<Smi>(Smi::FromInt(23), isolate)); 154 PutIntoWeakMap(weakmap, object, Handle<Smi>(Smi::FromInt(i), isolate)); 241 Handle<Smi>(Smi::FromInt(i), isolate));
|
test-weaksets.cc | 52 weakset->set_next(Smi::FromInt(0)); 101 Handle<Smi>(Smi::FromInt(23), isolate)); 154 PutIntoWeakSet(weakset, object, Handle<Smi>(Smi::FromInt(i), isolate)); 241 Handle<Smi>(Smi::FromInt(i), isolate));
|
/external/v8/test/cctest/ |
test-macro-assembler-x64.cc | 50 using v8::internal::Smi; 97 // Smi constant register is callee save. 107 __ Move(rdx, Smi::FromInt(1)); 116 TEST(Smi) { 117 // Check that C++ Smi operations work as expected. 120 Smi::kMaxValue, static_cast<int64_t>(Smi::kMaxValue) + 1, 121 Smi::kMinValue, static_cast<int64_t>(Smi::kMinValue) - 1 126 bool is_valid = Smi::IsValid(number) [all...] |
test-heap.cc | 55 *Execution::ToString(Handle<Object>(Smi::FromInt(value)), &exc); 124 value = HEAP->NumberFromInt32(Smi::kMinValue)->ToObjectChecked(); 127 CHECK_EQ(Smi::kMinValue, Smi::cast(value)->value()); 129 value = HEAP->NumberFromInt32(Smi::kMaxValue)->ToObjectChecked(); 132 CHECK_EQ(Smi::kMaxValue, Smi::cast(value)->value()); 136 value = HEAP->NumberFromInt32(Smi::kMinValue - 1)->ToObjectChecked(); 139 CHECK_EQ(static_cast<double>(Smi::kMinValue - 1), value->Number()); 143 HEAP->NumberFromUint32(static_cast<uint32_t>(Smi::kMaxValue) + 1) [all...] |
test-weakmaps.cc | 45 weakmap->set_next(Smi::FromInt(0)); 55 Handle<Smi>(Smi::FromInt(value)));
|
/external/chromium_org/v8/src/ |
v8conversions.h | 38 if (number->IsSmi()) return Smi::cast(number)->value(); 44 if (number->IsSmi()) return Smi::cast(number)->value(); 62 int value = Smi::cast(number)->value(); 64 static_cast<unsigned>(Smi::kMaxValue)
|
dateparser.cc | 79 if (!Smi::IsValid(year) || !IsMonth(month) || !IsDay(day)) return false; 81 output->set(YEAR, Smi::FromInt(year)); 82 output->set(MONTH, Smi::FromInt(month - 1)); // 0-based 83 output->set(DAY, Smi::FromInt(day)); 108 output->set(HOUR, Smi::FromInt(hour)); 109 output->set(MINUTE, Smi::FromInt(minute)); 110 output->set(SECOND, Smi::FromInt(second)); 111 output->set(MILLISECOND, Smi::FromInt(millisecond)); 121 if (!Smi::IsValid(total_seconds)) return false; 122 output->set(UTC_OFFSET, Smi::FromInt(total_seconds)) [all...] |
scopeinfo.h | 149 int host_index() { return Smi::cast(get(HOST_OFFSET))->value(); } 159 return static_cast<VariableMode>(Smi::cast(get(mode_offset(i)))->value()); 161 int index(int i) { return Smi::cast(get(index_offset(i)))->value(); } 183 void set_host_index(int index) { set(HOST_OFFSET, Smi::FromInt(index)); } 186 set(mode_offset(i), Smi::FromInt(mode)); 189 set(index_offset(i), Smi::FromInt(index));
|
builtins.cc | 177 const Smi* kConstructMarker = Smi::FromInt(StackFrame::CONSTRUCT); 256 *zap++ = Smi::FromInt(0); 266 former_start[new_start_index + 1] = Smi::FromInt(len - to_trim); 414 int len = Smi::cast(array->length())->value(); 417 return Smi::FromInt(len); 421 ASSERT(to_add <= (Smi::kMaxValue - len)); 454 array->set_length(Smi::FromInt(new_length)); 455 return Smi::FromInt(new_length); 457 int len = Smi::cast(array->length())->value() [all...] |
property-details.h | 57 class Smi; 108 static Representation Smi() { return Representation(kSmi); } 249 explicit inline PropertyDetails(Smi* smi); 250 inline Smi* AsSmi(); 306 // All bits for fast objects must fix in a smi.
|
/external/v8/src/x64/ |
macro-assembler-x64.h | 56 // Value of smi in kSmiConstantRegister. 259 // object being stored. |index| is the array index represented as a non-smi. 262 // value is a smi. 275 // the write barrier if the value is a smi. 380 // Smi tagging, untagging and operations on tagged smis. 384 reinterpret_cast<uint64_t>(Smi::FromInt(kSmiConstantRegisterValue)), 388 // Conversions between tagged smi values and non-tagged integer values. 390 // Tag an integer value. The result must be known to be a valid smi value. 392 // based on the value of the resulting smi. 395 // Stores an integer32 value into a memory field that already holds a smi [all...] |
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-137.js | 34 var base = base - (rem / 16); // base is now HeapNumber with valid Smi value. 42 case 15: return "F"; // Enough cases to trigger fast-case Smi switch. 44 fail("case 10", "Default case", "Heap number not recognized as Smi value");
|
/external/v8/test/mjsunit/regress/ |
regress-137.js | 34 var base = base - (rem / 16); // base is now HeapNumber with valid Smi value. 42 case 15: return "F"; // Enough cases to trigger fast-case Smi switch. 44 fail("case 10", "Default case", "Heap number not recognized as Smi value");
|
/external/chromium_org/v8/src/x64/ |
macro-assembler-x64.h | 44 // Value of smi in kSmiConstantRegister. 269 // object being stored. |index| is the array index represented as a non-smi. 272 // value is a smi. 285 // the write barrier if the value is a smi. 402 // Smi tagging, untagging and operations on tagged smis. 406 void SafeMove(Register dst, Smi* src); 407 void SafePush(Smi* src); 410 movq(kSmiConstantRegister, Smi::FromInt(kSmiConstantRegisterValue), 414 // Conversions between tagged smi values and non-tagged integer values. 416 // Tag an integer value. The result must be known to be a valid smi value [all...] |
/external/chromium_org/v8/test/mjsunit/ |
shifts.js | 32 // The result of the shift is not a Smi. 36 // The result of the shift is not a Smi.
|
/external/v8/test/mjsunit/ |
shifts.js | 32 // The result of the shift is not a Smi. 36 // The result of the shift is not a Smi.
|