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 5393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5404 static bool IsYoungSequence(Isolate* isolate, byte* sequence); | 5404 static bool IsYoungSequence(Isolate* isolate, byte* sequence); |
5405 bool IsOld(); | 5405 bool IsOld(); |
5406 Age GetAge(); | 5406 Age GetAge(); |
5407 // Gets the raw code age, including psuedo code-age values such as | 5407 // Gets the raw code age, including psuedo code-age values such as |
5408 // kNotExecutedCodeAge and kExecutedOnceCodeAge. | 5408 // kNotExecutedCodeAge and kExecutedOnceCodeAge. |
5409 Age GetRawAge(); | 5409 Age GetRawAge(); |
5410 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { | 5410 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { |
5411 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); | 5411 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); |
5412 } | 5412 } |
5413 | 5413 |
5414 void PrintDeoptLocation(FILE* out, int bailout_id); | 5414 void PrintDeoptLocation(FILE* out, Address pc); |
5415 bool CanDeoptAt(Address pc); | 5415 bool CanDeoptAt(Address pc); |
5416 | 5416 |
5417 #ifdef VERIFY_HEAP | 5417 #ifdef VERIFY_HEAP |
5418 void VerifyEmbeddedObjectsDependency(); | 5418 void VerifyEmbeddedObjectsDependency(); |
5419 #endif | 5419 #endif |
5420 | 5420 |
5421 #ifdef DEBUG | 5421 #ifdef DEBUG |
5422 enum VerifyMode { kNoContextSpecificPointers, kNoContextRetainingPointers }; | 5422 enum VerifyMode { kNoContextSpecificPointers, kNoContextRetainingPointers }; |
5423 void VerifyEmbeddedObjects(VerifyMode mode = kNoContextRetainingPointers); | 5423 void VerifyEmbeddedObjects(VerifyMode mode = kNoContextRetainingPointers); |
5424 #endif // DEBUG | 5424 #endif // DEBUG |
(...skipping 5581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11006 } else { | 11006 } else { |
11007 value &= ~(1 << bit_position); | 11007 value &= ~(1 << bit_position); |
11008 } | 11008 } |
11009 return value; | 11009 return value; |
11010 } | 11010 } |
11011 }; | 11011 }; |
11012 | 11012 |
11013 } } // namespace v8::internal | 11013 } } // namespace v8::internal |
11014 | 11014 |
11015 #endif // V8_OBJECTS_H_ | 11015 #endif // V8_OBJECTS_H_ |
OLD | NEW |