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 kAllowHtmlCommentsBit = 3; | 6564 static const int kOriginOptionsShift = 3; |
6565 static const int kOriginOptionsShift = 4; | 6565 static const int kOriginOptionsSize = 3; |
6566 static const int kOriginOptionsSize = 4; | |
6567 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) | 6566 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) |
6568 << kOriginOptionsShift; | 6567 << kOriginOptionsShift; |
6569 | 6568 |
6570 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); | 6569 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
6571 }; | 6570 }; |
6572 | 6571 |
6573 | 6572 |
6574 // List of builtin functions we want to identify to improve code | 6573 // List of builtin functions we want to identify to improve code |
6575 // generation. | 6574 // generation. |
6576 // | 6575 // |
(...skipping 4316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10893 } | 10892 } |
10894 return value; | 10893 return value; |
10895 } | 10894 } |
10896 }; | 10895 }; |
10897 | 10896 |
10898 | 10897 |
10899 } // NOLINT, false-positive due to second-order macros. | 10898 } // NOLINT, false-positive due to second-order macros. |
10900 } // NOLINT, false-positive due to second-order macros. | 10899 } // NOLINT, false-positive due to second-order macros. |
10901 | 10900 |
10902 #endif // V8_OBJECTS_H_ | 10901 #endif // V8_OBJECTS_H_ |
OLD | NEW |