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

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

Issue 9616014: Improve polymorphic loads on single slots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix two minor issues. Created 8 years, 9 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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698