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

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

Issue 1371083003: [presubmit] Enable readability/namespace linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 2 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/icu_util.h ('k') | src/interface-descriptors.h » ('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_IDENTITY_MAP_H_ 5 #ifndef V8_IDENTITY_MAP_H_
6 #define V8_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 {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // as the identity, returning: 85 // as the identity, returning:
86 // found => a pointer to the storage location for the value 86 // found => a pointer to the storage location for the value
87 // not found => {nullptr} 87 // not found => {nullptr}
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 } // namespace internal
96 } // namespace v8::internal 96 } // namespace v8
97 97
98 #endif // V8_IDENTITY_MAP_H_ 98 #endif // V8_IDENTITY_MAP_H_
OLDNEW
« no previous file with comments | « src/icu_util.h ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698