| 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 7281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7292 | 7292 |
| 7293 public: | 7293 public: |
| 7294 // Constants for optimizing codegen for strict mode function and | 7294 // Constants for optimizing codegen for strict mode function and |
| 7295 // native tests when using integer-width instructions. | 7295 // native tests when using integer-width instructions. |
| 7296 static const int kStrictModeBit = | 7296 static const int kStrictModeBit = |
| 7297 kStrictModeFunction + kCompilerHintsSmiTagSize; | 7297 kStrictModeFunction + kCompilerHintsSmiTagSize; |
| 7298 static const int kNativeBit = kNative + kCompilerHintsSmiTagSize; | 7298 static const int kNativeBit = kNative + kCompilerHintsSmiTagSize; |
| 7299 static const int kHasDuplicateParametersBit = | 7299 static const int kHasDuplicateParametersBit = |
| 7300 kHasDuplicateParameters + kCompilerHintsSmiTagSize; | 7300 kHasDuplicateParameters + kCompilerHintsSmiTagSize; |
| 7301 | 7301 |
| 7302 static const int kIsArrowBit = kIsArrow + kCompilerHintsSmiTagSize; |
| 7303 static const int kIsGeneratorBit = kIsGenerator + kCompilerHintsSmiTagSize; |
| 7304 static const int kIsConciseMethodBit = |
| 7305 kIsConciseMethod + kCompilerHintsSmiTagSize; |
| 7306 static const int kIsAsyncFunctionBit = |
| 7307 kIsAsyncFunction + kCompilerHintsSmiTagSize; |
| 7308 |
| 7309 static const int kAccessorFunctionBits = |
| 7310 FunctionKind::kAccessorFunction |
| 7311 << (kFunctionKind + kCompilerHintsSmiTagSize); |
| 7302 static const int kClassConstructorBits = | 7312 static const int kClassConstructorBits = |
| 7303 FunctionKind::kClassConstructor | 7313 FunctionKind::kClassConstructor |
| 7304 << (kFunctionKind + kCompilerHintsSmiTagSize); | 7314 << (kFunctionKind + kCompilerHintsSmiTagSize); |
| 7305 | 7315 |
| 7306 // Constants for optimizing codegen for strict mode function and | 7316 // Constants for optimizing codegen for strict mode function and |
| 7307 // native tests. | 7317 // native tests. |
| 7308 // Allows to use byte-width instructions. | 7318 // Allows to use byte-width instructions. |
| 7309 static const int kStrictModeBitWithinByte = kStrictModeBit % kBitsPerByte; | 7319 static const int kStrictModeBitWithinByte = kStrictModeBit % kBitsPerByte; |
| 7310 static const int kNativeBitWithinByte = kNativeBit % kBitsPerByte; | 7320 static const int kNativeBitWithinByte = kNativeBit % kBitsPerByte; |
| 7311 static const int kHasDuplicateParametersBitWithinByte = | 7321 static const int kHasDuplicateParametersBitWithinByte = |
| (...skipping 3503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10815 } | 10825 } |
| 10816 return value; | 10826 return value; |
| 10817 } | 10827 } |
| 10818 }; | 10828 }; |
| 10819 | 10829 |
| 10820 | 10830 |
| 10821 } // NOLINT, false-positive due to second-order macros. | 10831 } // NOLINT, false-positive due to second-order macros. |
| 10822 } // NOLINT, false-positive due to second-order macros. | 10832 } // NOLINT, false-positive due to second-order macros. |
| 10823 | 10833 |
| 10824 #endif // V8_OBJECTS_H_ | 10834 #endif // V8_OBJECTS_H_ |
| OLD | NEW |