| 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 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 roots_[kEmptyScriptRootIndex] = script; | 1407 roots_[kEmptyScriptRootIndex] = script; |
| 1408 } | 1408 } |
| 1409 | 1409 |
| 1410 void public_set_store_buffer_top(Address* top) { | 1410 void public_set_store_buffer_top(Address* top) { |
| 1411 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); | 1411 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); |
| 1412 } | 1412 } |
| 1413 | 1413 |
| 1414 // Generated code can embed this address to get access to the roots. | 1414 // Generated code can embed this address to get access to the roots. |
| 1415 Object** roots_array_start() { return roots_; } | 1415 Object** roots_array_start() { return roots_; } |
| 1416 | 1416 |
| 1417 #ifdef DEBUG |
| 1418 bool IsInRootsArray(Object** handle) { |
| 1419 return roots_ <= handle && handle < roots_ + Heap::kStrongRootListLength; |
| 1420 } |
| 1421 #endif |
| 1422 |
| 1417 Address* store_buffer_top_address() { | 1423 Address* store_buffer_top_address() { |
| 1418 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); | 1424 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); |
| 1419 } | 1425 } |
| 1420 | 1426 |
| 1421 // Get address of native contexts list for serialization support. | 1427 // Get address of native contexts list for serialization support. |
| 1422 Object** native_contexts_list_address() { | 1428 Object** native_contexts_list_address() { |
| 1423 return &native_contexts_list_; | 1429 return &native_contexts_list_; |
| 1424 } | 1430 } |
| 1425 | 1431 |
| 1426 #ifdef VERIFY_HEAP | 1432 #ifdef VERIFY_HEAP |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3040 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3046 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3041 | 3047 |
| 3042 private: | 3048 private: |
| 3043 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3049 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3044 }; | 3050 }; |
| 3045 #endif // DEBUG | 3051 #endif // DEBUG |
| 3046 | 3052 |
| 3047 } } // namespace v8::internal | 3053 } } // namespace v8::internal |
| 3048 | 3054 |
| 3049 #endif // V8_HEAP_H_ | 3055 #endif // V8_HEAP_H_ |
| OLD | NEW |