Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: src/identity-map.h

Issue 1320503004: [heap] Move IdentityMap data structure out of heap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/identity-map.cc ('k') | src/identity-map.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_IDENTITY_MAP_H_
6 #define V8_HEAP_IDENTITY_MAP_H_ 6 #define V8_IDENTITY_MAP_H_
7 7
8 #include "src/handles.h" 8 #include "src/handles.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 // Forward declarations. 13 // Forward declarations.
14 class Heap; 14 class Heap;
15 class Zone; 15 class Zone;
16 16
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 V* Find(Handle<Object> key) { return reinterpret_cast<V*>(FindEntry(key)); } 88 V* Find(Handle<Object> key) { return reinterpret_cast<V*>(FindEntry(key)); }
89 89
90 // Set the value for the given key. 90 // Set the value for the given key.
91 void Set(Handle<Object> key, V value) { 91 void Set(Handle<Object> key, V value) {
92 *(reinterpret_cast<V*>(GetEntry(key))) = value; 92 *(reinterpret_cast<V*>(GetEntry(key))) = value;
93 } 93 }
94 }; 94 };
95 } 95 }
96 } // namespace v8::internal 96 } // namespace v8::internal
97 97
98 #endif // V8_HEAP_IDENTITY_MAP_H_ 98 #endif // V8_IDENTITY_MAP_H_
OLDNEW
« no previous file with comments | « src/heap/identity-map.cc ('k') | src/identity-map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698