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 5544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5555 return HObjectAccess( | 5555 return HObjectAccess( |
5556 kDouble, HeapNumber::kValueOffset, Representation::Double()); | 5556 kDouble, HeapNumber::kValueOffset, Representation::Double()); |
5557 } | 5557 } |
5558 | 5558 |
5559 static HObjectAccess ForElementsPointer() { | 5559 static HObjectAccess ForElementsPointer() { |
5560 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); | 5560 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); |
5561 } | 5561 } |
5562 | 5562 |
5563 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { | 5563 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { |
5564 return HObjectAccess( | 5564 return HObjectAccess( |
5565 kArrayLengths, JSArray::kLengthOffset, | 5565 kArrayLengths, |
5566 IsFastElementsKind(elements_kind) && FLAG_track_fields ? | 5566 JSArray::kLengthOffset, |
5567 Representation::Smi() : Representation::Tagged()); | 5567 IsFastElementsKind(elements_kind) && |
| 5568 FLAG_track_fields |
| 5569 ? Representation::Smi() : Representation::Tagged()); |
5568 } | 5570 } |
5569 | 5571 |
5570 static HObjectAccess ForAllocationSiteTransitionInfo() { | 5572 static HObjectAccess ForAllocationSiteTransitionInfo() { |
5571 return HObjectAccess(kInobject, AllocationSite::kTransitionInfoOffset); | 5573 return HObjectAccess(kInobject, AllocationSite::kTransitionInfoOffset); |
5572 } | 5574 } |
5573 | 5575 |
5574 static HObjectAccess ForAllocationSiteWeakNext() { | 5576 static HObjectAccess ForAllocationSiteWeakNext() { |
5575 return HObjectAccess(kInobject, AllocationSite::kWeakNextOffset); | 5577 return HObjectAccess(kInobject, AllocationSite::kWeakNextOffset); |
5576 } | 5578 } |
5577 | 5579 |
5578 static HObjectAccess ForFixedArrayLength() { | 5580 static HObjectAccess ForFixedArrayLength() { |
5579 return HObjectAccess( | 5581 return HObjectAccess( |
5580 kArrayLengths, FixedArray::kLengthOffset, | 5582 kArrayLengths, |
5581 FLAG_track_fields ? | 5583 FixedArray::kLengthOffset, |
5582 Representation::Smi() : Representation::Tagged()); | 5584 FLAG_track_fields ? Representation::Smi() : Representation::Tagged()); |
5583 } | 5585 } |
5584 | 5586 |
5585 static HObjectAccess ForPropertiesPointer() { | 5587 static HObjectAccess ForPropertiesPointer() { |
5586 return HObjectAccess(kInobject, JSObject::kPropertiesOffset); | 5588 return HObjectAccess(kInobject, JSObject::kPropertiesOffset); |
5587 } | 5589 } |
5588 | 5590 |
5589 static HObjectAccess ForPrototypeOrInitialMap() { | 5591 static HObjectAccess ForPrototypeOrInitialMap() { |
5590 return HObjectAccess(kInobject, JSFunction::kPrototypeOrInitialMapOffset); | 5592 return HObjectAccess(kInobject, JSFunction::kPrototypeOrInitialMapOffset); |
5591 } | 5593 } |
5592 | 5594 |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6926 virtual bool IsDeletable() const { return true; } | 6928 virtual bool IsDeletable() const { return true; } |
6927 }; | 6929 }; |
6928 | 6930 |
6929 | 6931 |
6930 #undef DECLARE_INSTRUCTION | 6932 #undef DECLARE_INSTRUCTION |
6931 #undef DECLARE_CONCRETE_INSTRUCTION | 6933 #undef DECLARE_CONCRETE_INSTRUCTION |
6932 | 6934 |
6933 } } // namespace v8::internal | 6935 } } // namespace v8::internal |
6934 | 6936 |
6935 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6937 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |