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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 *tag = kSymbolTag; | 951 *tag = kSymbolTag; |
952 return; | 952 return; |
953 default: | 953 default: |
954 UNREACHABLE(); | 954 UNREACHABLE(); |
955 } | 955 } |
956 } | 956 } |
957 | 957 |
958 | 958 |
959 void HCheckMap::PrintDataTo(StringStream* stream) { | 959 void HCheckMap::PrintDataTo(StringStream* stream) { |
960 value()->PrintNameTo(stream); | 960 value()->PrintNameTo(stream); |
961 stream->Add(" %p", *map()); | 961 stream->Add(" [%p", *map_set()->first()); |
962 if (mode() == REQUIRE_EXACT_MAP) { | 962 for (int i = 1; i < map_set()->length(); ++i) { |
963 stream->Add(" [EXACT]"); | 963 stream->Add(",%p", *map_set()->at(i)); |
964 } else if (!has_element_transitions_) { | |
965 stream->Add(" [EXACT*]"); | |
966 } else { | |
967 stream->Add(" [MATCH ELEMENTS]"); | |
968 } | 964 } |
| 965 stream->Add("]"); |
969 } | 966 } |
970 | 967 |
971 | 968 |
972 void HCheckFunction::PrintDataTo(StringStream* stream) { | 969 void HCheckFunction::PrintDataTo(StringStream* stream) { |
973 value()->PrintNameTo(stream); | 970 value()->PrintNameTo(stream); |
974 stream->Add(" %p", *target()); | 971 stream->Add(" %p", *target()); |
975 } | 972 } |
976 | 973 |
977 | 974 |
978 const char* HCheckInstanceType::GetCheckName() { | 975 const char* HCheckInstanceType::GetCheckName() { |
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 | 2284 |
2288 | 2285 |
2289 void HCheckPrototypeMaps::Verify() { | 2286 void HCheckPrototypeMaps::Verify() { |
2290 HInstruction::Verify(); | 2287 HInstruction::Verify(); |
2291 ASSERT(HasNoUses()); | 2288 ASSERT(HasNoUses()); |
2292 } | 2289 } |
2293 | 2290 |
2294 #endif | 2291 #endif |
2295 | 2292 |
2296 } } // namespace v8::internal | 2293 } } // namespace v8::internal |
OLD | NEW |