| 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 | |
| 6542 private: | 6537 private: |
| 6543 int GetLineNumberWithArray(int code_pos); | 6538 int GetLineNumberWithArray(int code_pos); |
| 6544 | 6539 |
| 6545 // Bit positions in the flags field. | 6540 // Bit positions in the flags field. |
| 6546 static const int kCompilationTypeBit = 0; | 6541 static const int kCompilationTypeBit = 0; |
| 6547 static const int kCompilationStateBit = 1; | 6542 static const int kCompilationStateBit = 1; |
| 6548 static const int kOriginOptionsShift = 2; | 6543 static const int kOriginOptionsShift = 2; |
| 6549 static const int kOriginOptionsSize = 3; | 6544 static const int kOriginOptionsSize = 3; |
| 6550 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) | 6545 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) |
| 6551 << kOriginOptionsShift; | 6546 << kOriginOptionsShift; |
| (...skipping 4326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10878 } else { | 10873 } else { |
| 10879 value &= ~(1 << bit_position); | 10874 value &= ~(1 << bit_position); |
| 10880 } | 10875 } |
| 10881 return value; | 10876 return value; |
| 10882 } | 10877 } |
| 10883 }; | 10878 }; |
| 10884 | 10879 |
| 10885 } } // namespace v8::internal | 10880 } } // namespace v8::internal |
| 10886 | 10881 |
| 10887 #endif // V8_OBJECTS_H_ | 10882 #endif // V8_OBJECTS_H_ |
| OLD | NEW |