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

Side by Side Diff: src/objects.h

Issue 1265663002: Assign more bits to safepoint table offset. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: change to 30 Created 5 years, 4 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 | « no previous file | no next file » | 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 5074 matching lines...) Expand 10 before | Expand all | Expand 10 after
5085 class CanHaveWeakObjectsField 5085 class CanHaveWeakObjectsField
5086 : public BitField<bool, kCanHaveWeakObjects, 1> {}; // NOLINT 5086 : public BitField<bool, kCanHaveWeakObjects, 1> {}; // NOLINT
5087 5087
5088 // KindSpecificFlags2 layout (ALL) 5088 // KindSpecificFlags2 layout (ALL)
5089 static const int kIsCrankshaftedBit = 0; 5089 static const int kIsCrankshaftedBit = 0;
5090 class IsCrankshaftedField: public BitField<bool, 5090 class IsCrankshaftedField: public BitField<bool,
5091 kIsCrankshaftedBit, 1> {}; // NOLINT 5091 kIsCrankshaftedBit, 1> {}; // NOLINT
5092 5092
5093 // KindSpecificFlags2 layout (STUB and OPTIMIZED_FUNCTION) 5093 // KindSpecificFlags2 layout (STUB and OPTIMIZED_FUNCTION)
5094 static const int kSafepointTableOffsetFirstBit = kIsCrankshaftedBit + 1; 5094 static const int kSafepointTableOffsetFirstBit = kIsCrankshaftedBit + 1;
5095 static const int kSafepointTableOffsetBitCount = 24; 5095 static const int kSafepointTableOffsetBitCount = 30;
5096 5096
5097 STATIC_ASSERT(kSafepointTableOffsetFirstBit + 5097 STATIC_ASSERT(kSafepointTableOffsetFirstBit +
5098 kSafepointTableOffsetBitCount <= 32); 5098 kSafepointTableOffsetBitCount <= 32);
5099 STATIC_ASSERT(1 + kSafepointTableOffsetBitCount <= 32); 5099 STATIC_ASSERT(1 + kSafepointTableOffsetBitCount <= 32);
5100 5100
5101 class SafepointTableOffsetField: public BitField<int, 5101 class SafepointTableOffsetField: public BitField<int,
5102 kSafepointTableOffsetFirstBit, 5102 kSafepointTableOffsetFirstBit,
5103 kSafepointTableOffsetBitCount> {}; // NOLINT 5103 kSafepointTableOffsetBitCount> {}; // NOLINT
5104 5104
5105 // KindSpecificFlags2 layout (FUNCTION) 5105 // KindSpecificFlags2 layout (FUNCTION)
(...skipping 5435 matching lines...) Expand 10 before | Expand all | Expand 10 after
10541 } else { 10541 } else {
10542 value &= ~(1 << bit_position); 10542 value &= ~(1 << bit_position);
10543 } 10543 }
10544 return value; 10544 return value;
10545 } 10545 }
10546 }; 10546 };
10547 10547
10548 } } // namespace v8::internal 10548 } } // namespace v8::internal
10549 10549
10550 #endif // V8_OBJECTS_H_ 10550 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698