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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 if (mode() == REQUIRE_EXACT_MAP) { | 962 if (mode() == REQUIRE_EXACT_MAP) { |
963 stream->Add(" [EXACT]"); | 963 stream->Add(" [EXACT]"); |
964 } else if (!has_element_transitions_) { | 964 } else if (!has_element_transitions_) { |
965 stream->Add(" [EXACT*]"); | 965 stream->Add(" [EXACT*]"); |
966 } else { | 966 } else { |
967 stream->Add(" [MATCH ELEMENTS]"); | 967 stream->Add(" [MATCH ELEMENTS]"); |
968 } | 968 } |
969 } | 969 } |
970 | 970 |
971 | 971 |
| 972 void HCheckMapSet::PrintDataTo(StringStream* stream) { |
| 973 value()->PrintNameTo(stream); |
| 974 stream->Add(" [%p", *map_set()->first()); |
| 975 for (int i = 1; i < map_set()->length(); ++i) { |
| 976 stream->Add(",%p", *map_set()->at(i)); |
| 977 } |
| 978 stream->Add("]"); |
| 979 } |
| 980 |
| 981 |
972 void HCheckFunction::PrintDataTo(StringStream* stream) { | 982 void HCheckFunction::PrintDataTo(StringStream* stream) { |
973 value()->PrintNameTo(stream); | 983 value()->PrintNameTo(stream); |
974 stream->Add(" %p", *target()); | 984 stream->Add(" %p", *target()); |
975 } | 985 } |
976 | 986 |
977 | 987 |
978 const char* HCheckInstanceType::GetCheckName() { | 988 const char* HCheckInstanceType::GetCheckName() { |
979 switch (check_) { | 989 switch (check_) { |
980 case IS_SPEC_OBJECT: return "object"; | 990 case IS_SPEC_OBJECT: return "object"; |
981 case IS_JS_ARRAY: return "array"; | 991 case IS_JS_ARRAY: return "array"; |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 | 2297 |
2288 | 2298 |
2289 void HCheckPrototypeMaps::Verify() { | 2299 void HCheckPrototypeMaps::Verify() { |
2290 HInstruction::Verify(); | 2300 HInstruction::Verify(); |
2291 ASSERT(HasNoUses()); | 2301 ASSERT(HasNoUses()); |
2292 } | 2302 } |
2293 | 2303 |
2294 #endif | 2304 #endif |
2295 | 2305 |
2296 } } // namespace v8::internal | 2306 } } // namespace v8::internal |
OLD | NEW |