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 6125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6136 // Create an access to a resolved field (in-object or backing store). | 6136 // Create an access to a resolved field (in-object or backing store). |
6137 static HObjectAccess ForField(Handle<Map> map, int index, | 6137 static HObjectAccess ForField(Handle<Map> map, int index, |
6138 Representation representation, | 6138 Representation representation, |
6139 Handle<String> name); | 6139 Handle<String> name); |
6140 | 6140 |
6141 static HObjectAccess ForJSTypedArrayLength() { | 6141 static HObjectAccess ForJSTypedArrayLength() { |
6142 return HObjectAccess::ForObservableJSObjectOffset( | 6142 return HObjectAccess::ForObservableJSObjectOffset( |
6143 JSTypedArray::kLengthOffset); | 6143 JSTypedArray::kLengthOffset); |
6144 } | 6144 } |
6145 | 6145 |
| 6146 static HObjectAccess ForJSTypedArrayIsShared() { |
| 6147 return HObjectAccess::ForObservableJSObjectOffset( |
| 6148 JSTypedArray::kIsSharedOffset); |
| 6149 } |
| 6150 |
6146 static HObjectAccess ForJSArrayBufferBackingStore() { | 6151 static HObjectAccess ForJSArrayBufferBackingStore() { |
6147 return HObjectAccess::ForObservableJSObjectOffset( | 6152 return HObjectAccess::ForObservableJSObjectOffset( |
6148 JSArrayBuffer::kBackingStoreOffset, Representation::External()); | 6153 JSArrayBuffer::kBackingStoreOffset, Representation::External()); |
6149 } | 6154 } |
6150 | 6155 |
6151 static HObjectAccess ForJSArrayBufferByteLength() { | 6156 static HObjectAccess ForJSArrayBufferByteLength() { |
6152 return HObjectAccess::ForObservableJSObjectOffset( | 6157 return HObjectAccess::ForObservableJSObjectOffset( |
6153 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); | 6158 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); |
6154 } | 6159 } |
6155 | 6160 |
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7876 }; | 7881 }; |
7877 | 7882 |
7878 | 7883 |
7879 | 7884 |
7880 #undef DECLARE_INSTRUCTION | 7885 #undef DECLARE_INSTRUCTION |
7881 #undef DECLARE_CONCRETE_INSTRUCTION | 7886 #undef DECLARE_CONCRETE_INSTRUCTION |
7882 | 7887 |
7883 } } // namespace v8::internal | 7888 } } // namespace v8::internal |
7884 | 7889 |
7885 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7890 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |