Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: src/objects.h

Issue 1155683010: Revert of Only record one in n line endings to save space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/messages.js ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698