/external/v8/test/cctest/ |
test-strings.cc | 458 Handle<Smi> fortytwo(Smi::FromInt(42)); 459 Handle<Smi> thirtyseven(Smi::FromInt(37)); 478 CHECK_EQ(Smi::cast(results[i]->ToSmi()->ToObjectChecked())->value(),
|
/external/chromium_org/v8/src/ |
full-codegen.cc | 397 data->SetPcAndState(i, Smi::FromInt(bailout_entries_[i].pc_and_state)); 470 ASSERT(Smi::IsValid(pc_and_state)); 497 // Inline smi case inside loops, but not division and modulo which 620 __ Push(Smi::FromInt(scope->interface()->Index())); 760 __ Push(Smi::FromInt(interface->Index())); 761 __ Push(Smi::FromInt(0)); 947 context()->Plug(handle(Smi::FromInt(0), isolate())); [all...] |
deoptimizer.cc | 612 // For COMPILED_STUBs called from builtins, the function pointer is a SMI [all...] |
objects.cc | 114 if (IsSmi()) return Smi::cast(this)->value() != 0; 160 *value = Smi::cast(this)->value(); 176 int num = Smi::cast(this)->value(); 306 Object* smi = JSObject::cast(object)->GetInternalField(field); local 307 ASSERT(smi->IsSmi()); 308 current = reinterpret_cast<char*>(smi); [all...] |
heap.h | 56 V(Smi, store_buffer_top, StoreBufferTop) \ 79 V(Smi, stack_limit, StackLimit) \ 92 V(Smi, hash_seed, HashSeed) \ 178 V(Smi, last_script_id, LastScriptId) \ 180 V(Smi, real_stack_limit, RealStackLimit) \ 182 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 183 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ 184 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ 185 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) \ [all...] |
deoptimizer.h | 600 Smi* GetState() const { return state_; } 601 void SetState(Smi* state) { state_ = state; } 663 Smi* state_; 874 if (Smi::IsValid(value)) { 875 return Handle<Object>(Smi::FromInt(value), isolate); 883 if (value <= static_cast<uint32_t>(Smi::kMaxValue)) { 884 return Handle<Object>(Smi::FromInt(static_cast<int>(value)), isolate);
|
objects-printer.cc | 49 Smi::cast(this_as_object)->SmiPrint(out); 721 weekdays[weekday()->IsSmi() ? Smi::cast(weekday())->value() + 1 : 0], 722 year()->IsSmi() ? Smi::cast(year())->value() : -1, 723 month()->IsSmi() ? Smi::cast(month())->value() : -1, 724 day()->IsSmi() ? Smi::cast(day())->value() : -1, 725 hour()->IsSmi() ? Smi::cast(hour())->value() : -1, 726 min()->IsSmi() ? Smi::cast(min())->value() : -1, 727 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); [all...] |
frames.cc | 325 // the number of arguments is stored on stack as Smi. We need to check 326 // that it really an Smi. 445 // smi then the frame is a JavaScript frame -- and the marker is 460 return static_cast<StackFrame::Type>(Smi::cast(marker)->value()); 751 return Smi::cast(GetExpression(caller_fp(), 0))->value(); [all...] |
heap.cc | 184 array_buffers_list_ = Smi::FromInt(0); 185 allocation_sites_list_ = Smi::FromInt(0); 4600 Smi* smi = Smi::cast(allocation_site->transition_info()); local [all...] |
bootstrapper.h | 78 Script::cast(shared->script())->set_type(Smi::FromInt(type_));
|
transitions-inl.h | 81 get(kPrototypeTransitionsIndex) != Smi::FromInt(0);
|
/external/v8/src/x64/ |
macro-assembler-x64.cc | 297 // Skip barrier if writing a smi. 339 // Skip barrier if writing a smi. 344 // Array access: calculate the destination address. Index is not a smi. 399 // Skip barrier if writing a smi. 491 // We want to pass the msg string like a smi to avoid GC 494 // a proper v8 smi, but also pass the alignment difference 495 // from the real pointer as a smi. 498 // Note: p0 might not be a valid Smi _value_, but it has a valid Smi tag. 510 reinterpret_cast<intptr_t>(Smi::FromInt(static_cast<int>(p1 - p0))) [all...] |
/external/v8/src/ia32/ |
code-stubs-ia32.cc | 136 Immediate(Smi::FromInt(length))); 187 Immediate(Smi::FromInt(length))); 189 // If this block context is nested in the global context we get a smi 196 const char* message = "Expected 0 as a Smi sentinel"; 441 if (types_.Contains(SMI)) { 452 // If we need a map later and have a Smi -> patch. 569 // same register as the result, because we never see Smi-zero here. 580 __ push(Immediate(Smi::FromInt(tos_.code()))); 581 __ push(Immediate(Smi::FromInt(types_.ToByte()))); 600 // be either a smi or a heap number object (fp value). Requirements [all...] |
/external/chromium_org/v8/test/mjsunit/ |
constant-folding.js | 212 // Answer is non-Smi so the subtraction is not folded in the code 219 // Answer is non-smi and lhs of << is a temporary heap number that we can 224 // Answer is non-smi and lhs of << is a temporary heap number that we think 225 // we can overwrite (but we can't because it's a Smi).
|
bitops-info.js | 33 return 46512102; // It's a Smi
|
store-dictionary.js | 55 // Smi.
|
unary-minus-deopt.js | 31 // After deopting, the multiplication for unary minus stayed in Smi
|
/external/v8/src/ |
heap-inl.h | 231 if (Smi::IsValid(value)) return Smi::FromInt(value); 239 if ((int32_t)value >= 0 && Smi::IsValid((int32_t)value)) { 240 return Smi::FromInt((int32_t)value);
|
heap.h | 55 V(Smi, store_buffer_top, StoreBufferTop) \ 79 V(Smi, stack_limit, StackLimit) \ 91 V(Smi, hash_seed, HashSeed) \ 150 V(Smi, real_stack_limit, RealStackLimit) \ 152 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 153 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) [all...] |
elements.cc | 64 // fast element handler for smi-only arrays. The implementation is currently 704 ? Smi::cast(JSArray::cast(obj)->length())->value() [all...] |
/external/v8/test/mjsunit/ |
constant-folding.js | 212 // Answer is non-Smi so the subtraction is not folded in the code 219 // Answer is non-smi and lhs of << is a temporary heap number that we can 224 // Answer is non-smi and lhs of << is a temporary heap number that we think 225 // we can overwrite (but we can't because it's a Smi).
|
/external/chromium_org/v8/src/arm/ |
lithium-gap-resolver-arm.cc | 251 ? Representation::Smi() : Representation::Integer32(); 265 ? Representation::Smi() : Representation::Integer32();
|
/external/chromium_org/v8/src/mips/ |
lithium-gap-resolver-mips.cc | 255 ? Representation::Smi() : Representation::Integer32(); 269 ? Representation::Smi() : Representation::Integer32();
|
/external/chromium_org/v8/test/mjsunit/regress/ |
consolidated-holey-load.js | 34 var a = [1, 2, , 4]; // Holey Smi elements.
|
regress-2537.js | 38 // Fails due to Smi-tagging without overflow check.
|