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 6177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6188 | 6188 |
6189 static HObjectAccess ForJSArrayBufferViewByteLength() { | 6189 static HObjectAccess ForJSArrayBufferViewByteLength() { |
6190 return HObjectAccess::ForObservableJSObjectOffset( | 6190 return HObjectAccess::ForObservableJSObjectOffset( |
6191 JSArrayBufferView::kByteLengthOffset); | 6191 JSArrayBufferView::kByteLengthOffset); |
6192 } | 6192 } |
6193 | 6193 |
6194 static HObjectAccess ForJSGlobalObjectNativeContext() { | 6194 static HObjectAccess ForJSGlobalObjectNativeContext() { |
6195 return HObjectAccess(kInobject, JSGlobalObject::kNativeContextOffset); | 6195 return HObjectAccess(kInobject, JSGlobalObject::kNativeContextOffset); |
6196 } | 6196 } |
6197 | 6197 |
6198 static HObjectAccess ForJSRegExpFlags() { | |
6199 return HObjectAccess(kInobject, JSRegExp::kFlagsOffset); | |
6200 } | |
6201 | |
6202 static HObjectAccess ForJSRegExpSource() { | |
6203 return HObjectAccess(kInobject, JSRegExp::kSourceOffset); | |
6204 } | |
6205 | |
6206 static HObjectAccess ForJSCollectionTable() { | 6198 static HObjectAccess ForJSCollectionTable() { |
6207 return HObjectAccess::ForObservableJSObjectOffset( | 6199 return HObjectAccess::ForObservableJSObjectOffset( |
6208 JSCollection::kTableOffset); | 6200 JSCollection::kTableOffset); |
6209 } | 6201 } |
6210 | 6202 |
6211 template <typename CollectionType> | 6203 template <typename CollectionType> |
6212 static HObjectAccess ForOrderedHashTableNumberOfBuckets() { | 6204 static HObjectAccess ForOrderedHashTableNumberOfBuckets() { |
6213 return HObjectAccess(kInobject, CollectionType::kNumberOfBucketsOffset, | 6205 return HObjectAccess(kInobject, CollectionType::kNumberOfBucketsOffset, |
6214 Representation::Smi()); | 6206 Representation::Smi()); |
6215 } | 6207 } |
(...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7916 | 7908 |
7917 | 7909 |
7918 | 7910 |
7919 #undef DECLARE_INSTRUCTION | 7911 #undef DECLARE_INSTRUCTION |
7920 #undef DECLARE_CONCRETE_INSTRUCTION | 7912 #undef DECLARE_CONCRETE_INSTRUCTION |
7921 | 7913 |
7922 } // namespace internal | 7914 } // namespace internal |
7923 } // namespace v8 | 7915 } // namespace v8 |
7924 | 7916 |
7925 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 7917 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |