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 6543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6554 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; | 6554 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; |
6555 static const int kSize = kSourceMappingUrlOffset + kPointerSize; | 6555 static const int kSize = kSourceMappingUrlOffset + kPointerSize; |
6556 | 6556 |
6557 private: | 6557 private: |
6558 int GetLineNumberWithArray(int code_pos); | 6558 int GetLineNumberWithArray(int code_pos); |
6559 | 6559 |
6560 // Bit positions in the flags field. | 6560 // Bit positions in the flags field. |
6561 static const int kCompilationTypeBit = 0; | 6561 static const int kCompilationTypeBit = 0; |
6562 static const int kCompilationStateBit = 1; | 6562 static const int kCompilationStateBit = 1; |
6563 static const int kHideSourceBit = 2; | 6563 static const int kHideSourceBit = 2; |
6564 static const int kOriginOptionsShift = 3; | 6564 static const int kAllowHtmlCommentsBit = 3; |
6565 static const int kOriginOptionsSize = 3; | 6565 static const int kOriginOptionsShift = 4; |
| 6566 static const int kOriginOptionsSize = 4; |
6566 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) | 6567 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) |
6567 << kOriginOptionsShift; | 6568 << kOriginOptionsShift; |
6568 | 6569 |
6569 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); | 6570 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
6570 }; | 6571 }; |
6571 | 6572 |
6572 | 6573 |
6573 // List of builtin functions we want to identify to improve code | 6574 // List of builtin functions we want to identify to improve code |
6574 // generation. | 6575 // generation. |
6575 // | 6576 // |
(...skipping 4316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10892 } | 10893 } |
10893 return value; | 10894 return value; |
10894 } | 10895 } |
10895 }; | 10896 }; |
10896 | 10897 |
10897 | 10898 |
10898 } // NOLINT, false-positive due to second-order macros. | 10899 } // NOLINT, false-positive due to second-order macros. |
10899 } // NOLINT, false-positive due to second-order macros. | 10900 } // NOLINT, false-positive due to second-order macros. |
10900 | 10901 |
10901 #endif // V8_OBJECTS_H_ | 10902 #endif // V8_OBJECTS_H_ |
OLD | NEW |