/external/v8/src/ |
field-type.cc | 16 return reinterpret_cast<FieldType*>(Smi::FromInt(0)); 21 return reinterpret_cast<FieldType*>(Smi::FromInt(1));
|
layout-descriptor-inl.h | 13 LayoutDescriptor* LayoutDescriptor::FromSmi(Smi* smi) { 14 return LayoutDescriptor::cast(smi); 20 // The whole bit vector fits into a smi. 21 return handle(LayoutDescriptor::FromSmi(Smi::FromInt(0)), isolate); 40 return LayoutDescriptor::FromSmi(Smi::FromInt(0)); 84 uint32_t value = static_cast<uint32_t>(Smi::cast(this)->value()); 90 return LayoutDescriptor::FromSmi(Smi::FromInt(static_cast<int>(value))); 111 uint32_t value = static_cast<uint32_t>(Smi::cast(this)->value()); 179 // a Smi, so no need to calculate length [all...] |
string-builder.h | 37 // Smi encoding of position and length. 38 int encoded_slice = Smi::cast(element)->value(); 42 // Position and length encoded in one smi. 49 pos = Smi::cast(obj)->value(); 75 // Smi encoding of position and length. 76 int smi_value = Smi::cast(elt)->value(); 80 // Position and length encoded in one smi. 86 // Get the position and check that it is a positive smi. 91 pos = Smi::cast(next_smi)->value(); 164 void Add(Smi* value) [all...] |
isolate-inl.h | 119 Smi::cast(species_cell->value())->value() == kArrayProtectorValid; 124 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid);
|
/external/v8/src/runtime/ |
runtime-strings.cc | 141 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); 145 return Smi::FromInt(position); 192 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); 202 return Smi::FromInt(start_index); 234 return Smi::FromInt(position); 245 if (str1.is_identical_to(str2)) return Smi::FromInt(0); // Equal. 251 if (str2_length == 0) return Smi::FromInt(0); // Equal. 252 return Smi::FromInt(-str2_length); 254 if (str2_length == 0) return Smi::FromInt(str1_length); 263 if (d != 0) return Smi::FromInt(d) [all...] |
runtime-array.cc | 26 CHECK(Smi::cast(length)->value() == 0); 31 return Smi::FromInt(0); 108 if (object->IsJSProxy()) return Smi::FromInt(-1); 130 from->set_length(Smi::FromInt(0)); 147 return Smi::FromInt(result); 154 return Smi::FromInt(length); 171 return Smi::FromInt(estimate); 257 int value = Handle<Smi>::cast(argument_one)->value(); 269 // Non-smi length argument produces a dictionary 350 // GrowArrayElements returns a sentinel Smi if the object was normalized [all...] |
runtime-generator.cc | 122 return Smi::FromInt(generator->resume_mode()); 130 return Smi::FromInt(generator->continuation()); 139 return Smi::FromInt(generator->source_position());
|
runtime.cc | 70 Handle<Smi>(Smi::FromInt(i), isolate), PropertyDetails::Empty()); 82 int function_index = Smi::cast(smi_index)->value();
|
runtime-debug.cc | 46 if (LiveEdit::SetAfterBreakTarget(isolate->debug())) return Smi::FromInt(0); 150 switch (Smi::cast(iterator->kind())->value()) { 253 int status_val = Handle<Smi>::cast(status_obj)->value(); 414 // args[0]: smi with property details. 419 return Smi::FromInt(static_cast<int>(details.type())); 424 // args[0]: smi with property details. 429 return Smi::FromInt(static_cast<int>(details.attributes())); 453 return Smi::FromInt(0); 464 return Smi::FromInt(n); 636 details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(argument_count)) [all...] |
runtime-typedarray.cc | 62 CHECK(Smi::FromInt(0) == array_buffer->byte_length()); 136 if (length > static_cast<unsigned>(Smi::kMaxValue)) { 146 holder->SetInternalField(i, Smi::FromInt(0)); 210 if ((length > static_cast<unsigned>(Smi::kMaxValue)) || 220 holder->SetInternalField(i, Smi::FromInt(0)); 246 holder->set_byte_offset(Smi::FromInt(0)); 322 return Smi::FromInt(TYPED_ARRAY_SET_NON_TYPED_ARRAY); 355 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_SAME_TYPE); 366 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_OVERLAPPING); 368 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_NONOVERLAPPING) [all...] |
runtime-forin.cc | 142 cache_type = handle(Smi::FromInt(1), isolate); 144 return MakeTriple(*cache_type, *cache_array, Smi::FromInt(cache_length)); 189 DCHECK_LT(index, Smi::kMaxValue); 190 return Smi::FromInt(index + 1);
|
runtime-test.cc | 201 return Smi::FromInt(4); // 4 == "never". 221 return Smi::FromInt(3); // 3 == "always". 224 return Smi::FromInt(6); // 6 == "maybe deopted". 227 return Smi::FromInt(7); // 7 == "TurboFan compiler". 229 return function->IsOptimized() ? Smi::FromInt(1) // 1 == "yes". 230 : Smi::FromInt(2); // 2 == "no". 247 return Smi::FromInt(function->shared()->opt_count()); 415 return Smi::FromInt(Natives::GetBuiltinsCount()); 510 value = handle(Smi::FromInt(message_obj->start_position()), isolate); 514 value = handle(Smi::FromInt(message_obj->end_position()), isolate) [all...] |
/external/v8/test/cctest/ |
test-dictionary.cc | 120 set(EntryToIndex(entry), Smi::FromInt(key)); 121 set(EntryToIndex(entry) + 1, Smi::FromInt(value)); 125 Handle<Object> key_obj(Smi::FromInt(key), GetIsolate()); 126 return Smi::cast(Lookup(key_obj))->value(); 147 t->Rehash(handle(Smi::FromInt(0), isolate)); 160 t->Rehash(handle(Smi::FromInt(0), isolate)); 239 Handle<Object> value = handle(Smi::FromInt(0), isolate);
|
test-weakmaps.cc | 90 Handle<Smi> smi(Smi::FromInt(23), isolate); 94 JSWeakCollection::Set(weakmap, object, smi, object_hash); 140 Handle<Smi> smi(Smi::FromInt(i), isolate); 142 JSWeakCollection::Set(weakmap, object, smi, object_hash); 230 Handle<Smi> smi(Smi::FromInt(i), isolate) [all...] |
test-weaksets.cc | 91 Handle<Smi> smi(Smi::FromInt(23), isolate); 93 JSWeakCollection::Set(weakset, key, smi, hash); 139 Handle<Smi> smi(Smi::FromInt(i), isolate); 141 JSWeakCollection::Set(weakset, object, smi, hash); 229 Handle<Smi> smi(Smi::FromInt(i), isolate) [all...] |
/external/v8/src/crankshaft/ |
lithium-codegen.cc | 316 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 317 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 323 data->SetSharedFunctionInfo(Smi::FromInt(0)); 325 data->SetWeakCellCache(Smi::FromInt(0)); 337 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id().ToInt())); 338 data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); 344 data->SetTranslationIndex(i, Smi::FromInt(env->translation_index())); 346 Smi::FromInt(env->arguments_stack_height())); 347 data->SetPc(i, Smi::FromInt(env->pc_offset()));
|
/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");
|
regress-crbug-350434.js | 16 var s = "4000111222"; // Outside Smi range.
|
/external/v8/test/unittests/interpreter/ |
bytecode-array-iterator-unittest.cc | 29 Smi* zero = Smi::FromInt(0); 30 Smi* smi_0 = Smi::FromInt(64); 31 Smi* smi_1 = Smi::FromInt(-65536); 120 CHECK_EQ(Smi::FromInt(iterator.GetImmediateOperand(0)), smi_0); 137 CHECK_EQ(Smi::FromInt(iterator.GetImmediateOperand(0)), smi_1);
|
constant-array-builder-unittest.cc | 34 builder.Insert(handle(Smi::FromInt(static_cast<int>(i)), isolate())); 38 CHECK_EQ(Handle<Smi>::cast(builder.At(i))->value(), i); 83 Smi* smi = Smi::FromInt(static_cast<int>(i)); local 84 CHECK(Handle<Smi>::cast(builder.At(i))->SameValue(smi)); 87 Smi* smi = Smi::FromInt(static_cast<int>(i - reserved)) local [all...] |
/external/v8/src/debug/ |
liveedit.h | 176 * - padding size: a Smi storing n -- current size of padding 177 * - padding: n words filled with kPaddingValue in form of Smi 187 // Stored on stack in form of Smi. 189 // A value that padding words are filled with (in form of Smi). Going 264 SetField(field_position, Handle<Smi>(Smi::FromInt(value), isolate())); 274 return Handle<Smi>::cast(res)->value(); 347 if (array->length() != Smi::FromInt(kSize_)) return false;
|
/external/v8/src/heap/ |
heap-inl.h | 697 set_instanceof_cache_function(Smi::FromInt(0)); 706 set_instanceof_cache_map(Smi::FromInt(0)); 707 set_instanceof_cache_function(Smi::FromInt(0)); 720 if (last_id == Smi::kMaxValue) { 725 set_last_script_id(Smi::FromInt(last_id)); 730 DCHECK(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0)); 731 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset)); 735 DCHECK(construct_stub_deopt_pc_offset() == Smi::FromInt(0)); 736 set_construct_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); 740 DCHECK(getter_stub_deopt_pc_offset() == Smi::FromInt(0)) [all...] |
/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.
|
/external/v8/test/cctest/compiler/ |
test-run-bytecode-graph-builder.cc | 637 {factory->NewNumberFromInt(Smi::kMaxValue), factory->undefined_value()}}, [all...] |
/external/v8/src/ast/ |
scopeinfo.cc | 120 scope_info->set(index++, Smi::FromInt(first_slot_index)); 155 scope_info->set(index++, Smi::FromInt(value)); 167 scope_info->set(index++, Smi::FromInt(value)); 174 scope_info->set(index++, Smi::FromInt(var_index)); 184 scope_info->set(index++, Smi::FromInt(var_index)); 239 scope_info->set(index++, Smi::FromInt(first_slot_index)); 249 scope_info->set(index++, Smi::FromInt(value)); 254 scope_info->set(index++, Smi::FromInt(receiver_index)); 406 int first_slot_index = Smi::cast(get(StackLocalFirstSlotIndex()))->value(); 421 int value = Smi::cast(get(info_index))->value() [all...] |