/external/v8/src/full-codegen/ia32/ |
full-codegen-ia32.cc | 96 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 336 __ Move(eax, Immediate(Smi::FromInt(0))); 343 Immediate(Smi::FromInt(delta))); 351 Immediate(Smi::FromInt(reset_value))); 507 if (Smi::cast(*lit)->value() == 0) { 791 // We know that we have written a function, which is not a smi. 818 __ Push(Smi::FromInt(DeclareGlobalsFlags())); [all...] |
/external/v8/src/full-codegen/x87/ |
full-codegen-x87.cc | 96 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 333 __ Move(eax, Immediate(Smi::FromInt(0))); 340 Immediate(Smi::FromInt(delta))); 348 Immediate(Smi::FromInt(reset_value))); 504 if (Smi::cast(*lit)->value() == 0) { 787 // We know that we have written a function, which is not a smi. 810 __ Push(Smi::FromInt(DeclareGlobalsFlags())); [all...] |
/external/v8/src/runtime/ |
runtime-object.cc | 85 // JSObject without a name key. If the key is a Smi, check for a 94 if (Smi::cast(*key_obj)->value() >= js_object->elements()->length()) { 106 // Fast case for string indexing using [] with a smi index. 108 int index = Handle<Smi>::cast(key_obj)->value(); 549 return Smi::FromInt(0); 557 return Smi::FromInt(result); 604 CONVERT_ARG_HANDLE_CHECKED(Smi, index, 1); 623 if (!object->IsJSObject()) return Smi::FromInt(0); 625 if (!js_object->map()->is_deprecated()) return Smi::FromInt(0); 630 if (!JSObject::TryMigrateInstance(js_object)) return Smi::FromInt(0) [all...] |
runtime-regexp.cc | 700 if (*cached_answer != Smi::FromInt(0)) { 776 // length of a string, i.e. it is always a Smi. We check anyway for security. 814 array->set_length(Smi::FromInt(size)); 860 last_match[i] = Smi::cast(last_match_cache->get(i))->value(); [all...] |
/external/v8/src/ |
conversions-inl.h | 102 return !IsMinusZero(value) && value >= Smi::kMinValue && 103 value <= Smi::kMaxValue && value == FastI2D(FastD2I(value)); 120 if (number->IsSmi()) return Smi::cast(number)->value(); 126 if (number->IsSmi()) return Smi::cast(number)->value(); 131 if (number->IsSmi()) return Smi::cast(number)->value(); 138 int value = Smi::cast(number)->value(); 139 DCHECK(static_cast<unsigned>(Smi::kMaxValue) <=
|
objects-debug.cc | 22 Smi::cast(this)->SmiVerify(); 39 void Smi::SmiVerify() { 470 int month = Smi::cast(this->month())->value(); 474 int day = Smi::cast(this->day())->value(); 478 int hour = Smi::cast(this->hour())->value(); 482 int min = Smi::cast(this->min())->value(); 486 int sec = Smi::cast(this->sec())->value(); 490 int weekday = Smi::cast(this->weekday())->value(); 494 CHECK(Smi::cast(cache_stamp())->value() <= 495 Smi::cast(isolate->date_cache()->stamp())->value()) [all...] |
objects-printer.cc | 28 Smi::cast(this)->SmiPrint(os); 792 weekdays[weekday()->IsSmi() ? Smi::cast(weekday())->value() + 1 : 0], 793 year()->IsSmi() ? Smi::cast(year())->value() : -1, 794 month()->IsSmi() ? Smi::cast(month())->value() : -1, 795 day()->IsSmi() ? Smi::cast(day())->value() : -1, 796 hour()->IsSmi() ? Smi::cast(hour())->value() : -1, 797 min()->IsSmi() ? Smi::cast(min())->value() : -1, 798 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); [all...] |
layout-descriptor.h | 16 // values. It could either be a fixed typed array (slow form) or a Smi 41 // Returns true if the layout descriptor is in non-Smi form. 99 V8_INLINE static LayoutDescriptor* FromSmi(Smi* smi);
|
property-details.h | 64 class Smi; 115 static Representation Smi() { return Representation(kSmi); } 300 explicit inline PropertyDetails(Smi* smi); 301 inline Smi* AsSmi() const; 370 // All bits for both fast and slow objects must fit in a smi.
|
property.h | 35 Descriptor() : details_(Smi::FromInt(0)) {}
|
factory.cc | 98 result->set_validity_cell(Smi::FromInt(0)); 753 context->set_errors_thrown(Smi::FromInt(0)); [all...] |
frames-inl.h | 148 return frame_type == Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR); 155 return frame_type == Smi::FromInt(StackFrame::CONSTRUCT);
|
json-stringifier.cc | 228 int length = Smi::cast(stack_->length())->value(); 249 int length = Smi::cast(stack_->length())->value(); 269 int length = Smi::cast(stack_->length())->value(); 270 stack_->set_length(Smi::FromInt(length - 1)); 295 return SerializeSmi(Smi::cast(*object)); 362 if (value->IsSmi()) return SerializeSmi(Smi::cast(*value)); 375 JsonStringifier::Result JsonStringifier::SerializeSmi(Smi* object) { 419 SerializeSmi(Smi::cast(elements->get(i)));
|
transitions.h | 31 // [0] Smi(0) or fixed array of prototype transitions 114 return Smi::cast(raw)->value(); 267 return Smi::cast(get(kTransitionLengthIndex))->value();
|
/external/v8/test/cctest/ |
test-identity-map.cc | 74 Handle<Smi> smi(int value) { function in class:v8::internal::IdentityMapTester 75 return Handle<Smi>(Smi::FromInt(value), isolate()); 85 map.keys_[i] = Smi::FromInt(Smi::cast(map.keys_[i])->value() + shift); 121 CHECK_NULL(t.map.Find(t.smi(i))); 136 t.TestGetFind(t.smi(13), t.isolate(), t.smi(17), t.heap()); 152 t.map.Set(t.smi(i), reinterpret_cast<void*>(i + kShift)) [all...] |
test-inobject-slack-tracking.cc | 164 CHECK_EQ(Smi::FromInt(42), GetFieldValue(*obj, 0)); 226 CHECK_EQ(Smi::FromInt(42), GetFieldValue(*obj3, 0)); 312 CHECK_EQ(Smi::FromInt(42), GetFieldValue(*obj, 0)); 397 CHECK_EQ(Smi::FromInt(42), GetFieldValue(*obj, 0)); 400 CHECK_EQ(Smi::FromInt(142), GetFieldValue(*obj, 3)); 506 CHECK_EQ(Smi::FromInt(42), GetFieldValue(*b_obj, 0)); 509 CHECK_EQ(Smi::FromInt(142), GetFieldValue(*b_obj, 3)); 843 CHECK_EQ(Smi::FromInt(42), GetFieldValue(*obj, builtin_properties_count + 0)); [all...] |
/external/v8/src/full-codegen/x64/ |
full-codegen-x64.cc | 95 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 338 Smi::FromInt(-delta)); 345 __ Move(kScratchRegister, Smi::FromInt(reset_value)); 485 __ SafeMove(result_register(), Smi::cast(*lit)); 495 __ SafePush(Smi::cast(*lit)); 521 if (Smi::cast(*lit)->value() == 0) { 804 // We know that we have written a function, which is not a smi. 831 __ Push(Smi::FromInt(DeclareGlobalsFlags())); [all...] |
/external/v8/src/compiler/ |
code-generator.cc | 444 Smi::FromInt(static_cast<int>(inlined_function_count_))); 445 data->SetOptimizationId(Smi::FromInt(info->optimization_id())); 450 data->SetSharedFunctionInfo(Smi::FromInt(0)); 465 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id().ToInt())); 466 data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); 469 data->SetOsrAstId(Smi::FromInt(osr_ast_id.ToInt())); 470 data->SetOsrPcOffset(Smi::FromInt(-1)); 479 i, Smi::FromInt(deoptimization_states_[i]->translation_id())); 480 data->SetArgumentsStackHeight(i, Smi::FromInt(0)); 481 data->SetPc(i, Smi::FromInt(deoptimization_state->pc_offset())) [all...] |
/external/v8/test/cctest/compiler/ |
test-code-assembler.cc | 21 Smi::IsValid(constant_value)) { 22 return m.SmiConstant(Smi::FromInt(constant_value)); 46 CHECK_EQ(37, Handle<Smi>::cast(result.ToHandleChecked())->value()); 83 CHECK_EQ(0, Handle<Smi>::cast(result.ToHandleChecked())->value()); 96 CHECK_EQ(0, Handle<Smi>::cast(result.ToHandleChecked())->value()); 110 CHECK_EQ(16, Handle<Smi>::cast(result.ToHandleChecked())->value()); 124 CHECK_EQ(16, Handle<Smi>::cast(result.ToHandleChecked())->value()); 162 CHECK_EQ(Smi::FromInt(42), *result.ToHandleChecked()); 185 CHECK_EQ(Smi::FromInt(55), *result.ToHandleChecked()); 209 CHECK_EQ(Smi::FromInt(208), *result.ToHandleChecked()) [all...] |
test-run-stubs.cc | 68 CHECK_EQ(static_cast<int>(strlen(testString)), Smi::cast(*result)->value());
|
/external/v8/src/crankshaft/ |
hydrogen-types.h | 27 V(Smi, 0x1d) /* 0000 0000 0001 1101 */ \
|
/external/v8/src/snapshot/ |
serializer-common.cc | 66 if (cache->length() <= i) cache->Add(Smi::FromInt(0));
|
/external/v8/src/full-codegen/arm64/ |
full-codegen-arm64.cc | 107 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 350 __ Mov(x0, Smi::FromInt(0)); 357 __ Subs(x3, x3, Smi::FromInt(delta)); 365 __ Mov(x3, 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. 874 if (Smi::FromInt(DeclareGlobalsFlags())) { 876 __ Mov(flags, Smi::FromInt(DeclareGlobalsFlags())); [all...] |
/external/v8/src/ia32/ |
code-stubs-ia32.cc | 112 // be either a smi or a heap number object (fp value). Requirements: 117 // Test if operands are smi or number objects (fp). Requirements: 124 // Test if operands are numbers (smi or HeapNumber objects), and load 290 __ SmiUntag(edx); // Untag smi before converting to float. 292 __ SmiTag(edx); // Retag smi for heap number overwriting test. 295 __ SmiUntag(eax); // Untag smi before converting to float. 297 __ SmiTag(eax); // Retag smi for heap number overwriting test. 309 // Test if both operands are floats or smi -> scratch=k_is_float; 557 // exponent is a smi. We reset it with exponent value before bailing out. 698 __ cmp(ebx, Immediate(Smi::FromInt(JSRegExp::IRREGEXP))) [all...] |
/external/v8/src/interpreter/ |
bytecode-array-iterator.cc | 177 Smi* smi = Smi::cast(*GetConstantForIndexOperand(0)); local 178 return current_offset() + smi->value() + current_prefix_offset();
|