OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 | 2085 |
2086 // Since transitioned elements maps of the initial map don't fail the map | 2086 // Since transitioned elements maps of the initial map don't fail the map |
2087 // check, the CheckMaps instruction doesn't need to depend on ElementsKinds. | 2087 // check, the CheckMaps instruction doesn't need to depend on ElementsKinds. |
2088 check_map->ClearGVNFlag(kDependsOnElementsKind); | 2088 check_map->ClearGVNFlag(kDependsOnElementsKind); |
2089 | 2089 |
2090 ElementsKind kind = map->elements_kind(); | 2090 ElementsKind kind = map->elements_kind(); |
2091 bool packed = IsFastPackedElementsKind(kind); | 2091 bool packed = IsFastPackedElementsKind(kind); |
2092 while (CanTransitionToMoreGeneralFastElementsKind(kind, packed)) { | 2092 while (CanTransitionToMoreGeneralFastElementsKind(kind, packed)) { |
2093 kind = GetNextMoreGeneralFastElementsKind(kind, packed); | 2093 kind = GetNextMoreGeneralFastElementsKind(kind, packed); |
2094 Map* transitioned_map = | 2094 Map* transitioned_map = |
2095 map->LookupElementsTransitionMap(kind, NULL); | 2095 map->LookupElementsTransitionMap(kind); |
2096 if (transitioned_map) { | 2096 if (transitioned_map) { |
2097 map_set->Add(Handle<Map>(transitioned_map)); | 2097 map_set->Add(Handle<Map>(transitioned_map)); |
2098 } | 2098 } |
2099 }; | 2099 }; |
2100 map_set->Sort(); | 2100 map_set->Sort(); |
2101 return check_map; | 2101 return check_map; |
2102 } | 2102 } |
2103 | 2103 |
2104 virtual Representation RequiredInputRepresentation(int index) { | 2104 virtual Representation RequiredInputRepresentation(int index) { |
2105 return Representation::Tagged(); | 2105 return Representation::Tagged(); |
(...skipping 2947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5053 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 5053 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
5054 }; | 5054 }; |
5055 | 5055 |
5056 | 5056 |
5057 #undef DECLARE_INSTRUCTION | 5057 #undef DECLARE_INSTRUCTION |
5058 #undef DECLARE_CONCRETE_INSTRUCTION | 5058 #undef DECLARE_CONCRETE_INSTRUCTION |
5059 | 5059 |
5060 } } // namespace v8::internal | 5060 } } // namespace v8::internal |
5061 | 5061 |
5062 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5062 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |