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

Side by Side Diff: src/objects.h

Issue 488993004: Move kGroupCount out of DependencyGroup enum. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make it static const int Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 "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
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 static const int kGroupCount = kAllocationSiteTransitionChangedGroup + 1;
Sven Panne 2014/08/25 13:18:30 One bright day we'll have constexpr... ;-)
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698