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

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

Issue 7655017: Improve memory usage of receiver type feedback. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ReceiverTypeList -> SmallMapList Created 9 years, 4 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 1299
1300 1300
1301 void HLoadNamedField::PrintDataTo(StringStream* stream) { 1301 void HLoadNamedField::PrintDataTo(StringStream* stream) {
1302 object()->PrintNameTo(stream); 1302 object()->PrintNameTo(stream);
1303 stream->Add(" @%d%s", offset(), is_in_object() ? "[in-object]" : ""); 1303 stream->Add(" @%d%s", offset(), is_in_object() ? "[in-object]" : "");
1304 } 1304 }
1305 1305
1306 1306
1307 HLoadNamedFieldPolymorphic::HLoadNamedFieldPolymorphic(HValue* context, 1307 HLoadNamedFieldPolymorphic::HLoadNamedFieldPolymorphic(HValue* context,
1308 HValue* object, 1308 HValue* object,
1309 ZoneMapList* types, 1309 SmallMapList* types,
1310 Handle<String> name) 1310 Handle<String> name)
1311 : types_(Min(types->length(), kMaxLoadPolymorphism)), 1311 : types_(Min(types->length(), kMaxLoadPolymorphism)),
1312 name_(name), 1312 name_(name),
1313 need_generic_(false) { 1313 need_generic_(false) {
1314 SetOperandAt(0, context); 1314 SetOperandAt(0, context);
1315 SetOperandAt(1, object); 1315 SetOperandAt(1, object);
1316 set_representation(Representation::Tagged()); 1316 set_representation(Representation::Tagged());
1317 SetFlag(kDependsOnMaps); 1317 SetFlag(kDependsOnMaps);
1318 for (int i = 0; 1318 for (int i = 0;
1319 i < types->length() && types_.length() < kMaxLoadPolymorphism; 1319 i < types->length() && types_.length() < kMaxLoadPolymorphism;
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 1852
1853 1853
1854 void HCheckPrototypeMaps::Verify() { 1854 void HCheckPrototypeMaps::Verify() {
1855 HInstruction::Verify(); 1855 HInstruction::Verify();
1856 ASSERT(HasNoUses()); 1856 ASSERT(HasNoUses());
1857 } 1857 }
1858 1858
1859 #endif 1859 #endif
1860 1860
1861 } } // namespace v8::internal 1861 } } // namespace v8::internal
OLDNEW
« src/ast.h ('K') | « src/hydrogen-instructions.h ('k') | src/small-pointer-list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698