OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 MUST_USE_RESULT MaybeObject* CreateInternalizedString( | 1513 MUST_USE_RESULT MaybeObject* CreateInternalizedString( |
1514 const char* str, int length, int hash); | 1514 const char* str, int length, int hash); |
1515 MUST_USE_RESULT MaybeObject* CreateInternalizedString(String* str); | 1515 MUST_USE_RESULT MaybeObject* CreateInternalizedString(String* str); |
1516 | 1516 |
1517 // Write barrier support for address[offset] = o. | 1517 // Write barrier support for address[offset] = o. |
1518 INLINE(void RecordWrite(Address address, int offset)); | 1518 INLINE(void RecordWrite(Address address, int offset)); |
1519 | 1519 |
1520 // Write barrier support for address[start : start + len[ = o. | 1520 // Write barrier support for address[start : start + len[ = o. |
1521 INLINE(void RecordWrites(Address address, int start, int len)); | 1521 INLINE(void RecordWrites(Address address, int start, int len)); |
1522 | 1522 |
1523 // Given an address occupied by a live code object, return that object. | |
1524 Object* FindCodeObject(Address a); | |
1525 | |
1526 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; | 1523 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; |
1527 inline HeapState gc_state() { return gc_state_; } | 1524 inline HeapState gc_state() { return gc_state_; } |
1528 | 1525 |
1529 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } | 1526 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } |
1530 | 1527 |
1531 #ifdef DEBUG | 1528 #ifdef DEBUG |
1532 bool disallow_allocation_failure() { | 1529 bool disallow_allocation_failure() { |
1533 return disallow_allocation_failure_; | 1530 return disallow_allocation_failure_; |
1534 } | 1531 } |
1535 | 1532 |
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3094 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3091 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
3095 | 3092 |
3096 private: | 3093 private: |
3097 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3094 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3098 }; | 3095 }; |
3099 #endif // DEBUG | 3096 #endif // DEBUG |
3100 | 3097 |
3101 } } // namespace v8::internal | 3098 } } // namespace v8::internal |
3102 | 3099 |
3103 #endif // V8_HEAP_H_ | 3100 #endif // V8_HEAP_H_ |
OLD | NEW |