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

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

Issue 8341009: Make the GC aware of JSReceiver pointers in LookupResults. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Inlined LookupResult constructor and destructor. Created 9 years, 2 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 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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 name_(name), 1383 name_(name),
1384 need_generic_(false) { 1384 need_generic_(false) {
1385 SetOperandAt(0, context); 1385 SetOperandAt(0, context);
1386 SetOperandAt(1, object); 1386 SetOperandAt(1, object);
1387 set_representation(Representation::Tagged()); 1387 set_representation(Representation::Tagged());
1388 SetFlag(kDependsOnMaps); 1388 SetFlag(kDependsOnMaps);
1389 for (int i = 0; 1389 for (int i = 0;
1390 i < types->length() && types_.length() < kMaxLoadPolymorphism; 1390 i < types->length() && types_.length() < kMaxLoadPolymorphism;
1391 ++i) { 1391 ++i) {
1392 Handle<Map> map = types->at(i); 1392 Handle<Map> map = types->at(i);
1393 LookupResult lookup; 1393 LookupResult lookup(map->GetIsolate());
1394 map->LookupInDescriptors(NULL, *name, &lookup); 1394 map->LookupInDescriptors(NULL, *name, &lookup);
1395 if (lookup.IsProperty()) { 1395 if (lookup.IsProperty()) {
1396 switch (lookup.type()) { 1396 switch (lookup.type()) {
1397 case FIELD: { 1397 case FIELD: {
1398 int index = lookup.GetLocalFieldIndexFromMap(*map); 1398 int index = lookup.GetLocalFieldIndexFromMap(*map);
1399 if (index < 0) { 1399 if (index < 0) {
1400 SetFlag(kDependsOnInobjectFields); 1400 SetFlag(kDependsOnInobjectFields);
1401 } else { 1401 } else {
1402 SetFlag(kDependsOnBackingStoreFields); 1402 SetFlag(kDependsOnBackingStoreFields);
1403 } 1403 }
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 1964
1965 1965
1966 void HCheckPrototypeMaps::Verify() { 1966 void HCheckPrototypeMaps::Verify() {
1967 HInstruction::Verify(); 1967 HInstruction::Verify();
1968 ASSERT(HasNoUses()); 1968 ASSERT(HasNoUses());
1969 } 1969 }
1970 1970
1971 #endif 1971 #endif
1972 1972
1973 } } // namespace v8::internal 1973 } } // 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