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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
(...skipping 5938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5949 // by this map. | 5949 // by this map. |
5950 kFieldTypeGroup, | 5950 kFieldTypeGroup, |
5951 // Group of code that omit run-time type checks for initial maps of | 5951 // Group of code that omit run-time type checks for initial maps of |
5952 // constructors. | 5952 // constructors. |
5953 kInitialMapChangedGroup, | 5953 kInitialMapChangedGroup, |
5954 // Group of code that depends on tenuring information in AllocationSites | 5954 // Group of code that depends on tenuring information in AllocationSites |
5955 // not being changed. | 5955 // not being changed. |
5956 kAllocationSiteTenuringChangedGroup, | 5956 kAllocationSiteTenuringChangedGroup, |
5957 // Group of code that depends on element transition information in | 5957 // Group of code that depends on element transition information in |
5958 // AllocationSites not being changed. | 5958 // AllocationSites not being changed. |
5959 kAllocationSiteTransitionChangedGroup, | 5959 kAllocationSiteTransitionChangedGroup |
5960 kGroupCount = kAllocationSiteTransitionChangedGroup + 1 | |
5961 }; | 5960 }; |
5962 | 5961 |
5962 enum { kGroupCount = kAllocationSiteTransitionChangedGroup + 1 }; | |
Yang
2014/08/25 12:12:43
does this have to be an enum though? Can it be sim
Vyacheslav Egorov (Google)
2014/08/25 12:16:51
Fixed.
(I became accustomed to declaring constant
| |
5963 | |
5963 // Array for holding the index of the first code object of each group. | 5964 // Array for holding the index of the first code object of each group. |
5964 // The last element stores the total number of code objects. | 5965 // The last element stores the total number of code objects. |
5965 class GroupStartIndexes { | 5966 class GroupStartIndexes { |
5966 public: | 5967 public: |
5967 explicit GroupStartIndexes(DependentCode* entries); | 5968 explicit GroupStartIndexes(DependentCode* entries); |
5968 void Recompute(DependentCode* entries); | 5969 void Recompute(DependentCode* entries); |
5969 int at(int i) { return start_indexes_[i]; } | 5970 int at(int i) { return start_indexes_[i]; } |
5970 int number_of_entries() { return start_indexes_[kGroupCount]; } | 5971 int number_of_entries() { return start_indexes_[kGroupCount]; } |
5971 private: | 5972 private: |
5972 int start_indexes_[kGroupCount + 1]; | 5973 int start_indexes_[kGroupCount + 1]; |
(...skipping 5241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11214 } else { | 11215 } else { |
11215 value &= ~(1 << bit_position); | 11216 value &= ~(1 << bit_position); |
11216 } | 11217 } |
11217 return value; | 11218 return value; |
11218 } | 11219 } |
11219 }; | 11220 }; |
11220 | 11221 |
11221 } } // namespace v8::internal | 11222 } } // namespace v8::internal |
11222 | 11223 |
11223 #endif // V8_OBJECTS_H_ | 11224 #endif // V8_OBJECTS_H_ |
OLD | NEW |