| 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 6079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6090 static HObjectAccess ForJSArrayBufferBackingStore() { | 6090 static HObjectAccess ForJSArrayBufferBackingStore() { |
| 6091 return HObjectAccess::ForObservableJSObjectOffset( | 6091 return HObjectAccess::ForObservableJSObjectOffset( |
| 6092 JSArrayBuffer::kBackingStoreOffset, Representation::External()); | 6092 JSArrayBuffer::kBackingStoreOffset, Representation::External()); |
| 6093 } | 6093 } |
| 6094 | 6094 |
| 6095 static HObjectAccess ForJSArrayBufferByteLength() { | 6095 static HObjectAccess ForJSArrayBufferByteLength() { |
| 6096 return HObjectAccess::ForObservableJSObjectOffset( | 6096 return HObjectAccess::ForObservableJSObjectOffset( |
| 6097 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); | 6097 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); |
| 6098 } | 6098 } |
| 6099 | 6099 |
| 6100 static HObjectAccess ForJSArrayBufferFlag() { | |
| 6101 return HObjectAccess::ForObservableJSObjectOffset( | |
| 6102 JSArrayBuffer::kFlagOffset, Representation::Smi()); | |
| 6103 } | |
| 6104 | |
| 6105 static HObjectAccess ForExternalArrayExternalPointer() { | 6100 static HObjectAccess ForExternalArrayExternalPointer() { |
| 6106 return HObjectAccess::ForObservableJSObjectOffset( | 6101 return HObjectAccess::ForObservableJSObjectOffset( |
| 6107 ExternalArray::kExternalPointerOffset, Representation::External()); | 6102 ExternalArray::kExternalPointerOffset, Representation::External()); |
| 6108 } | 6103 } |
| 6109 | 6104 |
| 6105 static HObjectAccess ForJSArrayBufferViewWeakNext() { |
| 6106 return HObjectAccess::ForObservableJSObjectOffset( |
| 6107 JSArrayBufferView::kWeakNextOffset); |
| 6108 } |
| 6109 |
| 6110 static HObjectAccess ForJSArrayBufferWeakFirstView() { |
| 6111 return HObjectAccess::ForObservableJSObjectOffset( |
| 6112 JSArrayBuffer::kWeakFirstViewOffset); |
| 6113 } |
| 6114 |
| 6110 static HObjectAccess ForJSArrayBufferViewBuffer() { | 6115 static HObjectAccess ForJSArrayBufferViewBuffer() { |
| 6111 return HObjectAccess::ForObservableJSObjectOffset( | 6116 return HObjectAccess::ForObservableJSObjectOffset( |
| 6112 JSArrayBufferView::kBufferOffset); | 6117 JSArrayBufferView::kBufferOffset); |
| 6113 } | 6118 } |
| 6114 | 6119 |
| 6115 static HObjectAccess ForJSArrayBufferViewByteOffset() { | 6120 static HObjectAccess ForJSArrayBufferViewByteOffset() { |
| 6116 return HObjectAccess::ForObservableJSObjectOffset( | 6121 return HObjectAccess::ForObservableJSObjectOffset( |
| 6117 JSArrayBufferView::kByteOffsetOffset); | 6122 JSArrayBufferView::kByteOffsetOffset); |
| 6118 } | 6123 } |
| 6119 | 6124 |
| (...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7819 }; | 7824 }; |
| 7820 | 7825 |
| 7821 | 7826 |
| 7822 | 7827 |
| 7823 #undef DECLARE_INSTRUCTION | 7828 #undef DECLARE_INSTRUCTION |
| 7824 #undef DECLARE_CONCRETE_INSTRUCTION | 7829 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7825 | 7830 |
| 7826 } } // namespace v8::internal | 7831 } } // namespace v8::internal |
| 7827 | 7832 |
| 7828 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7833 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |