| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
| 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
| 7 | 7 |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 | 10 |
| (...skipping 6085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6096 static HObjectAccess ForJSArrayBufferBackingStore() { | 6096 static HObjectAccess ForJSArrayBufferBackingStore() { |
| 6097 return HObjectAccess::ForObservableJSObjectOffset( | 6097 return HObjectAccess::ForObservableJSObjectOffset( |
| 6098 JSArrayBuffer::kBackingStoreOffset, Representation::External()); | 6098 JSArrayBuffer::kBackingStoreOffset, Representation::External()); |
| 6099 } | 6099 } |
| 6100 | 6100 |
| 6101 static HObjectAccess ForJSArrayBufferByteLength() { | 6101 static HObjectAccess ForJSArrayBufferByteLength() { |
| 6102 return HObjectAccess::ForObservableJSObjectOffset( | 6102 return HObjectAccess::ForObservableJSObjectOffset( |
| 6103 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); | 6103 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); |
| 6104 } | 6104 } |
| 6105 | 6105 |
| 6106 static HObjectAccess ForJSArrayBufferFlag() { |
| 6107 return HObjectAccess::ForObservableJSObjectOffset( |
| 6108 JSArrayBuffer::kFlagOffset, Representation::Smi()); |
| 6109 } |
| 6110 |
| 6106 static HObjectAccess ForExternalArrayExternalPointer() { | 6111 static HObjectAccess ForExternalArrayExternalPointer() { |
| 6107 return HObjectAccess::ForObservableJSObjectOffset( | 6112 return HObjectAccess::ForObservableJSObjectOffset( |
| 6108 ExternalArray::kExternalPointerOffset, Representation::External()); | 6113 ExternalArray::kExternalPointerOffset, Representation::External()); |
| 6109 } | 6114 } |
| 6110 | 6115 |
| 6111 static HObjectAccess ForJSArrayBufferViewWeakNext() { | |
| 6112 return HObjectAccess::ForObservableJSObjectOffset( | |
| 6113 JSArrayBufferView::kWeakNextOffset); | |
| 6114 } | |
| 6115 | |
| 6116 static HObjectAccess ForJSArrayBufferWeakFirstView() { | |
| 6117 return HObjectAccess::ForObservableJSObjectOffset( | |
| 6118 JSArrayBuffer::kWeakFirstViewOffset); | |
| 6119 } | |
| 6120 | |
| 6121 static HObjectAccess ForJSArrayBufferViewBuffer() { | 6116 static HObjectAccess ForJSArrayBufferViewBuffer() { |
| 6122 return HObjectAccess::ForObservableJSObjectOffset( | 6117 return HObjectAccess::ForObservableJSObjectOffset( |
| 6123 JSArrayBufferView::kBufferOffset); | 6118 JSArrayBufferView::kBufferOffset); |
| 6124 } | 6119 } |
| 6125 | 6120 |
| 6126 static HObjectAccess ForJSArrayBufferViewByteOffset() { | 6121 static HObjectAccess ForJSArrayBufferViewByteOffset() { |
| 6127 return HObjectAccess::ForObservableJSObjectOffset( | 6122 return HObjectAccess::ForObservableJSObjectOffset( |
| 6128 JSArrayBufferView::kByteOffsetOffset); | 6123 JSArrayBufferView::kByteOffsetOffset); |
| 6129 } | 6124 } |
| 6130 | 6125 |
| (...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7830 }; | 7825 }; |
| 7831 | 7826 |
| 7832 | 7827 |
| 7833 | 7828 |
| 7834 #undef DECLARE_INSTRUCTION | 7829 #undef DECLARE_INSTRUCTION |
| 7835 #undef DECLARE_CONCRETE_INSTRUCTION | 7830 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7836 | 7831 |
| 7837 } } // namespace v8::internal | 7832 } } // namespace v8::internal |
| 7838 | 7833 |
| 7839 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7834 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |