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_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/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 6516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6527 static const int kIdOffset = kLineEndsOffset + kPointerSize; | 6527 static const int kIdOffset = kLineEndsOffset + kPointerSize; |
6528 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; | 6528 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; |
6529 static const int kEvalFrominstructionsOffsetOffset = | 6529 static const int kEvalFrominstructionsOffsetOffset = |
6530 kEvalFromSharedOffset + kPointerSize; | 6530 kEvalFromSharedOffset + kPointerSize; |
6531 static const int kFlagsOffset = | 6531 static const int kFlagsOffset = |
6532 kEvalFrominstructionsOffsetOffset + kPointerSize; | 6532 kEvalFrominstructionsOffsetOffset + kPointerSize; |
6533 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize; | 6533 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize; |
6534 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; | 6534 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; |
6535 static const int kSize = kSourceMappingUrlOffset + kPointerSize; | 6535 static const int kSize = kSourceMappingUrlOffset + kPointerSize; |
6536 | 6536 |
| 6537 // Sync with constants in macros.py. |
| 6538 static const int kReductionIndex = 0; |
| 6539 static const int kNumberOfLinesIndex = 1; |
| 6540 static const int kFirstLineEndIndex = 2; |
| 6541 |
6537 private: | 6542 private: |
6538 int GetLineNumberWithArray(int code_pos); | 6543 int GetLineNumberWithArray(int code_pos); |
6539 | 6544 |
6540 // Bit positions in the flags field. | 6545 // Bit positions in the flags field. |
6541 static const int kCompilationTypeBit = 0; | 6546 static const int kCompilationTypeBit = 0; |
6542 static const int kCompilationStateBit = 1; | 6547 static const int kCompilationStateBit = 1; |
6543 static const int kOriginOptionsShift = 2; | 6548 static const int kOriginOptionsShift = 2; |
6544 static const int kOriginOptionsSize = 3; | 6549 static const int kOriginOptionsSize = 3; |
6545 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) | 6550 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) |
6546 << kOriginOptionsShift; | 6551 << kOriginOptionsShift; |
(...skipping 4326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10873 } else { | 10878 } else { |
10874 value &= ~(1 << bit_position); | 10879 value &= ~(1 << bit_position); |
10875 } | 10880 } |
10876 return value; | 10881 return value; |
10877 } | 10882 } |
10878 }; | 10883 }; |
10879 | 10884 |
10880 } } // namespace v8::internal | 10885 } } // namespace v8::internal |
10881 | 10886 |
10882 #endif // V8_OBJECTS_H_ | 10887 #endif // V8_OBJECTS_H_ |
OLD | NEW |