| 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 5934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5945 | 5945 |
| 5946 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { | 5946 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { |
| 5947 return HObjectAccess( | 5947 return HObjectAccess( |
| 5948 kArrayLengths, | 5948 kArrayLengths, |
| 5949 JSArray::kLengthOffset, | 5949 JSArray::kLengthOffset, |
| 5950 IsFastElementsKind(elements_kind) && | 5950 IsFastElementsKind(elements_kind) && |
| 5951 FLAG_track_fields | 5951 FLAG_track_fields |
| 5952 ? Representation::Smi() : Representation::Tagged()); | 5952 ? Representation::Smi() : Representation::Tagged()); |
| 5953 } | 5953 } |
| 5954 | 5954 |
| 5955 static HObjectAccess ForAllocationSiteOffset(int offset) { | 5955 static HObjectAccess ForAllocationSiteOffset(int offset); |
| 5956 ASSERT(offset >= HeapObject::kHeaderSize && offset < AllocationSite::kSize); | |
| 5957 return HObjectAccess(kInobject, offset); | |
| 5958 } | |
| 5959 | 5956 |
| 5960 static HObjectAccess ForAllocationSiteList() { | 5957 static HObjectAccess ForAllocationSiteList() { |
| 5961 return HObjectAccess(kExternalMemory, 0, Representation::Tagged()); | 5958 return HObjectAccess(kExternalMemory, 0, Representation::Tagged()); |
| 5962 } | 5959 } |
| 5963 | 5960 |
| 5964 static HObjectAccess ForFixedArrayLength() { | 5961 static HObjectAccess ForFixedArrayLength() { |
| 5965 return HObjectAccess( | 5962 return HObjectAccess( |
| 5966 kArrayLengths, | 5963 kArrayLengths, |
| 5967 FixedArray::kLengthOffset, | 5964 FixedArray::kLengthOffset, |
| 5968 FLAG_track_fields ? Representation::Smi() : Representation::Tagged()); | 5965 FLAG_track_fields ? Representation::Smi() : Representation::Tagged()); |
| (...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7486 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7483 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7487 }; | 7484 }; |
| 7488 | 7485 |
| 7489 | 7486 |
| 7490 #undef DECLARE_INSTRUCTION | 7487 #undef DECLARE_INSTRUCTION |
| 7491 #undef DECLARE_CONCRETE_INSTRUCTION | 7488 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7492 | 7489 |
| 7493 } } // namespace v8::internal | 7490 } } // namespace v8::internal |
| 7494 | 7491 |
| 7495 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7492 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |