OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/compiler/js-native-context-specialization.h" | 5 #include "src/compiler/js-native-context-specialization.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 value = effect = graph()->NewNode(simplified()->CheckTaggedPointer(), | 959 value = effect = graph()->NewNode(simplified()->CheckTaggedPointer(), |
960 value, effect, control); | 960 value, effect, control); |
961 Handle<Map> field_map; | 961 Handle<Map> field_map; |
962 if (access_info.field_map().ToHandle(&field_map)) { | 962 if (access_info.field_map().ToHandle(&field_map)) { |
963 // Emit a map check for the value. | 963 // Emit a map check for the value. |
964 effect = graph()->NewNode(simplified()->CheckMaps(1), value, | 964 effect = graph()->NewNode(simplified()->CheckMaps(1), value, |
965 jsgraph()->HeapConstant(field_map), effect, | 965 jsgraph()->HeapConstant(field_map), effect, |
966 control); | 966 control); |
967 } | 967 } |
968 } else { | 968 } else { |
969 // DCHECK(field_type->Is(Type::Tagged())); | |
970 DCHECK(rep == MachineRepresentation::kTagged); | 969 DCHECK(rep == MachineRepresentation::kTagged); |
971 } | 970 } |
972 Handle<Map> transition_map; | 971 Handle<Map> transition_map; |
973 if (access_info.transition_map().ToHandle(&transition_map)) { | 972 if (access_info.transition_map().ToHandle(&transition_map)) { |
974 effect = graph()->NewNode( | 973 effect = graph()->NewNode( |
975 common()->BeginRegion(RegionObservability::kObservable), effect); | 974 common()->BeginRegion(RegionObservability::kObservable), effect); |
976 effect = graph()->NewNode( | 975 effect = graph()->NewNode( |
977 simplified()->StoreField(AccessBuilder::ForMap()), receiver, | 976 simplified()->StoreField(AccessBuilder::ForMap()), receiver, |
978 jsgraph()->Constant(transition_map), effect, control); | 977 jsgraph()->Constant(transition_map), effect, control); |
979 } | 978 } |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 } | 1480 } |
1482 | 1481 |
1483 | 1482 |
1484 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { | 1483 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { |
1485 return jsgraph()->simplified(); | 1484 return jsgraph()->simplified(); |
1486 } | 1485 } |
1487 | 1486 |
1488 } // namespace compiler | 1487 } // namespace compiler |
1489 } // namespace internal | 1488 } // namespace internal |
1490 } // namespace v8 | 1489 } // namespace v8 |
OLD | NEW |