/external/v8/test/mjsunit/ |
math-min-max.js | 43 // Prepare a non-Smi zero value. 47 // We have to have a loop here because the first time we get a Smi from the 49 // a non-Smi from the generated code. 60 // us into the runtime system, which would quite legitimately put a Smi zero 182 // Test smi-based Math.min.
|
/external/v8/src/x87/ |
code-stubs-x87.cc | 108 // be either a smi or a heap number object (fp value). Requirements: 113 // Test if operands are smi or number objects (fp). Requirements: 253 // Test if both operands are floats or smi -> scratch=k_is_float; 399 __ cmp(ebx, Immediate(Smi::FromInt(JSRegExp::IRREGEXP))); 407 // Multiplying by 2 comes for free since edx is smi-tagged. 501 // a smi (code flushing support). 505 // ebx: previous index (smi) 577 STATIC_ASSERT(kSmiTagSize == 1); // esi is smi (powered by 2). 631 __ add(edx, Immediate(2)); // edx was a smi. 656 __ SmiTag(edx); // Number of capture registers to smi [all...] |
/external/v8/src/full-codegen/arm/ |
full-codegen-arm.cc | 43 // the inlined smi code. 53 // the inlined smi code. 107 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 348 __ mov(r0, Operand(Smi::FromInt(0))); 355 __ sub(r3, r3, Operand(Smi::FromInt(delta)), SetCC); 384 __ mov(r3, Operand(Smi::FromInt(reset_value))); 557 if (Smi::cast(*lit)->value() == 0) { 846 // We know that we have written a function, which is not a smi. 876 __ mov(r0, Operand(Smi::FromInt(DeclareGlobalsFlags()))) [all...] |
/external/v8/src/full-codegen/mips/ |
full-codegen-mips.cc | 53 // the inlined smi code. 64 // the inlined smi code. 115 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 353 DCHECK(Smi::FromInt(0) == 0); 361 __ Subu(a3, a3, Operand(Smi::FromInt(delta))); 373 __ li(a3, Operand(Smi::FromInt(reset_value))); 548 if (Smi::cast(*lit)->value() == 0) { 843 // We know that we have written a function, which is not a smi. 873 __ li(a0, Operand(Smi::FromInt(DeclareGlobalsFlags()))) [all...] |
/external/v8/src/full-codegen/mips64/ |
full-codegen-mips64.cc | 53 // the inlined smi code. 64 // the inlined smi code. 115 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 352 DCHECK(Smi::FromInt(0) == 0); 360 __ Dsubu(a3, a3, Operand(Smi::FromInt(delta))); 372 __ li(a3, Operand(Smi::FromInt(reset_value))); 547 if (Smi::cast(*lit)->value() == 0) { 842 // We know that we have written a function, which is not a smi. 872 __ li(a0, Operand(Smi::FromInt(DeclareGlobalsFlags()))) [all...] |
/external/v8/src/full-codegen/s390/ |
full-codegen-s390.cc | 42 // the inlined smi code. 56 // the inlined smi code. 111 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 353 __ LoadSmiLiteral(r2, Smi::FromInt(0)); 358 intptr_t smi_delta = reinterpret_cast<intptr_t>(Smi::FromInt(delta)); 364 __ SubSmiLiteral(r5, r5, Smi::FromInt(delta), r0); 372 __ LoadSmiLiteral(r5, Smi::FromInt(reset_value)); 529 if (Smi::cast(*lit)->value() == 0) { 785 // We know that we have written a function, which is not a smi [all...] |
/external/v8/test/cctest/ |
test-field-type-tracking.cc | 474 Handle<Object> value(Smi::FromInt(0), isolate); 476 // None to Smi generalization is trivial, map does not change. 479 expectations.SetDataField(0, NONE, Representation::Smi(), any_type); 524 Handle<Object> value(Smi::FromInt(42), isolate); 532 CHECK_EQ(42, Smi::cast(the_value)->value()); 580 expectations.AddDataField(map, NONE, Representation::Smi(), any_type); 731 TestGeneralizeRepresentation(Representation::Smi(), any_type, 745 TestGeneralizeRepresentation(Representation::Smi(), any_type, 774 Representation::Smi(), any_type, 814 // None -> Smi representation change is trivial [all...] |
/external/v8/src/full-codegen/ppc/ |
full-codegen-ppc.cc | 42 // the inlined smi code. 52 // the inlined smi code. 105 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 351 __ LoadSmiLiteral(r3, Smi::FromInt(0)); 358 __ SubSmiLiteral(r6, r6, Smi::FromInt(delta), r0); 366 __ LoadSmiLiteral(r6, Smi::FromInt(reset_value)); 533 if (Smi::cast(*lit)->value() == 0) { 809 // We know that we have written a function, which is not a smi. 834 __ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags())) [all...] |
/external/v8/src/ |
objects.h | 46 // - Smi (immediate small integer) 155 // Smi: [31 bit signed int] 0 310 // We may store the unsigned bit field as signed Smi value and do not [all...] |
isolate.cc | 409 Handle<Smi> offset(Smi::FromInt(frames[i].code_offset()), this); 438 elements->set(cursor++, Smi::FromInt(wasm_frame->function_index())); 440 elements->set(cursor++, Smi::FromInt(offset)); 448 elements->set(0, Smi::FromInt(sloppy_frames)); 451 result->set_length(Smi::FromInt(cursor)); 561 handle(Smi::FromInt(info.column + 1), isolate_), 565 handle(Smi::FromInt(info.line + 1), isolate_), 571 handle(Smi::FromInt(script->id()), isolate_), NONE); 654 return Smi::cast(maybe_code)->value() [all...] |
api-natives.cc | 239 PropertyDetails details(Smi::cast(*bit)); 259 PropertyDetails details(Smi::cast(properties.get(i++))); 264 static_cast<v8::Intrinsic>(Smi::cast(properties.get(i++))->value()); 301 static_cast<uint32_t>(Smi::cast(info->serial_number())->value()); 364 static_cast<uint32_t>(Smi::cast(data->serial_number())->value()); 501 auto value = handle(Smi::FromInt(intrinsic), isolate); 576 Smi::cast(instance_template->internal_field_count())->value();
|
accessors.cc | 231 Object* result = Smi::FromInt(String::cast(value)->length()); 255 Object* res = Smi::FromInt( 282 Object* id = Smi::FromInt(Script::cast(JSValue::cast(object)->value())->id()); 356 Smi::FromInt(Script::cast(JSValue::cast(object)->value())->line_offset()); 383 Smi::FromInt(Script::cast(JSValue::cast(object)->value())->type()); 408 Object* res = Smi::FromInt( 611 result = Handle<Object>(Smi::FromInt(script->GetEvalPosition()), isolate); 744 result = handle(Smi::FromInt(0), isolate); [all...] |
objects.cc | 233 if (IsSmi()) return Smi::cast(this)->value() != 0; [all...] |
/external/v8/test/cctest/heap/ |
test-heap.cc | 88 Handle<Object> handle(Smi::FromInt(value), isolate); 166 value = factory->NewNumberFromInt(Smi::kMinValue); 169 CHECK_EQ(Smi::kMinValue, Handle<Smi>::cast(value)->value()); 171 value = factory->NewNumberFromInt(Smi::kMaxValue); 174 CHECK_EQ(Smi::kMaxValue, Handle<Smi>::cast(value)->value()); 178 value = factory->NewNumberFromInt(Smi::kMinValue - 1); 181 CHECK_EQ(static_cast<double>(Smi::kMinValue - 1), value->Number()); 184 value = factory->NewNumberFromUint(static_cast<uint32_t>(Smi::kMaxValue) + 1) [all...] |
/external/v8/src/ic/ppc/ |
ic-ppc.cc | 70 __ LoadSmiLiteral(scratch2, Smi::FromInt(PropertyDetails::TypeField::kMask)); 118 __ LoadSmiLiteral(scratch2, Smi::FromInt(kTypeAndReadOnlyMask)); 141 // Check that the object isn't a smi. 172 // key - holds the smi key on entry. 230 // The key is a smi. 246 // The key is not a smi. 364 // Check that the key is a smi. 367 // Now the key is known to be a smi. This place is also jumped to from below 368 // where a numeric string is converted to a smi. 426 __ LoadSmiLiteral(slot, Smi::FromInt(slot_index)) [all...] |
/external/v8/src/ic/s390/ |
ic-s390.cc | 67 __ LoadSmiLiteral(scratch2, Smi::FromInt(PropertyDetails::TypeField::kMask)); 114 __ LoadSmiLiteral(scratch2, Smi::FromInt(kTypeAndReadOnlyMask)); 136 // Check that the object isn't a smi. 167 // key - holds the smi key on entry. 225 // The key is a smi. 240 // The key is not a smi. 354 // Check that the key is a smi. 357 // Now the key is known to be a smi. This place is also jumped to from below 358 // where a numeric string is converted to a smi. 413 __ LoadSmiLiteral(slot, Smi::FromInt(slot_index)) [all...] |
/external/v8/src/runtime/ |
runtime-literals.cc | 89 value = handle(Smi::FromInt(0), isolate); 127 static_cast<ElementsKind>(Smi::cast(elements->get(0))->value()); 180 object->set_length(Smi::FromInt(copied_elements_values->length()));
|
/external/v8/src/mips64/ |
code-stubs-mips64.cc | 343 // Rhs is a Smi. 344 // Check whether the non-smi is a heap number. 347 // If lhs was not a number and rhs was a Smi then strict equality cannot 352 // Smi compared non-strictly with a non-Smi non-heap-number. Call 356 // Rhs is a smi, lhs is a number. 357 // Convert smi rhs to double. 367 // Lhs is a Smi. Check whether the non-smi is a heap number. 370 // If lhs was not a number and rhs was a Smi then strict equality canno [all...] |
/external/v8/src/ic/ |
ic.cc | 105 // if marker is smi and marker.value == INTERNAL and [all...] |
/external/v8/src/interpreter/ |
bytecode-generator.cc | 153 builder()->LoadLiteral(Smi::FromInt(token)); 168 builder()->LoadLiteral(Smi::FromInt(-1)); 179 builder()->LoadLiteral(Smi::FromInt(entry.token)); 639 ->LoadLiteral(Smi::FromInt(static_cast<int>(i))) 671 ->LoadLiteral(Smi::FromInt(JSGeneratorObject::kGeneratorExecuting)) 701 .LoadLiteral(Smi::FromInt(JSGeneratorObject::kGeneratorExecuting)) 847 builder()->LoadLiteral(Smi::FromInt(encoded_flags)); [all...] |
/external/v8/src/heap/ |
heap.cc | 177 set_allocation_sites_list(Smi::FromInt(0)); 178 set_encountered_weak_collections(Smi::FromInt(0)); 179 set_encountered_weak_cells(Smi::FromInt(0)); 180 set_encountered_transition_arrays(Smi::FromInt(0)); 765 int offset = Smi::cast(elements->get(j + 3))->value(); 767 elements->set(j + 2, Smi::FromInt(pos)); 772 set_weak_stack_trace_list(Smi::FromInt(0)); [all...] |
/external/v8/src/mips/ |
code-stubs-mips.cc | 346 // Rhs is a Smi. 347 // Check whether the non-smi is a heap number. 350 // If lhs was not a number and rhs was a Smi then strict equality cannot 355 // Smi compared non-strictly with a non-Smi non-heap-number. Call 360 // Rhs is a smi, lhs is a number. 361 // Convert smi rhs to double. 371 // Lhs is a Smi. Check whether the non-smi is a heap number. 374 // If lhs was not a number and rhs was a Smi then strict equality canno [all...] |
/external/v8/src/x64/ |
macro-assembler-x64.cc | 275 // Skip barrier if writing a smi. 319 // Skip barrier if writing a smi. 324 // Array access: calculate the destination address. Index is not a smi. 445 // Skip barrier if writing a smi. 641 Move(kScratchRegister, Smi::FromInt(static_cast<int>(reason)), 1134 // Smi tagging, untagging and tag detection. 1142 void MacroAssembler::SafeMove(Register dst, Smi* src) { 1146 // JIT cookie can be converted to Smi 2474 intptr_t smi = reinterpret_cast<intptr_t>(source); local [all...] |
/external/v8/src/compiler/ |
js-graph.h | 120 DCHECK(Smi::IsValid(immediate));
|
js-inlining-heuristic.cc | 93 calls = Handle<Smi>::cast(feedback_extra)->value();
|