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

Side by Side Diff: src/objects.h

Issue 1137683003: Only record one in n line endings to save space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix false detection of exotic newlines 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
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
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_
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