| 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 <iosfwd> | 8 #include <iosfwd> | 
| 9 | 9 | 
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" | 
| (...skipping 5362 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5373   } | 5373   } | 
| 5374 | 5374 | 
| 5375   static inline bool IsWeakObjectInOptimizedCode(Object* object); | 5375   static inline bool IsWeakObjectInOptimizedCode(Object* object); | 
| 5376   static inline bool IsWeakObjectInIC(Object* object); | 5376   static inline bool IsWeakObjectInIC(Object* object); | 
| 5377 | 5377 | 
| 5378   // Max loop nesting marker used to postpose OSR. We don't take loop | 5378   // Max loop nesting marker used to postpose OSR. We don't take loop | 
| 5379   // nesting that is deeper than 5 levels into account. | 5379   // nesting that is deeper than 5 levels into account. | 
| 5380   static const int kMaxLoopNestingMarker = 6; | 5380   static const int kMaxLoopNestingMarker = 6; | 
| 5381 | 5381 | 
| 5382   // Layout description. | 5382   // Layout description. | 
| 5383   static const int kInstructionSizeOffset = HeapObject::kHeaderSize; | 5383   static const int kRelocationInfoOffset = HeapObject::kHeaderSize; | 
| 5384   static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize; |  | 
| 5385   static const int kHandlerTableOffset = kRelocationInfoOffset + kPointerSize; | 5384   static const int kHandlerTableOffset = kRelocationInfoOffset + kPointerSize; | 
| 5386   static const int kDeoptimizationDataOffset = | 5385   static const int kDeoptimizationDataOffset = | 
| 5387       kHandlerTableOffset + kPointerSize; | 5386       kHandlerTableOffset + kPointerSize; | 
| 5388   // For FUNCTION kind, we store the type feedback info here. | 5387   // For FUNCTION kind, we store the type feedback info here. | 
| 5389   static const int kTypeFeedbackInfoOffset = | 5388   static const int kTypeFeedbackInfoOffset = | 
| 5390       kDeoptimizationDataOffset + kPointerSize; | 5389       kDeoptimizationDataOffset + kPointerSize; | 
| 5391   static const int kNextCodeLinkOffset = kTypeFeedbackInfoOffset + kPointerSize; | 5390   static const int kNextCodeLinkOffset = kTypeFeedbackInfoOffset + kPointerSize; | 
| 5392   static const int kGCMetadataOffset = kNextCodeLinkOffset + kPointerSize; | 5391   static const int kGCMetadataOffset = kNextCodeLinkOffset + kPointerSize; | 
| 5393   static const int kICAgeOffset = | 5392   static const int kInstructionSizeOffset = kGCMetadataOffset + kPointerSize; | 
| 5394       kGCMetadataOffset + kPointerSize; | 5393   static const int kICAgeOffset = kInstructionSizeOffset + kIntSize; | 
| 5395   static const int kFlagsOffset = kICAgeOffset + kIntSize; | 5394   static const int kFlagsOffset = kICAgeOffset + kIntSize; | 
| 5396   static const int kKindSpecificFlags1Offset = kFlagsOffset + kIntSize; | 5395   static const int kKindSpecificFlags1Offset = kFlagsOffset + kIntSize; | 
| 5397   static const int kKindSpecificFlags2Offset = | 5396   static const int kKindSpecificFlags2Offset = | 
| 5398       kKindSpecificFlags1Offset + kIntSize; | 5397       kKindSpecificFlags1Offset + kIntSize; | 
| 5399   // Note: We might be able to squeeze this into the flags above. | 5398   // Note: We might be able to squeeze this into the flags above. | 
| 5400   static const int kPrologueOffset = kKindSpecificFlags2Offset + kIntSize; | 5399   static const int kPrologueOffset = kKindSpecificFlags2Offset + kIntSize; | 
| 5401   static const int kConstantPoolOffset = kPrologueOffset + kPointerSize; | 5400   static const int kConstantPoolOffset = kPrologueOffset + kPointerSize; | 
| 5402 | 5401 | 
| 5403   static const int kHeaderPaddingStart = kConstantPoolOffset + kPointerSize; | 5402   static const int kHeaderPaddingStart = kConstantPoolOffset + kPointerSize; | 
| 5404 | 5403 | 
| (...skipping 5504 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 10909     } else { | 10908     } else { | 
| 10910       value &= ~(1 << bit_position); | 10909       value &= ~(1 << bit_position); | 
| 10911     } | 10910     } | 
| 10912     return value; | 10911     return value; | 
| 10913   } | 10912   } | 
| 10914 }; | 10913 }; | 
| 10915 | 10914 | 
| 10916 } }  // namespace v8::internal | 10915 } }  // namespace v8::internal | 
| 10917 | 10916 | 
| 10918 #endif  // V8_OBJECTS_H_ | 10917 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|