Home | History | Annotate | Download | only in src

Lines Matching refs:HConstant

651 HConstant* HGraph::GetConstant(SetOncePointer<HConstant>* pointer,
654 // Can't pass GetInvalidContext() to HConstant::New, because that will
656 HConstant* constant = HConstant::New(zone(), NULL, value);
665 HConstant* HGraph::ReinsertConstantIfNecessary(HConstant* constant) {
675 HConstant* HGraph::GetConstant0() {
680 HConstant* HGraph::GetConstant1() {
685 HConstant* HGraph::GetConstantMinus1() {
691 HConstant* HGraph::GetConstant##Name() { \
693 HConstant* constant = new(zone()) HConstant( \
720 bool HGraph::IsConstant##Name(HConstant* constant) { \
735 HConstant* HGraph::GetInvalidContext() {
740 bool HGraph::IsStandardConstant(HConstant* constant) {
911 HConstant* constant_false = builder()->graph()->GetConstantFalse();
1221 HValue* reference = Add<HConstant>(ExternalReference(counter));
1281 !HConstant::cast(string)->HasStringValue());
1292 HConstant::cast(function)->handle(isolate())->IsJSFunction()) {
1294 HConstant::cast(function)->handle(isolate()));
1325 HValue* max_gap = Add<HConstant>(static_cast<int32_t>(JSObject::kMaxGap));
1409 HInstruction* empty_fixed_array = Add<HConstant>(
1450 HValue* mask = Add<HConstant>(0x00FF | (bit_field_mask << 8));
1455 Add<HConstant>(JS_OBJECT_TYPE));
1457 Add<HConstant>(LAST_JS_OBJECT_TYPE + 1 - JS_OBJECT_TYPE));
1489 Add<HConstant>(LAST_UNIQUE_NAME_TYPE),
1506 Add<HConstant>(SYMBOL_TYPE),
1516 HValue* not_index_mask = Add<HConstant>(static_cast<int>(
1538 Add<HConstant>(static_cast<int>(kIsNotInternalizedMask)));
1580 HValue* min_global_type = Add<HConstant>(JS_GLOBAL_OBJECT_TYPE);
1581 HValue* max_global_type = Add<HConstant>(JS_BUILTINS_OBJECT_TYPE);
1620 object_map, Add<HConstant>(KeyedLookupCache::kMapHashShift));
1625 string_hash, Add<HConstant>(String::kHashShift));
1630 Add<HConstant>(mask));
1636 HValue* seed = Add<HConstant>(seed_value);
1640 HValue* shifted_hash = AddUncasted<HShl>(hash, Add<HConstant>(15));
1646 shifted_hash = AddUncasted<HShr>(hash, Add<HConstant>(12));
1650 shifted_hash = AddUncasted<HShl>(hash, Add<HConstant>(2));
1654 shifted_hash = AddUncasted<HShr>(hash, Add<HConstant>(4));
1658 hash = AddUncasted<HMul>(hash, Add<HConstant>(2057));
1662 shifted_hash = AddUncasted<HShr>(hash, Add<HConstant>(16));
1673 Add<HConstant>(NameDictionary::kCapacityIndex),
1698 HValue* base_index = AddUncasted<HMul>(entry, Add<HConstant>(entry_size));
1702 AddUncasted<HAdd>(base_index, Add<HConstant>(start_offset));
1736 Add<HConstant>(static_cast<int>(kIsNotInternalizedMask)));
1758 AddUncasted<HAdd>(base_index, Add<HConstant>(start_offset + 2));
1765 Add<HConstant>(details_mask));
1771 AddUncasted<HAdd>(base_index, Add<HConstant>(start_offset + 1));
1811 HConstant* max_length = Add<HConstant>(JSObject::kInitialMaxFastElementArray);
1821 Add<HConstant>(JSRegExpResult::kSize), HType::JSArray(),
1836 HConstant* empty_fixed_array =
1837 Add<HConstant>(isolate()->factory()->empty_fixed_array());
1860 HConstant* size_in_bytes_upper_bound = EstablishElementsAllocationSize(
1882 if (object->IsConstant() && HConstant::cast(object)->HasNumberValue()) {
1883 Handle<Object> number = HConstant::cast(object)->handle(isolate());
1885 return Add<HConstant>(result);
2031 size = AddUncasted<HAdd>(size, Add<HConstant>(AllocationMemento::kSize));
2055 HValue* max_length = Add<HConstant>(String::kMaxLength + 1);
2076 HAllocate* result = BuildAllocate(Add<HConstant>(ConsString::kSize),
2101 Add<HConstant>(static_cast<int32_t>(
2111 Add<HConstant>(static_cast<int32_t>(
2113 Add<HConstant>(static_cast<int32_t>(
2120 Add<HConstant>(isolate()->factory()->cons_one_byte_string_map()));
2127 Add<HConstant>(isolate()->factory()->cons_string_map()));
2133 Add<HConstant>(String::kEmptyHashField));
2171 unaligned_size, Add<HConstant>(static_cast<int32_t>(
2175 Token::BIT_AND, size, Add<HConstant>(static_cast<int32_t>(
2193 HConstant* c_left_length = HConstant::cast(left_length);
2200 HConstant* c_right_length = HConstant::cast(right_length);
2211 length, Add<HConstant>(ConsString::kMinLength), Token::GTE);
2235 Add<HConstant>(static_cast<int32_t>(kStringEncodingMask))),
2242 Add<HConstant>(static_cast<int32_t>(kStringRepresentationMask))),
2246 HConstant* string_map =
2247 Add<HConstant>(isolate()->factory()->string_map());
2248 HConstant* one_byte_string_map =
2249 Add<HConstant>(isolate()->factory()->one_byte_string_map());
2257 Add<HConstant>(static_cast<int32_t>(kStringEncodingMask))),
2290 Add<HConstant>(String::kEmptyHashField));
2518 HConstant::cast(length_argument)->HasSmiValue()) {
2519 int array_length = HConstant::cast(length_argument)->Integer32Value();
2530 HConstant* max_alloc_length =
2531 Add<HConstant>(JSObject::kInitialMaxFastElementArray);
2539 HConstant* initial_capacity_node = Add<HConstant>(initial_capacity);
2566 HConstant* elements_size_value = Add<HConstant>(elements_size);
2575 HConstant* header_size = Add<HConstant>(FixedArray::kHeaderSize);
2587 HConstant* size_in_bytes = Add<HConstant>(base_size);
2593 HConstant* HGraphBuilder::EstablishElementsAllocationSize(
2600 return Add<HConstant>(base_size);
2623 Add<HStoreNamedField>(elements, HObjectAccess::ForMap(), Add<HConstant>(map));
2651 HConstant* empty_fixed_array =
2652 Add<HConstant>(isolate()->factory()->empty_fixed_array());
2666 array, Add<HConstant>(JSArray::kSize), allocation_site_payload);
2738 HValue* min_growth = Add<HConstant>(16);
2753 Add<HBoundsCheck>(new_capacity, Add<HConstant>(
2800 HInstruction* key = Add<HConstant>(i);
2832 ? Add<HConstant>(factory->the_hole_value())
2833 : Add<HConstant>(nan_double);
2848 HConstant::cast(capacity)->HasInteger32Value()) {
2849 int constant_candidate = HConstant::cast(capacity)->Integer32Value();
2869 HValue* key_constant = Add<HConstant>(i);
2908 HConstant* hole_constant = IsFastDoubleElementsKind(to_elements_kind)
2909 ? Add<HConstant>(FixedDoubleArray::hole_nan_as_double())
2992 HConstant* size_upper_bound = EstablishElementsAllocationSize(
3135 Add<HConstant>(static_cast<int32_t>(Context::ARRAY_FUNCTION_INDEX));
3151 HConstant::cast(allocation_site_payload)->handle(
3175 return builder()->Add<HConstant>(map);
3192 HInstruction* index = builder()->Add<HConstant>(
3198 HInstruction* kind_index = builder()->Add<HConstant>(kind_);
3214 HConstant* capacity = builder()->Add<HConstant>(initial_capacity());
3223 HConstant* capacity_upper_bound,
3238 HConstant* elememts_size_upper_bound = capacity->IsInteger32Constant()
3239 ? HConstant::cast(capacity)
4334 // We need to create a HConstant "zero" now so that GVN will fold every
4492 HConstant* undefined_constant = graph()->GetConstantUndefined();
5115 HInstruction* start_index = Add<HConstant>(0);
5358 HConstant* instr = New<HConstant>(constant_value);
5376 HConstant* constant = New<HConstant>(constant_object);
5443 HConstant* instr = New<HConstant>(expr->value());
5574 Add<HPushArguments>(Add<HConstant>(closure_literals),
5575 Add<HConstant>(literal_index),
5576 Add<HConstant>(constant_properties),
5577 Add<HConstant>(flags));
5732 Add<HPushArguments>(Add<HConstant>(literals),
5733 Add<HConstant>(literal_index),
5734 Add<HConstant>(constants),
5735 Add<HConstant>(flags));
5754 Push(Add<HConstant>(expr->literal_index()));
5770 HValue* key = Add<HConstant>(i);
5810 HConstant::cast(checked_object->ActualValue())->handle(isolate()));
5817 return New<HConstant>(value);
5861 HInstruction* heap_number_size = Add<HConstant>(HeapNumber::kSize);
5902 instr->SetTransition(Add<HConstant>(transition));
6226 HValue* function = Add<HConstant>(info->accessor());
6243 return New<HConstant>(info->constant());
6494 HConstant* c_value = HConstant::cast(value);
6500 HValue* c_constant = Add<HConstant>(constant);
6798 HConstant* c_string = HConstant::cast(string);
6800 return Add<HConstant>(c_string->StringValue()->map()->instance_type());
6812 HConstant* c_string = HConstant::cast(string);
6814 return Add<HConstant>(c_string->StringValue()->length());
7134 HConstant::cast(key->ActualValue())->handle(isolate());
7262 result = New<HConstant>(argument_count);
7281 HInstruction* length = Add<HConstant>(argument_count);
7400 Add<HConstant>(constant), handle(constant->map()));
7444 HValue* arity = Add<HConstant>(argument_count - 1);
7450 HConstant* adaptor_value = Add<HConstant>(adaptor);
7460 HValue* target = Add<HConstant>(jsfun);
7476 HValue* param_count_value = Add<HConstant>(formal_parameter_count);
7607 HValue* function = Add<HConstant>(expr->target());
7888 HConstant* undefined = graph()->GetConstantUndefined();
7897 HConstant* context = Add<HConstant>(Handle<Context>(target->context()));
8202 if (right->IsConstant() && HConstant::cast(right)->HasDoubleValue()) {
8203 double exponent = HConstant::cast(right)->DoubleValue();
8291 ? Add<HConstant>(factory->the_hole_value())
8292 : Add<HConstant>(nan_double);
8388 HConstant* inline_threshold = Add<HConstant>(static_cast<int32_t>(16));
8452 ? Add<HConstant>(isolate()->factory()->the_hole_value())
8453 : Add<HConstant>(FixedDoubleArray::hole_nan_as_double());
8652 holder = Add<HConstant>(api_holder);
8664 HValue* call_data = Add<HConstant>(call_data_obj);
8669 HValue* api_function_address = Add<HConstant>(ExternalReference(ref));
8673 Add<HConstant>(function),
8682 HConstant* code_value = Add<HConstant>(code);
8753 HConstant::cast(function)->handle(isolate())->IsJSFunction()) {
8755 HConstant::cast(function)->handle(isolate()));
8778 return Add<HConstant>(global_proxy);
9027 HConstant::cast(function)->handle(isolate())->IsJSFunction()) {
9029 HConstant::cast(function)->handle(isolate()));
9179 HInstruction* site_instruction = Add<HConstant>(site);
9186 HConstant* constant_argument = HConstant::cast(argument);
9237 HConstant* constant_argument = HConstant::cast(argument);
9299 HValue* size_in_bytes = Add<HConstant>(instance_size);
9322 Add<HConstant>(initial_map));
9323 HValue* empty_fixed_array = Add<HConstant>(factory->empty_fixed_array());
9333 HConstant* undefined = graph()->GetConstantUndefined();
9440 Add<HConstant>(static_cast<int32_t>(0)));
9504 Add<HConstant>(ExternalArray::kAlignedSize),
9552 Add<HConstant>(FixedTypedArrayBase::kHeaderSize));
9570 HValue* filler = Add<HConstant>(static_cast<int32_t>(0));
9576 Add<HConstant>(static_cast<int32_t>(0)),
9632 byte_offset = Add<HConstant>(static_cast<int32_t>(0));
9672 Add<HConstant
9713 HConstant* max_smi = New<HConstant>(static_cast<int32_t>(Smi::kMaxValue));
9721 HConstant* result = New<HConstant>(static_cast<int32_t>(
9840 Add<HPushArguments>(obj, key, Add<HConstant>(function_strict_mode()));
9952 HConstant* delta = (expr->op() == Token::INC)
10098 HConstant* c_string = HConstant::cast(string);
10099 HConstant* c_index = HConstant::cast(index);
10104 return New<HConstant>(base::OS::nan_value());
10106 return New<HConstant>(s->Get(i));
10120 const HConstant* c1 = HConstant::cast(sa);
10121 const HConstant* c2 = HConstant::cast(const32_minus_sa);
10164 HConstant* right_const = HConstant::cast(right);
10189 HConstant* constant = HConstant::cast(value);
10190 Maybe<HConstant*> number = constant->CopyToTruncatedNumber(zone());
10338 HConstant::cast(left)->HasStringValue() &&
10339 HConstant::cast(left)->StringValue()->length() == 0) {
10343 HConstant::cast(right)->HasStringValue() &&
10344 HConstant::cast(right)->StringValue()->length() == 0) {
10362 HConstant::cast(left)->HasStringValue() &&
10363 HConstant::cast(left)->StringValue()->length() + 1 >=
10366 HConstant::cast(right)->HasStringValue() &&
10367 HConstant::cast(right)->StringValue()->length() + 1 >=
10410 HConstant* fixed_right = Add<HConstant>(
10660 HConstant::cast(left)->handle(isolate)->IsBoolean()) ||
10662 HConstant::cast(right)->handle(isolate)->IsBoolean()));
10805 HConstant::cast(left)->HasNumberValue()) ||
10807 HConstant::cast(right)->HasNumberValue())) {
10843 !HConstant::cast(left)->HasInternalizedStringValue()) ||
10845 !HConstant::cast(right)->HasInternalizedStringValue())) {
10907 HConstant* nil_constant = nil == kNullValue
10928 return New<HConstant>(
10945 HValue* object_size_constant = Add<HConstant>(
10963 HConstant* empty_fixed_array = Add<HConstant>(
10989 HValue* object_elements_size = Add<HConstant>(elements_size);
11025 HInstruction* properties = Add<HConstant>(properties_field);
11034 HInstruction* length = Add<HConstant>(length_field);
11051 object_elements = Add<HConstant>(elements_field);
11097 HValue* heap_number_constant = Add<HConstant>(HeapNumber::kSize);
11109 Add<HConstant>(Handle<HeapNumber>::cast(value)->value());
11116 : Add<HConstant>(value);
11120 value_instruction = Add<HConstant>(value);
11129 Add<HConstant>(isolate()->factory()->one_pointer_filler_map());
11147 HValue* object_elements_length = Add<HConstant>(elements_length);
11166 HInstruction* boilerplate_elements = Add<HConstant>(elements);
11169 HValue* key_constant = Add<HConstant>(i);
11186 HInstruction* boilerplate_elements = Add<HConstant>(elements);
11191 HValue* key_constant = Add<HConstant>(i);
11490 result = New<HConstant>(argument_count);
11513 HInstruction* length = Add<HConstant>(argument_count);
11898 Add<HConstant>(ExternalReference::debug_is_active_address(isolate()));
12124 HConstant* undefined,