OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 10535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10546 static const int kClassNameOffset = kInstanceTemplateOffset + kPointerSize; | 10546 static const int kClassNameOffset = kInstanceTemplateOffset + kPointerSize; |
10547 static const int kSignatureOffset = kClassNameOffset + kPointerSize; | 10547 static const int kSignatureOffset = kClassNameOffset + kPointerSize; |
10548 static const int kInstanceCallHandlerOffset = kSignatureOffset + kPointerSize; | 10548 static const int kInstanceCallHandlerOffset = kSignatureOffset + kPointerSize; |
10549 static const int kAccessCheckInfoOffset = | 10549 static const int kAccessCheckInfoOffset = |
10550 kInstanceCallHandlerOffset + kPointerSize; | 10550 kInstanceCallHandlerOffset + kPointerSize; |
10551 static const int kFlagOffset = kAccessCheckInfoOffset + kPointerSize; | 10551 static const int kFlagOffset = kAccessCheckInfoOffset + kPointerSize; |
10552 static const int kLengthOffset = kFlagOffset + kPointerSize; | 10552 static const int kLengthOffset = kFlagOffset + kPointerSize; |
10553 static const int kSize = kLengthOffset + kPointerSize; | 10553 static const int kSize = kLengthOffset + kPointerSize; |
10554 | 10554 |
10555 // Returns true if |object| is an instance of this function template. | 10555 // Returns true if |object| is an instance of this function template. |
10556 bool IsTemplateFor(JSObject* object); | 10556 inline bool IsTemplateFor(JSObject* object); |
10557 bool IsTemplateFor(Map* map); | 10557 bool IsTemplateFor(Map* map); |
10558 | 10558 |
10559 private: | 10559 private: |
10560 // Bit position in the flag, from least significant bit position. | 10560 // Bit position in the flag, from least significant bit position. |
10561 static const int kHiddenPrototypeBit = 0; | 10561 static const int kHiddenPrototypeBit = 0; |
10562 static const int kUndetectableBit = 1; | 10562 static const int kUndetectableBit = 1; |
10563 static const int kNeedsAccessCheckBit = 2; | 10563 static const int kNeedsAccessCheckBit = 2; |
10564 static const int kReadOnlyPrototypeBit = 3; | 10564 static const int kReadOnlyPrototypeBit = 3; |
10565 static const int kRemovePrototypeBit = 4; | 10565 static const int kRemovePrototypeBit = 4; |
10566 static const int kDoNotCacheBit = 5; | 10566 static const int kDoNotCacheBit = 5; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10811 } | 10811 } |
10812 return value; | 10812 return value; |
10813 } | 10813 } |
10814 }; | 10814 }; |
10815 | 10815 |
10816 | 10816 |
10817 } // NOLINT, false-positive due to second-order macros. | 10817 } // NOLINT, false-positive due to second-order macros. |
10818 } // NOLINT, false-positive due to second-order macros. | 10818 } // NOLINT, false-positive due to second-order macros. |
10819 | 10819 |
10820 #endif // V8_OBJECTS_H_ | 10820 #endif // V8_OBJECTS_H_ |
OLD | NEW |