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

Side by Side Diff: src/objects.h

Issue 451643002: Clean up IC tracing for CallICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ic-inl.h ('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 "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 5860 matching lines...) Expand 10 before | Expand all | Expand 10 after
5871 5871
5872 static const int kFullCodeFlags = kOptimizableOffset + 1; 5872 static const int kFullCodeFlags = kOptimizableOffset + 1;
5873 class FullCodeFlagsHasDeoptimizationSupportField: 5873 class FullCodeFlagsHasDeoptimizationSupportField:
5874 public BitField<bool, 0, 1> {}; // NOLINT 5874 public BitField<bool, 0, 1> {}; // NOLINT
5875 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; 5875 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {};
5876 class FullCodeFlagsIsCompiledOptimizable: public BitField<bool, 2, 1> {}; 5876 class FullCodeFlagsIsCompiledOptimizable: public BitField<bool, 2, 1> {};
5877 5877
5878 static const int kProfilerTicksOffset = kFullCodeFlags + 1; 5878 static const int kProfilerTicksOffset = kFullCodeFlags + 1;
5879 5879
5880 // Flags layout. BitField<type, shift, size>. 5880 // Flags layout. BitField<type, shift, size>.
5881 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; 5881 class ICStateField : public BitField<InlineCacheState, 0, 4> {};
5882 class TypeField: public BitField<StubType, 3, 1> {}; 5882 class TypeField : public BitField<StubType, 4, 1> {};
5883 class CacheHolderField : public BitField<CacheHolderFlag, 4, 2> {}; 5883 class CacheHolderField : public BitField<CacheHolderFlag, 5, 2> {};
5884 class KindField: public BitField<Kind, 6, 4> {}; 5884 class KindField : public BitField<Kind, 7, 4> {};
5885 // TODO(bmeurer): Bit 10 is available for free use. :-)
5886 class ExtraICStateField: public BitField<ExtraICState, 11, 5885 class ExtraICStateField: public BitField<ExtraICState, 11,
5887 PlatformSmiTagging::kSmiValueSize - 11 + 1> {}; // NOLINT 5886 PlatformSmiTagging::kSmiValueSize - 11 + 1> {}; // NOLINT
5888 5887
5889 // KindSpecificFlags1 layout (STUB and OPTIMIZED_FUNCTION) 5888 // KindSpecificFlags1 layout (STUB and OPTIMIZED_FUNCTION)
5890 static const int kStackSlotsFirstBit = 0; 5889 static const int kStackSlotsFirstBit = 0;
5891 static const int kStackSlotsBitCount = 24; 5890 static const int kStackSlotsBitCount = 24;
5892 static const int kHasFunctionCacheBit = 5891 static const int kHasFunctionCacheBit =
5893 kStackSlotsFirstBit + kStackSlotsBitCount; 5892 kStackSlotsFirstBit + kStackSlotsBitCount;
5894 static const int kMarkedForDeoptimizationBit = kHasFunctionCacheBit + 1; 5893 static const int kMarkedForDeoptimizationBit = kHasFunctionCacheBit + 1;
5895 static const int kWeakStubBit = kMarkedForDeoptimizationBit + 1; 5894 static const int kWeakStubBit = kMarkedForDeoptimizationBit + 1;
(...skipping 5376 matching lines...) Expand 10 before | Expand all | Expand 10 after
11272 } else { 11271 } else {
11273 value &= ~(1 << bit_position); 11272 value &= ~(1 << bit_position);
11274 } 11273 }
11275 return value; 11274 return value;
11276 } 11275 }
11277 }; 11276 };
11278 11277
11279 } } // namespace v8::internal 11278 } } // namespace v8::internal
11280 11279
11281 #endif // V8_OBJECTS_H_ 11280 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ic-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698