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_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 6174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6185 static HObjectAccess ForJSArrayBufferViewByteOffset() { | 6185 static HObjectAccess ForJSArrayBufferViewByteOffset() { |
6186 return HObjectAccess::ForObservableJSObjectOffset( | 6186 return HObjectAccess::ForObservableJSObjectOffset( |
6187 JSArrayBufferView::kByteOffsetOffset); | 6187 JSArrayBufferView::kByteOffsetOffset); |
6188 } | 6188 } |
6189 | 6189 |
6190 static HObjectAccess ForJSArrayBufferViewByteLength() { | 6190 static HObjectAccess ForJSArrayBufferViewByteLength() { |
6191 return HObjectAccess::ForObservableJSObjectOffset( | 6191 return HObjectAccess::ForObservableJSObjectOffset( |
6192 JSArrayBufferView::kByteLengthOffset); | 6192 JSArrayBufferView::kByteLengthOffset); |
6193 } | 6193 } |
6194 | 6194 |
6195 static HObjectAccess ForGlobalObjectNativeContext() { | 6195 static HObjectAccess ForJSGlobalObjectNativeContext() { |
6196 return HObjectAccess(kInobject, GlobalObject::kNativeContextOffset); | 6196 return HObjectAccess(kInobject, JSGlobalObject::kNativeContextOffset); |
6197 } | 6197 } |
6198 | 6198 |
6199 static HObjectAccess ForJSCollectionTable() { | 6199 static HObjectAccess ForJSCollectionTable() { |
6200 return HObjectAccess::ForObservableJSObjectOffset( | 6200 return HObjectAccess::ForObservableJSObjectOffset( |
6201 JSCollection::kTableOffset); | 6201 JSCollection::kTableOffset); |
6202 } | 6202 } |
6203 | 6203 |
6204 template <typename CollectionType> | 6204 template <typename CollectionType> |
6205 static HObjectAccess ForOrderedHashTableNumberOfBuckets() { | 6205 static HObjectAccess ForOrderedHashTableNumberOfBuckets() { |
6206 return HObjectAccess(kInobject, CollectionType::kNumberOfBucketsOffset, | 6206 return HObjectAccess(kInobject, CollectionType::kNumberOfBucketsOffset, |
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7909 | 7909 |
7910 | 7910 |
7911 | 7911 |
7912 #undef DECLARE_INSTRUCTION | 7912 #undef DECLARE_INSTRUCTION |
7913 #undef DECLARE_CONCRETE_INSTRUCTION | 7913 #undef DECLARE_CONCRETE_INSTRUCTION |
7914 | 7914 |
7915 } // namespace internal | 7915 } // namespace internal |
7916 } // namespace v8 | 7916 } // namespace v8 |
7917 | 7917 |
7918 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 7918 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |