| 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 5652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5663 | 5663 |
| 5664 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { | 5664 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { |
| 5665 return HObjectAccess( | 5665 return HObjectAccess( |
| 5666 kArrayLengths, | 5666 kArrayLengths, |
| 5667 JSArray::kLengthOffset, | 5667 JSArray::kLengthOffset, |
| 5668 IsFastElementsKind(elements_kind) && | 5668 IsFastElementsKind(elements_kind) && |
| 5669 FLAG_track_fields | 5669 FLAG_track_fields |
| 5670 ? Representation::Smi() : Representation::Tagged()); | 5670 ? Representation::Smi() : Representation::Tagged()); |
| 5671 } | 5671 } |
| 5672 | 5672 |
| 5673 static HObjectAccess ForTypedArrayLength() { |
| 5674 return HObjectAccess( |
| 5675 kInobject, |
| 5676 JSTypedArray::kLengthOffset, |
| 5677 Representation::Tagged()); |
| 5678 } |
| 5679 |
| 5673 static HObjectAccess ForAllocationSiteTransitionInfo() { | 5680 static HObjectAccess ForAllocationSiteTransitionInfo() { |
| 5674 return HObjectAccess(kInobject, AllocationSite::kTransitionInfoOffset); | 5681 return HObjectAccess(kInobject, AllocationSite::kTransitionInfoOffset); |
| 5675 } | 5682 } |
| 5676 | 5683 |
| 5677 static HObjectAccess ForAllocationSiteDependentCode() { | 5684 static HObjectAccess ForAllocationSiteDependentCode() { |
| 5678 return HObjectAccess(kInobject, AllocationSite::kDependentCodeOffset); | 5685 return HObjectAccess(kInobject, AllocationSite::kDependentCodeOffset); |
| 5679 } | 5686 } |
| 5680 | 5687 |
| 5681 static HObjectAccess ForAllocationSiteWeakNext() { | 5688 static HObjectAccess ForAllocationSiteWeakNext() { |
| 5682 return HObjectAccess(kInobject, AllocationSite::kWeakNextOffset); | 5689 return HObjectAccess(kInobject, AllocationSite::kWeakNextOffset); |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7041 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7048 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7042 }; | 7049 }; |
| 7043 | 7050 |
| 7044 | 7051 |
| 7045 #undef DECLARE_INSTRUCTION | 7052 #undef DECLARE_INSTRUCTION |
| 7046 #undef DECLARE_CONCRETE_INSTRUCTION | 7053 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7047 | 7054 |
| 7048 } } // namespace v8::internal | 7055 } } // namespace v8::internal |
| 7049 | 7056 |
| 7050 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7057 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |