Lines Matching refs:Representation

50 void HValue::AssumeRepresentation(Representation r) {  in AssumeRepresentation()
62 Representation new_rep = RepresentationFromInputs(); in InferRepresentation()
68 Representation::Integer32(), h_infer, "use requirements"); in InferRepresentation()
73 Representation HValue::RepresentationFromUses() { in RepresentationFromUses()
74 if (HasNoUses()) return Representation::None(); in RepresentationFromUses()
77 int use_count[Representation::kNumRepresentations] = { 0 }; in RepresentationFromUses()
81 Representation rep = use->observed_input_representation(it.index()); in RepresentationFromUses()
91 int tagged_count = use_count[Representation::kTagged]; in RepresentationFromUses()
92 int double_count = use_count[Representation::kDouble]; in RepresentationFromUses()
93 int int32_count = use_count[Representation::kInteger32]; in RepresentationFromUses()
94 int smi_count = use_count[Representation::kSmi]; in RepresentationFromUses()
96 if (tagged_count > 0) return Representation::Tagged(); in RepresentationFromUses()
97 if (double_count > 0) return Representation::Double(); in RepresentationFromUses()
98 if (int32_count > 0) return Representation::Integer32(); in RepresentationFromUses()
99 if (smi_count > 0) return Representation::Smi(); in RepresentationFromUses()
101 return Representation::None(); in RepresentationFromUses()
105 void HValue::UpdateRepresentation(Representation new_rep, in UpdateRepresentation()
108 Representation r = representation(); in UpdateRepresentation()
131 static int32_t ConvertAndSetOverflow(Representation r, in ConvertAndSetOverflow()
157 static int32_t AddWithoutOverflow(Representation r, in AddWithoutOverflow()
166 static int32_t SubWithoutOverflow(Representation r, in SubWithoutOverflow()
175 static int32_t MulWithoutOverflow(const Representation& r, in MulWithoutOverflow()
200 Representation r = Representation::Integer32(); in AddConstant()
261 bool Range::AddAndCheckOverflow(const Representation& r, Range* other) { in AddAndCheckOverflow()
273 bool Range::SubAndCheckOverflow(const Representation& r, Range* other) { in SubAndCheckOverflow()
301 bool Range::MulAndCheckOverflow(const Representation& r, Range* other) { in MulAndCheckOverflow()
1038 Representation index_rep = actual_index->representation(); in InferRepresentation()
1039 Representation length_rep = actual_length->representation(); in InferRepresentation()
1041 index_rep = Representation::Smi(); in InferRepresentation()
1044 length_rep = Representation::Smi(); in InferRepresentation()
1046 Representation r = index_rep.generalize(length_rep); in InferRepresentation()
1047 if (r.is_more_general_than(Representation::Integer32())) { in InferRepresentation()
1048 r = Representation::Integer32(); in InferRepresentation()
1055 Representation r = representation(); in InferRange()
1148 Representation HBranch::observed_input_representation(int index) { in observed_input_representation()
1155 return Representation::Tagged(); in observed_input_representation()
1159 return Representation::Double(); in observed_input_representation()
1161 return Representation::Tagged(); in observed_input_representation()
1164 return Representation::Double(); in observed_input_representation()
1167 return Representation::Smi(); in observed_input_representation()
1169 return Representation::None(); in observed_input_representation()
1234 Representation r = representation(); in InferRange()
1419 Representation HAdd::RepresentationFromInputs() { in RepresentationFromInputs()
1420 Representation left_rep = left()->representation(); in RepresentationFromInputs()
1422 return Representation::External(); in RepresentationFromInputs()
1428 Representation HAdd::RequiredInputRepresentation(int index) { in RequiredInputRepresentation()
1430 Representation left_rep = left()->representation(); in RequiredInputRepresentation()
1432 return Representation::Integer32(); in RequiredInputRepresentation()
1513 HValue* value, Representation representation) { in New()
1561 left, Representation::Integer32(), false, false)); in Canonicalize()
1569 Representation::Integer32(), right->block()->zone())); in Canonicalize()
1578 right, Representation::Integer32(), false, false)); in Canonicalize()
1792 Representation r = representation(); in InferRange()
1813 Representation r = representation(); in InferRange()
1834 Representation r = representation(); in InferRange()
1855 Representation r = representation(); in InferRange()
2116 new_index->AssumeRepresentation(Representation::Integer32()); in UseNewIndexInCurrentBlock()
2509 Representation rep = value->observed_input_representation(it.index()); in InitRealUses()
2532 other->non_phi_uses_[Representation::kSmi], in AddNonPhiUsesFrom()
2533 other->non_phi_uses_[Representation::kInteger32], in AddNonPhiUsesFrom()
2534 other->non_phi_uses_[Representation::kDouble], in AddNonPhiUsesFrom()
2535 other->non_phi_uses_[Representation::kTagged]); in AddNonPhiUsesFrom()
2538 for (int i = 0; i < Representation::kNumRepresentations; i++) { in AddNonPhiUsesFrom()
2545 for (int i = 0; i < Representation::kNumRepresentations; i++) { in AddIndirectUsesTo()
2661 HConstant::HConstant(Handle<Object> object, Representation r) in HConstant()
2702 Representation r, in HConstant()
2727 Representation r, in HConstant()
2753 Representation r, in HConstant()
2792 Initialize(Representation::External()); in HConstant()
2796 void HConstant::Initialize(Representation r) { in Initialize()
2799 r = Representation::Smi(); in Initialize()
2801 r = Representation::Integer32(); in Initialize()
2803 r = Representation::Double(); in Initialize()
2805 r = Representation::External(); in Initialize()
2815 r = Representation::Tagged(); in Initialize()
2880 HConstant* HConstant::CopyToRepresentation(Representation r, Zone* zone) const { in CopyToRepresentation()
2911 Representation::Integer32(), in CopyToTruncatedInt32()
2916 Representation::Integer32(), in CopyToTruncatedInt32()
2968 Representation new_rep = RepresentationFromInputs(); in InferRepresentation()
2973 Representation::Integer32(), h_infer, "use requirements"); in InferRepresentation()
2986 Representation HBinaryOperation::RepresentationFromInputs() { in RepresentationFromInputs()
2989 Representation rep = representation(); in RepresentationFromInputs()
2995 Representation left_rep = left()->representation(); in RepresentationFromInputs()
2996 Representation right_rep = right()->representation(); in RepresentationFromInputs()
3005 Representation current_rep) { in IgnoreObservedOutputRepresentation()
3013 Representation HBinaryOperation::RepresentationFromOutput() { in RepresentationFromOutput()
3014 Representation rep = representation(); in RepresentationFromOutput()
3022 return Representation::None(); in RepresentationFromOutput()
3026 void HBinaryOperation::AssumeRepresentation(Representation r) { in AssumeRepresentation()
3035 Representation new_rep = RepresentationFromInputs(); in InferRepresentation()
3350 Representation left_rep = left()->representation(); in InferRepresentation()
3351 Representation right_rep = right()->representation(); in InferRepresentation()
3352 Representation observed_left = observed_input_representation(0); in InferRepresentation()
3353 Representation observed_right = observed_input_representation(1); in InferRepresentation()
3355 Representation rep = Representation::None(); in InferRepresentation()
3362 rep = Representation::Double(); in InferRepresentation()
3666 Representation HUnaryMathOperation::RepresentationFromInputs() { in RepresentationFromInputs()
3671 return Representation::None(); in RepresentationFromInputs()
3673 Representation rep = representation(); in RepresentationFromInputs()
3676 Representation input_rep = value()->representation(); in RepresentationFromInputs()
3793 Representation::None(), in HandleSideEffectDominator()
3800 Representation::Integer32(), in HandleSideEffectDominator()
3804 current_size->ChangeRepresentation(Representation::Integer32()); in HandleSideEffectDominator()
3809 new_dominator_size_value->ChangeRepresentation(Representation::Integer32()); in HandleSideEffectDominator()
3842 Representation::None(), in HandleSideEffectDominator()
3937 Representation::Smi(), in UpdateFreeSpaceFiller()
3962 zone, context(), free_space_size, Representation::Smi(), store_map); in CreateFreeSpaceFiller()
3967 Representation::Smi()); in CreateFreeSpaceFiller()
4202 Representation HUnaryMathOperation::RepresentationFromUses() { in RepresentationFromUses()
4214 Representation rep_observed = use->observed_input_representation(use_index); in RepresentationFromUses()
4215 Representation rep_required = use->RequiredInputRepresentation(use_index); in RepresentationFromUses()
4235 return use_double ? Representation::Double() : Representation::Integer32(); in RepresentationFromUses()
4470 it.index(), Representation::Smi()); in SimplifyConstantInputs()
4478 Representation new_rep = RepresentationFromInputs(); in InferRepresentation()
4487 Representation HPhi::RepresentationFromInputs() { in RepresentationFromInputs()
4488 Representation r = Representation::None(); in RepresentationFromInputs()
4498 Representation HValue::RepresentationFromUseRequirements() { in RepresentationFromUseRequirements()
4499 Representation rep = Representation::None(); in RepresentationFromUseRequirements()
4505 Representation use_rep = in RepresentationFromUseRequirements()
4513 rep = Representation::Integer32(); in RepresentationFromUseRequirements()
4516 return Representation::None(); in RepresentationFromUseRequirements()
4525 Representation use_rep = in HasNonSmiUse()
4581 Representation representation) { in ForMapAndOffset()
4603 return HObjectAccess(kInobject, offset, Representation::Tagged()); in ForAllocationSiteOffset()
4605 return HObjectAccess(kInobject, offset, Representation::Tagged()); in ForAllocationSiteOffset()
4607 return HObjectAccess(kInobject, offset, Representation::Smi()); in ForAllocationSiteOffset()
4609 return HObjectAccess(kInobject, offset, Representation::Smi()); in ForAllocationSiteOffset()
4611 return HObjectAccess(kInobject, offset, Representation::Tagged()); in ForAllocationSiteOffset()
4613 return HObjectAccess(kInobject, offset, Representation::Tagged()); in ForAllocationSiteOffset()
4626 return HObjectAccess(portion, offset, Representation::Tagged()); in ForContextSlot()
4646 Representation representation) { in ForBackingStoreOffset()
4654 Representation representation, in ForField()
4671 return HObjectAccess(kInobject, Cell::kValueOffset, Representation::Tagged(), in ForCellPayload()