Home
last modified time | relevance | path

Searched refs:FromInt (Results 1 – 25 of 88) sorted by relevance

1234

/external/v8/src/
Ddateparser.cc81 output->set(YEAR, Smi::FromInt(year)); in Write()
82 output->set(MONTH, Smi::FromInt(month - 1)); // 0-based in Write()
83 output->set(DAY, Smi::FromInt(day)); in Write()
108 output->set(HOUR, Smi::FromInt(hour)); in Write()
109 output->set(MINUTE, Smi::FromInt(minute)); in Write()
110 output->set(SECOND, Smi::FromInt(second)); in Write()
111 output->set(MILLISECOND, Smi::FromInt(millisecond)); in Write()
121 output->set(UTC_OFFSET, Smi::FromInt(total_seconds)); in Write()
Daccessors.cc86 if (!found_it) return Smi::FromInt(0); in ArrayGetLength()
154 if (value->IsString()) return Smi::FromInt(String::cast(value)->length()); in StringGetLength()
157 return Smi::FromInt(0); in StringGetLength()
405 return Smi::FromInt(code->SourcePosition(code->instruction_start() + in ScriptGetEvalFromScriptPosition()
514 if (!found_it) return Smi::FromInt(0); in FunctionGetLength()
524 return Smi::FromInt(handle->shared()->length()); in FunctionGetLength()
526 return Smi::FromInt(function->shared()->length()); in FunctionGetLength()
Druntime.cc523 object->set_length(Smi::FromInt(copied_elements_values->length())); in CreateArrayLiteralBoilerplate()
813 weakmap->set_next(Smi::FromInt(0)); in RUNTIME_FUNCTION()
1777 array->set_length(Smi::FromInt(elements_count)); in RUNTIME_FUNCTION()
1815 Smi::FromInt(0), in RUNTIME_FUNCTION()
1846 Smi::FromInt(0), in RUNTIME_FUNCTION()
1861 return Smi::FromInt(0); in RUNTIME_FUNCTION()
2035 return Smi::FromInt(pos); in RUNTIME_FUNCTION()
2048 return Smi::FromInt(code->SourcePosition(pc)); in RUNTIME_FUNCTION()
2282 return Smi::FromInt(subject->Get(i)); in RUNTIME_FUNCTION()
2363 result_array->set_length(Smi::FromInt(length_)); in ToJSArray()
[all …]
Dliveobjectlist.cc600 Smi::FromInt(obj_id), in AddObjDetail()
612 Smi::FromInt(size), in AddObjDetail()
1159 Smi::FromInt(lol->id()), in Capture()
1165 Smi::FromInt(total_count), in Capture()
1171 Smi::FromInt(size), in Capture()
1313 Smi::FromInt(count), in DumpPrivate()
1322 Smi::FromInt(size), in DumpPrivate()
1331 Smi::FromInt(start), in DumpPrivate()
1449 Smi::FromInt(count), in SummarizePrivate()
1454 Smi::FromInt(size), in SummarizePrivate()
[all …]
Dfactory.cc371 heap->SetLastScriptId(Smi::FromInt(id)); in NewScript()
379 script->set_line_offset(Smi::FromInt(0)); in NewScript()
380 script->set_column_offset(Smi::FromInt(0)); in NewScript()
383 script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); in NewScript()
384 script->set_compilation_type(Smi::FromInt(Script::COMPILATION_TYPE_HOST)); in NewScript()
386 Smi::FromInt(Script::COMPILATION_STATE_INITIAL)); in NewScript()
390 script->set_eval_from_instructions_offset(Smi::FromInt(0)); in NewScript()
1373 store->set(JSRegExp::kTagIndex, Smi::FromInt(type)); in SetRegExpAtomData()
1375 store->set(JSRegExp::kFlagsIndex, Smi::FromInt(flags.value())); in SetRegExpAtomData()
1386 Smi* uninitialized = Smi::FromInt(JSRegExp::kUninitializedValue); in SetRegExpIrregexpData()
[all …]
Ddate.cc53 stamp_ = Smi::FromInt(stamp_->value() + 1); in ResetDateCache()
55 stamp_ = Smi::FromInt(0); in ResetDateCache()
57 ASSERT(stamp_ != Smi::FromInt(kInvalidStamp)); in ResetDateCache()
Dproperty.h79 Descriptor() : details_(Smi::FromInt(0)) {} in Descriptor()
140 : Descriptor(key, Smi::FromInt(field_index), attributes, FIELD, index) {} in Descriptor()
313 return Smi::FromInt(0); in GetLazyValue()
Dbuiltins.cc168 const Smi* kConstructMarker = Smi::FromInt(StackFrame::CONSTRUCT); in CalledAsConstructor()
199 array->set_length(Smi::FromInt(0)); in ArrayCodeGenericCommon()
293 array->set_length(Smi::FromInt(number_of_elements)); in ArrayCodeGenericCommon()
365 *zap++ = Smi::FromInt(0); in LeftTrimFixedArray()
374 former_start[to_trim + 1] = Smi::FromInt(len - to_trim); in LeftTrimFixedArray()
502 return Smi::FromInt(len); in BUILTIN()
538 array->set_length(Smi::FromInt(new_length)); in BUILTIN()
539 return Smi::FromInt(new_length); in BUILTIN()
562 array->set_length(Smi::FromInt(len - 1)); in BUILTIN()
612 array->set_length(Smi::FromInt(len - 1)); in BUILTIN()
[all …]
Dcompiler.cc369 script->set_compilation_type(Smi::FromInt(compilation_type)); in MakeFunctionInfo()
380 script->set_eval_from_instructions_offset(Smi::FromInt(offset)); in MakeFunctionInfo()
457 Smi::FromInt(Script::COMPILATION_STATE_COMPILED)); in MakeFunctionInfo()
511 script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); in Compile()
515 script->set_line_offset(Smi::FromInt(line_offset)); in Compile()
516 script->set_column_offset(Smi::FromInt(column_offset)); in Compile()
Dliveedit.cc360 Handle<Object>(Smi::FromInt(char_pos1))); in WriteChunk()
363 Handle<Object>(Smi::FromInt(char_pos1 + char_len1))); in WriteChunk()
366 Handle<Object>(Smi::FromInt(char_pos2 + char_len2))); in WriteChunk()
665 Handle<Smi>(Smi::FromInt(value))); in SetSmiValueField()
754 return array->length() == Smi::FromInt(kSize_) && in IsInstance()
872 Handle<Smi>(Smi::FromInt(context_list[i]->index()))); in SerializeFunctionScope()
1427 SetElementNonStrict(result, i, Handle<Smi>(Smi::FromInt(status))); in CheckActivation()
1529 Memory::Object_at(a) = Smi::FromInt(0); in DropFrames()
1638 Smi::FromInt(LiveEdit::FUNCTION_BLOCKED_ON_ACTIVE_STACK)) { in DropActivationsInActiveThread()
1640 Smi::FromInt(LiveEdit::FUNCTION_REPLACED_ON_ACTIVE_STACK)); in DropActivationsInActiveThread()
[all …]
Dobjects.cc740 return Smi::FromInt(hash & Smi::kMaxValue); in GetHash()
744 return Smi::FromInt(hash); in GetHash()
748 return Smi::FromInt(hash); in GetHash()
755 return Smi::FromInt(0); in GetHash()
3568 return Smi::FromInt(hash_value); in GenerateIdentityHash()
3601 return Smi::FromInt(0); in GetIdentityHash()
4899 if (HasContentArray()) *ContentHeader() = Smi::FromInt(0); in Start()
4921 *ContentHeader() = Smi::FromInt(index + 2); in Next()
4931 *ContentHeader() = Smi::FromInt(index); in Next()
4978 if (HasTransitions()) *Header() = Smi::FromInt(0); in Start()
[all …]
/external/v8/test/cctest/
Dtest-macro-assembler-x64.cc107 __ Move(rdx, Smi::FromInt(1)); in ExitCode()
132 Smi* smi_from_int = Smi::FromInt(static_cast<int32_t>(number)); in TEST()
144 __ Move(rcx, Smi::FromInt(0)); in TestMoveSmi()
145 __ Set(rdx, reinterpret_cast<intptr_t>(Smi::FromInt(0))); in TestMoveSmi()
169 TestMoveSmi(masm, &exit, 1, Smi::FromInt(0)); in TEST()
170 TestMoveSmi(masm, &exit, 2, Smi::FromInt(127)); in TEST()
171 TestMoveSmi(masm, &exit, 3, Smi::FromInt(128)); in TEST()
172 TestMoveSmi(masm, &exit, 4, Smi::FromInt(255)); in TEST()
173 TestMoveSmi(masm, &exit, 5, Smi::FromInt(256)); in TEST()
174 TestMoveSmi(masm, &exit, 6, Smi::FromInt(Smi::kMaxValue)); in TEST()
[all …]
Dtest-heap.cc55 *Execution::ToString(Handle<Object>(Smi::FromInt(value)), &exc); in CheckSmi()
184 CHECK(Smi::FromInt(42)->IsSmi()); in TEST()
191 CHECK(Smi::FromInt(Smi::kMinValue)->IsSmi()); in TEST()
192 CHECK(Smi::FromInt(Smi::kMaxValue)->IsSmi()); in TEST()
221 *prop_name, Smi::FromInt(23), NONE, kNonStrictMode)->ToObjectChecked(); in TEST()
223 *prop_namex, Smi::FromInt(24), NONE, kNonStrictMode)->ToObjectChecked(); in TEST()
225 CHECK_EQ(Smi::FromInt(23), obj->GetProperty(*prop_name)); in TEST()
226 CHECK_EQ(Smi::FromInt(24), obj->GetProperty(*prop_namex)); in TEST()
246 *prop_name, Smi::FromInt(23), NONE, kNonStrictMode)->ToObjectChecked(); in TEST()
258 CHECK_EQ(Smi::FromInt(23), js_obj->GetProperty(*prop_name)); in TEST()
[all …]
Dtest-compiler.cc159 SetGlobalProperty("x", Smi::FromInt(x)); in Add()
160 SetGlobalProperty("y", Smi::FromInt(y)); in Add()
180 SetGlobalProperty("x", Smi::FromInt(x)); in Abs()
201 SetGlobalProperty("n", Smi::FromInt(n)); in Sum()
Dtest-weakmaps.cc45 weakmap->set_next(Smi::FromInt(0)); in AllocateJSWeakMap()
55 Handle<Smi>(Smi::FromInt(value))); in PutIntoWeakMap()
Dtest-alloc.cc62 CHECK(!heap->AllocateArgumentsObject(Smi::FromInt(87), 10)->IsFailure()); in AllocateAfterFailures()
115 return Smi::FromInt(42); in AllocateAfterFailures()
/external/clang/lib/AST/
DASTDiagnostic.cpp454 llvm::APSInt FromInt, ToInt; member
514 void SetNode(llvm::APSInt FromInt, llvm::APSInt ToInt, in SetNode() argument
516 FlatTree[CurrentNode].FromInt = FromInt; in SetNode()
608 void GetNode(llvm::APSInt &FromInt, llvm::APSInt &ToInt, in GetNode() argument
610 FromInt = FlatTree[ReadNode].FromInt; in GetNode()
876 llvm::APSInt FromInt, ToInt; in DiffTemplate() local
897 FromInt = FromIter->getAsIntegral(); in DiffTemplate()
925 FromInt = FromIter.getDesugar().getAsIntegral(); in DiffTemplate()
929 FromInt = FromExpr->EvaluateKnownConstInt(Context); in DiffTemplate()
935 FromInt = FromExpr->EvaluateKnownConstInt(Context); in DiffTemplate()
[all …]
/external/v8/src/x64/
Dfull-codegen-x64.cc137 Smi::FromInt(Compiler::kCallsUntilPrimitiveOpt)); in Generate()
143 Smi::FromInt(-1)); in Generate()
250 __ Push(Smi::FromInt(num_parameters)); in Generate()
779 __ Push(Smi::FromInt(attr)); in EmitDeclaration()
789 __ Push(Smi::FromInt(0)); // Indicates no initial value. in EmitDeclaration()
802 __ Push(Smi::FromInt(DeclareGlobalsFlags())); in DeclareGlobals()
966 __ Push(Smi::FromInt(0)); // Initial index. in VisitForInStatement()
976 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker))); in VisitForInStatement()
980 Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker)); in VisitForInStatement()
982 __ Move(rbx, Smi::FromInt(1)); // Smi indicates slow check in VisitForInStatement()
[all …]
/external/v8/src/ia32/
Dfull-codegen-ia32.cc129 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget))); in Generate()
237 __ SafePush(Immediate(Smi::FromInt(num_parameters))); in Generate()
310 __ Set(eax, Immediate(Smi::FromInt(0))); in ClearAccumulator()
317 Immediate(Smi::FromInt(delta))); in EmitProfilingCounterDecrement()
333 Immediate(Smi::FromInt(reset_value))); in EmitProfilingCounterReset()
838 __ push(Immediate(Smi::FromInt(attr))); in EmitDeclaration()
848 __ push(Immediate(Smi::FromInt(0))); // Indicates no initial value. in EmitDeclaration()
861 __ push(Immediate(Smi::FromInt(DeclareGlobalsFlags()))); in DeclareGlobals()
1015 __ push(Immediate(Smi::FromInt(0))); // Initial index. in VisitForInStatement()
1025 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker))); in VisitForInStatement()
[all …]
Dcode-stubs-ia32.cc136 Immediate(Smi::FromInt(length))); in Generate()
187 Immediate(Smi::FromInt(length))); in Generate()
580 __ push(Immediate(Smi::FromInt(tos_.code()))); in GenerateTypeTransition()
581 __ push(Immediate(Smi::FromInt(types_.ToByte()))); in GenerateTypeTransition()
838 __ push(Immediate(Smi::FromInt(op_))); in GenerateTypeTransition()
839 __ push(Immediate(Smi::FromInt(mode_))); in GenerateTypeTransition()
840 __ push(Immediate(Smi::FromInt(operand_type_))); in GenerateTypeTransition()
1127 __ push(Immediate(Smi::FromInt(MinorKey()))); in GenerateTypeTransition()
1128 __ push(Immediate(Smi::FromInt(op_))); in GenerateTypeTransition()
1129 __ push(Immediate(Smi::FromInt(operands_type_))); in GenerateTypeTransition()
[all …]
/external/v8/src/arm/
Dfull-codegen-arm.cc141 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget))); in Generate()
241 __ mov(r1, Operand(Smi::FromInt(num_parameters))); in Generate()
319 __ mov(r0, Operand(Smi::FromInt(0))); in ClearAccumulator()
326 __ sub(r3, r3, Operand(Smi::FromInt(delta)), SetCC); in EmitProfilingCounterDecrement()
342 __ mov(r3, Operand(Smi::FromInt(reset_value))); in EmitProfilingCounterReset()
865 __ mov(r1, Operand(Smi::FromInt(attr))); in EmitDeclaration()
878 __ mov(r0, Operand(Smi::FromInt(0))); // Indicates no initial value. in EmitDeclaration()
892 __ mov(r0, Operand(Smi::FromInt(DeclareGlobalsFlags()))); in DeclareGlobals()
1057 __ mov(r0, Operand(Smi::FromInt(0))); in VisitForInStatement()
1069 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker))); in VisitForInStatement()
[all …]
Dcode-stubs-arm.cc160 __ mov(r2, Operand(Smi::FromInt(length))); in Generate()
166 __ mov(r1, Operand(Smi::FromInt(0))); in Generate()
210 __ mov(r2, Operand(Smi::FromInt(length))); in Generate()
1644 ASSERT_EQ(0, Smi::FromInt(0)); in Generate()
1767 __ mov(r0, Operand(Smi::FromInt(ncr))); in Generate()
1877 __ mov(r2, Operand(Smi::FromInt(tos_.code()))); in GenerateTypeTransition()
1878 __ mov(r1, Operand(Smi::FromInt(types_.ToByte()))); in GenerateTypeTransition()
1959 __ mov(r2, Operand(Smi::FromInt(op_))); in GenerateTypeTransition()
1960 __ mov(r1, Operand(Smi::FromInt(mode_))); in GenerateTypeTransition()
1961 __ mov(r0, Operand(Smi::FromInt(operand_type_))); in GenerateTypeTransition()
[all …]
/external/v8/src/mips/
Dfull-codegen-mips.cc149 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget))); in Generate()
248 __ li(a1, Operand(Smi::FromInt(num_parameters))); in Generate()
321 ASSERT(Smi::FromInt(0) == 0); in ClearAccumulator()
329 __ Subu(a3, a3, Operand(Smi::FromInt(delta))); in EmitProfilingCounterDecrement()
345 __ li(a3, Operand(Smi::FromInt(reset_value))); in EmitProfilingCounterReset()
874 __ li(a1, Operand(Smi::FromInt(attr))); in EmitDeclaration()
887 ASSERT(Smi::FromInt(0) == 0); in EmitDeclaration()
902 __ li(a0, Operand(Smi::FromInt(DeclareGlobalsFlags()))); in DeclareGlobals()
1065 __ li(a0, Operand(Smi::FromInt(0))); in VisitForInStatement()
1077 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker))); in VisitForInStatement()
[all …]
Dcode-stubs-mips.cc162 __ li(a2, Operand(Smi::FromInt(length))); in Generate()
168 __ li(a1, Operand(Smi::FromInt(0))); in Generate()
211 __ li(a2, Operand(Smi::FromInt(length))); in Generate()
1718 ASSERT_EQ(0, Smi::FromInt(0)); in Generate()
1854 __ li(a0, Operand(Smi::FromInt(ncr))); in Generate()
1965 __ li(a2, Operand(Smi::FromInt(tos_.code()))); in GenerateTypeTransition()
1966 __ li(a1, Operand(Smi::FromInt(types_.ToByte()))); in GenerateTypeTransition()
2041 __ li(a2, Operand(Smi::FromInt(op_))); in GenerateTypeTransition()
2042 __ li(a1, Operand(Smi::FromInt(mode_))); in GenerateTypeTransition()
2043 __ li(a0, Operand(Smi::FromInt(operand_type_))); in GenerateTypeTransition()
[all …]
/external/chromium/webkit/glue/
Dresource_type.h35 static Type FromInt(int32 type) { in FromInt() function

1234