/external/v8/src/builtins/ |
D | builtins-internal-gen.cc | 87 Branch(IntPtrLessThan(length, IntPtrConstant(max_elements)), &if_newspace, in TF_BUILTIN() 95 Branch(IntPtrLessThanOrEqual(length, IntPtrConstant(0)), &if_empty, in TF_BUILTIN() 113 TVARIABLE(IntPtrT, var_index, IntPtrConstant(0)); in TF_BUILTIN() 128 var_index = IntPtrAdd(index, IntPtrConstant(1)); in TF_BUILTIN() 134 TNode<IntPtrT> offset = IntPtrAdd(length, IntPtrConstant(1)); in TF_BUILTIN() 156 var_index = IntPtrAdd(index, IntPtrConstant(1)); in TF_BUILTIN() 225 Node* page = WordAnd(object, IntPtrConstant(~kPageAlignmentMask)); in IsPageFlagSet() 227 IntPtrConstant(MemoryChunk::kFlagsOffset)); in IsPageFlagSet() 228 return WordNotEqual(WordAnd(flags, IntPtrConstant(mask)), in IsPageFlagSet() 229 IntPtrConstant(0)); in IsPageFlagSet() [all …]
|
D | growable-fixed-array-gen.cc | 32 var_length_ = IntPtrAdd(length, IntPtrConstant(1)); in Push() 71 IntPtrGreaterThanOrEqual(current_capacity, IntPtrConstant(0))); in NewCapacity() 78 IntPtrConstant(16)); in NewCapacity() 85 CSA_ASSERT(this, IntPtrGreaterThanOrEqual(element_count, IntPtrConstant(0))); in ResizeFixedArray() 86 CSA_ASSERT(this, IntPtrGreaterThanOrEqual(new_capacity, IntPtrConstant(0))); in ResizeFixedArray()
|
D | builtins-async-gen.h | 43 init_closure_context, IntPtrConstant(on_resolve_context_index), in Await() 44 IntPtrConstant(on_reject_context_index), in Await() 55 init_closure_context, IntPtrConstant(on_resolve_context_index), in AwaitOptimized() 56 IntPtrConstant(on_reject_context_index), is_predicted_as_caught); in AwaitOptimized()
|
D | builtins-collections-gen.cc | 232 CSA_ASSERT(this, IntPtrGreaterThanOrEqual(length, IntPtrConstant(0))); in AddConstructorEntriesFromFastJSArray() 241 GotoIf(IntPtrEqual(length, IntPtrConstant(0)), &exit); in AddConstructorEntriesFromFastJSArray() 257 BuildFastLoop(IntPtrConstant(0), length, set_entry, 1, in AddConstructorEntriesFromFastJSArray() 266 CSA_ASSERT(this, IntPtrGreaterThan(length, IntPtrConstant(0))); in AddConstructorEntriesFromFastJSArray() 268 LoadAndNormalizeFixedDoubleArrayElement(elements, IntPtrConstant(0)); in AddConstructorEntriesFromFastJSArray() 278 BuildFastLoop(IntPtrConstant(0), length, set_entry, 1, in AddConstructorEntriesFromFastJSArray() 457 [=] { return IntPtrConstant(0); }); in EstimatedInitialSize() 549 IntPtrConstant(0)); in LoadKeyValue() 557 IntPtrConstant(0)); in LoadKeyValue() 559 IntPtrConstant(1)); in LoadKeyValue() [all …]
|
D | builtins-async-gen.cc | 62 IntPtrConstant(JSPromise::kSizeWithEmbedderFields / in Await() 70 IntPtrConstant(JSPromise::kSizeWithEmbedderFields)); in Await() 80 IntPtrConstant(JSPromise::kSizeWithEmbedderFields)); in Await() 189 IntPtrConstant(JSPromise::kSizeWithEmbedderFields / in AwaitOptimized() 197 IntPtrConstant(JSPromise::kSizeWithEmbedderFields)); in AwaitOptimized() 273 IntPtrConstant(JSFunction::kSizeWithoutPrototype / in InitializeNativeClosure()
|
D | builtins-string-gen.cc | 34 IntPtrConstant(SeqOneByteString::kHeaderSize - kHeapObjectTag), in DirectStringData() 259 TVARIABLE(IntPtrT, var_offset, IntPtrConstant(0)); in StringEqual_Loop() 282 var_offset = IntPtrAdd(var_offset.value(), IntPtrConstant(1)); in StringEqual_Loop() 433 IntPtrConstant(SeqOneByteString::kHeaderSize - kHeapObjectTag); in GenerateStringRelationalComparison() 462 var_offset = IntPtrAdd(var_offset.value(), IntPtrConstant(1)); in GenerateStringRelationalComparison() 670 var_max_index = IntPtrConstant(0); in TF_BUILTIN() 692 var_max_index = IntPtrAdd(var_max_index.value(), IntPtrConstant(1)); in TF_BUILTIN() 705 TNode<IntPtrT> zero = IntPtrConstant(0); in TF_BUILTIN() 717 var_max_index = IntPtrAdd(var_max_index.value(), IntPtrConstant(1)); in TF_BUILTIN() 735 var_max_index = IntPtrAdd(var_max_index.value(), IntPtrConstant(1)); in TF_BUILTIN() [all …]
|
D | growable-fixed-array-gen.h | 25 var_capacity_ = IntPtrConstant(0); in GrowableFixedArray() 26 var_length_ = IntPtrConstant(0); in GrowableFixedArray()
|
D | builtins-wasm-gen.cc | 28 IntPtrConstant(WasmInstanceObject::kRootsArrayAddressOffset - in LoadBuiltinFromFrame() 32 IntPtrConstant(Heap::roots_to_builtins_offset() + id * kPointerSize))); in LoadBuiltinFromFrame() 44 IntPtrConstant(WasmInstanceObject::kCEntryStubOffset - in LoadCEntryFromInstance()
|
D | builtins-constructor-gen.cc | 97 IntPtrConstant(Context::FIRST_FUNCTION_MAP_INDEX)); in TF_BUILTIN() 100 IntPtrConstant(Context::LAST_FUNCTION_MAP_INDEX))); in TF_BUILTIN() 231 Node* min_context_slots = IntPtrConstant(Context::MIN_CONTEXT_SLOTS); in EmitFastNewFunctionContext() 502 IntPtrAdd(instance_size, IntPtrConstant(AllocationMemento::kSize)); in EmitCreateShallowObjectLiteral() 526 IntPtrConstant(JSObject::kHeaderSize)); in EmitCreateShallowObjectLiteral() 545 offset.Bind(IntPtrAdd(offset.value(), IntPtrConstant(kPointerSize))); in EmitCreateShallowObjectLiteral() 659 Node* value_index = IntPtrConstant(kValueArg); in TF_BUILTIN() 694 GotoIf(WordEqual(argc, IntPtrConstant(0)), &if_nloaded); in TF_BUILTIN() 752 GotoIf(WordEqual(argc, IntPtrConstant(0)), &if_sloaded); in TF_BUILTIN()
|
D | builtins-object-gen.cc | 229 IntPtrConstant(0), SmiConstant(0)); in GetOwnValuesOrEntries() 281 object_enum_length, IntPtrConstant(kInvalidEnumCacheSentinel)); in FastGetOwnValuesOrEntries() 295 GotoIf(WordEqual(object_enum_length, IntPtrConstant(0)), if_no_properties); in FastGetOwnValuesOrEntries() 306 IntPtrConstant(0), object_enum_length, in FastGetOwnValuesOrEntries() 309 TVARIABLE(IntPtrT, var_result_index, IntPtrConstant(0)); in FastGetOwnValuesOrEntries() 310 TVARIABLE(IntPtrT, var_descriptor_number, IntPtrConstant(0)); in FastGetOwnValuesOrEntries() 363 IntPtrConstant(2)); in FastGetOwnValuesOrEntries() 394 GotoIf(IntPtrEqual(size, IntPtrConstant(0)), if_empty); in FinalizeValuesOrEntriesJSArray() 449 GotoIf(IntPtrLessThan(var_index.value(), IntPtrConstant(0)), in TF_BUILTIN() 500 GotoIf(UintPtrLessThanOrEqual(argc, IntPtrConstant(1)), &done); in TF_BUILTIN() [all …]
|
D | builtins-typed-array-gen.cc | 219 IntPtrConstant(FixedTypedArrayBase::kHeaderSize + kObjectAlignmentMask); in TF_BUILTIN() 221 var_total_size = WordAnd(size, IntPtrConstant(~kObjectAlignmentMask)); in TF_BUILTIN() 228 IntPtrConstant(FixedTypedArrayBase::kHeaderSize); in TF_BUILTIN() 254 IntPtrConstant(fta_base_data_offset), in TF_BUILTIN() 262 IntPtrConstant(fta_base_data_offset)); in TF_BUILTIN() 267 backing_store, IntPtrConstant(0), word_byte_length); in TF_BUILTIN() 558 IntPtrConstant(FixedTypedArrayBase::kMaxByteLength); in ByteLengthIsValid() 618 IntPtrConstant(FixedTypedArrayBase::kMaxByteLength))); in ConstructByArrayLike() 843 element_size = IntPtrConstant(size); in GetTypedArrayElementSize() 857 context_slot = IntPtrConstant(typed_array_function_index); in GetDefaultConstructor() [all …]
|
D | builtins-regexp-gen.cc | 30 return IntPtrConstant(0); in IntPtrZero() 53 IntPtrAdd(elements_size, IntPtrConstant(JSRegExpResult::kSize)); in AllocateRegExpResult() 191 IntPtrConstant(RegExpMatchInfo::kFirstCaptureIndex), num_indices); in ConstructNewResultFromMatchInfo() 194 IntPtrConstant(RegExpMatchInfo::kFirstCaptureIndex + 2)); in ConstructNewResultFromMatchInfo() 195 TVARIABLE(IntPtrT, var_to_cursor, IntPtrConstant(1)); in ConstructNewResultFromMatchInfo() 211 IntPtrAdd(from_cursor, IntPtrConstant(1)); in ConstructNewResultFromMatchInfo() 220 var_from_cursor = IntPtrAdd(from_cursor, IntPtrConstant(2)); in ConstructNewResultFromMatchInfo() 221 var_to_cursor = IntPtrAdd(to_cursor, IntPtrConstant(1)); in ConstructNewResultFromMatchInfo() 280 TNode<IntPtrT> i_plus_1 = IntPtrAdd(i, IntPtrConstant(1)); in ConstructNewResultFromMatchInfo() 281 TNode<IntPtrT> i_plus_2 = IntPtrAdd(i_plus_1, IntPtrConstant(1)); in ConstructNewResultFromMatchInfo() [all …]
|
D | builtins-array-gen.cc | 394 BitcastTaggedToWord(array), IntPtrConstant(fa_base_data_offset)); in FillFixedArrayWithSmiZero() 402 backing_store, IntPtrConstant(0), byte_length); in FillFixedArrayWithSmiZero() 411 PopAndReturn(IntPtrAdd(argc_, IntPtrConstant(1)), value); in ReturnFromBuiltin() 960 GotoIf(IntPtrEqual(length, IntPtrConstant(0)), &return_undefined); in TF_BUILTIN() 971 Node* new_length = IntPtrSub(length, IntPtrConstant(1)); in TF_BUILTIN() 978 IntPtrConstant(JSObject::kMinAddedElementsCapacity)), in TF_BUILTIN() 1007 IntPtrAdd(offset, IntPtrConstant(kPointerSize)), in TF_BUILTIN() 1063 arg_index = IntPtrConstant(0); in TF_BUILTIN() 1244 index_out.Bind(IntPtrConstant(0)); in HandleFastSlice() 1273 index_out.Bind(IntPtrAdd(index_out.value(), IntPtrConstant(1))); in HandleFastSlice() [all …]
|
D | builtins-function-gen.cc | 129 index.Bind(IntPtrConstant(0)); in TF_BUILTIN() 136 IntPtrConstant(1)); in TF_BUILTIN()
|
D | builtins-async-generator-gen.cc | 643 IntPtrConstant( in TF_BUILTIN() 647 IntPtrConstant(Context::ASYNC_GENERATOR_RETURN_CLOSED_REJECT_SHARED_FUN)); in TF_BUILTIN() 652 IntPtrConstant(Context::ASYNC_GENERATOR_RETURN_RESOLVE_SHARED_FUN)); in TF_BUILTIN() 654 IntPtrConstant(Context::ASYNC_GENERATOR_AWAIT_REJECT_SHARED_FUN)); in TF_BUILTIN()
|
D | builtins-arguments-gen.cc | 86 empty ? IntPtrConstant(base_size) in AllocateArgumentsObject() 144 offset.Bind(IntPtrConstant(FixedArrayBase::kHeaderSize - kHeapObjectTag)); in ConstructParametersObjectFromArgs() 352 IntPtrConstant(kParameterMapHeaderSize - FixedArray::kHeaderSize)); in EmitFastNewSloppyArguments()
|
D | builtins-data-view-gen.h | 49 return IntPtrConstant(BigInt::SignBits::encode(sign) | in DataViewEncodeBigIntBits()
|
/external/v8/src/compiler/ |
D | memory-optimizer.cc | 198 Node* top = __ IntAdd(state->top(), __ IntPtrConstant(object_size)); in VisitAllocateRaw() 201 top_address, __ IntPtrConstant(0), top); in VisitAllocateRaw() 205 __ IntAdd(state->top(), __ IntPtrConstant(kHeapObjectTag))); in VisitAllocateRaw() 220 __ Load(MachineType::Pointer(), top_address, __ IntPtrConstant(0)); in VisitAllocateRaw() 222 __ Load(MachineType::Pointer(), limit_address, __ IntPtrConstant(0)); in VisitAllocateRaw() 247 vfalse = __ IntSub(vfalse, __ IntPtrConstant(kHeapObjectTag)); in VisitAllocateRaw() 254 top = __ IntAdd(done.PhiAt(0), __ IntPtrConstant(object_size)); in VisitAllocateRaw() 257 top_address, __ IntPtrConstant(0), top); in VisitAllocateRaw() 261 __ IntAdd(done.PhiAt(0), __ IntPtrConstant(kHeapObjectTag))); in VisitAllocateRaw() 274 __ Load(MachineType::Pointer(), top_address, __ IntPtrConstant(0)); in VisitAllocateRaw() [all …]
|
D | code-assembler.cc | 241 IntPtrConstant(kHeapObjectTagMask)), in GenerateCheckMaybeObjectIsObject() 242 IntPtrConstant(kWeakHeapObjectTag)), in GenerateCheckMaybeObjectIsObject() 259 TNode<IntPtrT> CodeAssembler::IntPtrConstant(intptr_t value) { in IntPtrConstant() function in v8::internal::compiler::CodeAssembler 260 return UncheckedCast<IntPtrT>(raw_assembler()->IntPtrConstant(value)); in IntPtrConstant() 279 BitcastWordToTaggedSigned(IntPtrConstant(bit_cast<intptr_t>(value)))); in SmiConstant() 503 return IntPtrConstant(left_constant + right_constant); in CODE_ASSEMBLER_BINARY_OP_LIST() 524 return IntPtrConstant(left_constant - right_constant); in IntPtrSub() 542 return IntPtrConstant(left_constant * right_constant); in IntPtrMul() 556 return (shift != 0) ? WordShl(value, IntPtrConstant(shift)) : value; in WordShl() 560 return (shift != 0) ? WordShr(value, IntPtrConstant(shift)) : value; in WordShr() [all …]
|
D | effect-control-linearizer.cc | 1208 __ WordAnd(bitfield, __ IntPtrConstant(BigInt::LengthBits::kMask)), in TruncateTaggedPointerToBit() 1209 __ IntPtrConstant(0)); in TruncateTaggedPointerToBit() 1226 __ Goto(&done, __ Word32Equal(__ WordEqual(value, __ IntPtrConstant(0)), in LowerTruncateTaggedToBit() 2562 __ IntPtrConstant(ArgumentsAdaptorFrameConstants::kLengthOffset)); in LowerArgumentsLength() 2587 __ IntPtrConstant(ArgumentsAdaptorFrameConstants::kLengthOffset)); in LowerArgumentsLength() 2601 __ IntPtrConstant(StandardFrameConstants::kCallerFPOffset)); in LowerArgumentsFrame() 2604 __ IntPtrConstant(CommonFrameConstants::kContextOrFrameTypeOffset)); in LowerArgumentsFrame() 2606 __ IntPtrConstant(StackFrame::TypeToMarker( in LowerArgumentsFrame() 2642 __ Goto(&loop, __ IntPtrConstant(0)); in LowerNewDoubleElements() 2653 __ WordShl(index, __ IntPtrConstant(kDoubleSizeLog2)), in LowerNewDoubleElements() [all …]
|
D | machine-graph.h | 45 Node* IntPtrConstant(intptr_t value); in NON_EXPORTED_BASE()
|
D | graph-assembler.cc | 21 Node* GraphAssembler::IntPtrConstant(intptr_t value) { in IntPtrConstant() function in v8::internal::compiler::GraphAssembler 22 return jsgraph()->IntPtrConstant(value); in IntPtrConstant()
|
/external/v8/src/interpreter/ |
D | interpreter-assembler.cc | 102 offset = IntPtrAdd(offset, IntPtrConstant(1)); in ReloadBytecodeOffset() 112 offset = IntPtrSub(BytecodeOffset(), IntPtrConstant(1)); in SaveBytecodeOffset() 232 return RegisterLocation(IntPtrConstant(reg.ToOperand())); in RegisterLocation() 246 IntPtrConstant(reg.ToOperand() << kPointerSizeLog2)); in LoadRegister() 293 Node* offset = RegisterFrameOffset(IntPtrConstant(index)); in RegisterLocationInRegisterList() 302 IntPtrConstant(reg.ToOperand() << kPointerSizeLog2), value); in StoreRegister() 349 return IntPtrAdd(reg_index, IntPtrConstant(-1)); in NextRegister() 353 return IntPtrConstant( in OperandOffset() 414 Node* offset = IntPtrConstant(relative_offset + msb_offset + i * kStep); in BytecodeOperandReadUnaligned() 440 IntPtrAdd(BytecodeOffset(), IntPtrConstant(operand_offset)), in BytecodeOperandUnsignedShort() [all …]
|
/external/v8/src/ |
D | code-stub-assembler.cc | 202 return SelectConstant<IntPtrT>(condition, IntPtrConstant(true_value), in SelectIntPtrConstant() 203 IntPtrConstant(false_value)); in SelectIntPtrConstant() 295 return IntPtrConstant(value); in IntPtrOrSmiConstant() 339 CSA_ASSERT(this, UintPtrLessThanOrEqual(value, IntPtrConstant(0x80000000u))); in IntPtrRoundUpToPowerOfTwo32() 340 value = Signed(IntPtrSub(value, IntPtrConstant(1))); in IntPtrRoundUpToPowerOfTwo32() 342 value = Signed(WordOr(value, WordShr(value, IntPtrConstant(i)))); in IntPtrRoundUpToPowerOfTwo32() 344 return Signed(IntPtrAdd(value, IntPtrConstant(1))); in IntPtrRoundUpToPowerOfTwo32() 359 WordEqual(value, IntPtrConstant(0)), in WordIsPowerOfTwo() 360 [=] { return IntPtrConstant(1); }, in WordIsPowerOfTwo() 361 [=] { return WordAnd(value, IntPtrSub(value, IntPtrConstant(1))); }), in WordIsPowerOfTwo() [all …]
|
/external/v8/src/ic/ |
D | accessor-assembler.cc | 60 IntPtrConstant(minimum_size / kPointerSize))); in LoadHandlerDataField() 80 IntPtrAdd(offset, IntPtrConstant(header_size)))); in TryMonomorphicCase() 88 IntPtrAdd(offset, IntPtrConstant(header_size + kPointerSize)))); in TryMonomorphicCase() 146 Node* start_index = IntPtrConstant(kUnrolledIterations * kEntrySize); in HandlePolymorphicCase() 259 GotoIf(WordEqual(handler_kind, IntPtrConstant(LoadHandler::kApiGetter)), in HandleLoadAccessor() 265 IntPtrConstant(LoadHandler::kApiGetterHolderIsPrototype))); in HandleLoadAccessor() 288 Node* offset = IntPtrMul(index, IntPtrConstant(kPointerSize)); in HandleLoadField() 334 IntPtrMul(descriptor, IntPtrConstant(DescriptorArray::kEntrySize)); in LoadDescriptorValueOrFieldType() 336 scaled_descriptor, IntPtrConstant(DescriptorArray::kFirstIndex + in LoadDescriptorValueOrFieldType() 355 GotoIf(WordEqual(handler_kind, IntPtrConstant(LoadHandler::kElement)), in HandleLoadICSmiHandlerCase() [all …]
|