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 4266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4277 return HObjectAccess(portion, offset, representation); | 4277 return HObjectAccess(portion, offset, representation); |
4278 } | 4278 } |
4279 | 4279 |
4280 | 4280 |
4281 HObjectAccess HObjectAccess::ForAllocationSiteOffset(int offset) { | 4281 HObjectAccess HObjectAccess::ForAllocationSiteOffset(int offset) { |
4282 switch (offset) { | 4282 switch (offset) { |
4283 case AllocationSite::kTransitionInfoOffset: | 4283 case AllocationSite::kTransitionInfoOffset: |
4284 return HObjectAccess(kInobject, offset, Representation::Tagged()); | 4284 return HObjectAccess(kInobject, offset, Representation::Tagged()); |
4285 case AllocationSite::kNestedSiteOffset: | 4285 case AllocationSite::kNestedSiteOffset: |
4286 return HObjectAccess(kInobject, offset, Representation::Tagged()); | 4286 return HObjectAccess(kInobject, offset, Representation::Tagged()); |
4287 case AllocationSite::kMementoFoundCountOffset: | 4287 case AllocationSite::kPretenureDataOffset: |
4288 return HObjectAccess(kInobject, offset, Representation::Smi()); | 4288 return HObjectAccess(kInobject, offset, Representation::Smi()); |
4289 case AllocationSite::kMementoCreateCountOffset: | 4289 case AllocationSite::kPretenureCreateCountOffset: |
4290 return HObjectAccess(kInobject, offset, Representation::Smi()); | |
4291 case AllocationSite::kPretenureDecisionOffset: | |
4292 return HObjectAccess(kInobject, offset, Representation::Smi()); | 4290 return HObjectAccess(kInobject, offset, Representation::Smi()); |
4293 case AllocationSite::kDependentCodeOffset: | 4291 case AllocationSite::kDependentCodeOffset: |
4294 return HObjectAccess(kInobject, offset, Representation::Tagged()); | 4292 return HObjectAccess(kInobject, offset, Representation::Tagged()); |
4295 case AllocationSite::kWeakNextOffset: | 4293 case AllocationSite::kWeakNextOffset: |
4296 return HObjectAccess(kInobject, offset, Representation::Tagged()); | 4294 return HObjectAccess(kInobject, offset, Representation::Tagged()); |
4297 default: | 4295 default: |
4298 UNREACHABLE(); | 4296 UNREACHABLE(); |
4299 } | 4297 } |
4300 return HObjectAccess(kInobject, offset); | 4298 return HObjectAccess(kInobject, offset); |
4301 } | 4299 } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4447 break; | 4445 break; |
4448 case kExternalMemory: | 4446 case kExternalMemory: |
4449 stream->Add("[external-memory]"); | 4447 stream->Add("[external-memory]"); |
4450 break; | 4448 break; |
4451 } | 4449 } |
4452 | 4450 |
4453 stream->Add("@%d", offset()); | 4451 stream->Add("@%d", offset()); |
4454 } | 4452 } |
4455 | 4453 |
4456 } } // namespace v8::internal | 4454 } } // namespace v8::internal |
OLD | NEW |