Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_HEAP_IDENTITY_MAP_H_ | 5 #ifndef V8_HEAP_IDENTITY_MAP_H_ |
| 6 #define V8_HEAP_IDENTITY_MAP_H_ | 6 #define V8_HEAP_IDENTITY_MAP_H_ |
| 7 | 7 |
| 8 // Clients of this interface shouldn't depend on lots of heap internals. | |
| 9 // Do not include anything from src/heap here! | |
|
Michael Starzinger
2015/08/28 12:21:04
Likewise.
rmcilroy
2015/08/28 14:42:05
Done.
| |
| 8 #include "src/handles.h" | 10 #include "src/handles.h" |
| 9 | 11 |
| 10 namespace v8 { | 12 namespace v8 { |
| 11 namespace internal { | 13 namespace internal { |
| 12 | 14 |
| 13 // Forward declarations. | 15 // Forward declarations. |
| 14 class Heap; | 16 class Heap; |
| 15 class Zone; | 17 class Zone; |
| 16 | 18 |
| 17 // Base class of identity maps contains shared code for all template | 19 // Base class of identity maps contains shared code for all template |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 | 91 |
| 90 // Set the value for the given key. | 92 // Set the value for the given key. |
| 91 void Set(Handle<Object> key, V value) { | 93 void Set(Handle<Object> key, V value) { |
| 92 *(reinterpret_cast<V*>(GetEntry(key))) = value; | 94 *(reinterpret_cast<V*>(GetEntry(key))) = value; |
| 93 } | 95 } |
| 94 }; | 96 }; |
| 95 } | 97 } |
| 96 } // namespace v8::internal | 98 } // namespace v8::internal |
| 97 | 99 |
| 98 #endif // V8_HEAP_IDENTITY_MAP_H_ | 100 #endif // V8_HEAP_IDENTITY_MAP_H_ |
| OLD | NEW |