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

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

Issue 9280007: Replaced LookupResult::IsProperty by LookupResult::IsFound where possible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 2 fixes Created 8 years, 11 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 SetOperandAt(0, context); 1408 SetOperandAt(0, context);
1409 SetOperandAt(1, object); 1409 SetOperandAt(1, object);
1410 set_representation(Representation::Tagged()); 1410 set_representation(Representation::Tagged());
1411 SetGVNFlag(kDependsOnMaps); 1411 SetGVNFlag(kDependsOnMaps);
1412 for (int i = 0; 1412 for (int i = 0;
1413 i < types->length() && types_.length() < kMaxLoadPolymorphism; 1413 i < types->length() && types_.length() < kMaxLoadPolymorphism;
1414 ++i) { 1414 ++i) {
1415 Handle<Map> map = types->at(i); 1415 Handle<Map> map = types->at(i);
1416 LookupResult lookup(map->GetIsolate()); 1416 LookupResult lookup(map->GetIsolate());
1417 map->LookupInDescriptors(NULL, *name, &lookup); 1417 map->LookupInDescriptors(NULL, *name, &lookup);
1418 if (lookup.IsProperty()) { 1418 if (lookup.IsFound()) {
1419 switch (lookup.type()) { 1419 switch (lookup.type()) {
1420 case FIELD: { 1420 case FIELD: {
1421 int index = lookup.GetLocalFieldIndexFromMap(*map); 1421 int index = lookup.GetLocalFieldIndexFromMap(*map);
1422 if (index < 0) { 1422 if (index < 0) {
1423 SetGVNFlag(kDependsOnInobjectFields); 1423 SetGVNFlag(kDependsOnInobjectFields);
1424 } else { 1424 } else {
1425 SetGVNFlag(kDependsOnBackingStoreFields); 1425 SetGVNFlag(kDependsOnBackingStoreFields);
1426 } 1426 }
1427 types_.Add(types->at(i)); 1427 types_.Add(types->at(i));
1428 break; 1428 break;
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 2129
2130 2130
2131 void HCheckPrototypeMaps::Verify() { 2131 void HCheckPrototypeMaps::Verify() {
2132 HInstruction::Verify(); 2132 HInstruction::Verify();
2133 ASSERT(HasNoUses()); 2133 ASSERT(HasNoUses());
2134 } 2134 }
2135 2135
2136 #endif 2136 #endif
2137 2137
2138 } } // namespace v8::internal 2138 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698