Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: src/hydrogen-instructions.h

Issue 10444055: Promoting elements transitions to their own field. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: renaming SearchMode fields and moving it into descriptor array class Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 2951 matching lines...) Expand 10 before | Expand all | Expand 10 after
5057 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 5057 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
5058 }; 5058 };
5059 5059
5060 5060
5061 #undef DECLARE_INSTRUCTION 5061 #undef DECLARE_INSTRUCTION
5062 #undef DECLARE_CONCRETE_INSTRUCTION 5062 #undef DECLARE_CONCRETE_INSTRUCTION
5063 5063
5064 } } // namespace v8::internal 5064 } } // namespace v8::internal
5065 5065
5066 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5066 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698