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

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

Issue 1321663003: [Interpreter] Add support for loading literals from the constant pool. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_const_pool_1
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
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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698