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

Side by Side Diff: src/handles.h

Issue 256303007: Don't add code dependencies on transitioning stores eagerly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_HANDLES_H_ 5 #ifndef V8_HANDLES_H_
6 #define V8_HANDLES_H_ 6 #define V8_HANDLES_H_
7 7
8 #include "objects.h" 8 #include "objects.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 148 }
149 149
150 150
151 // Convenience wrapper. 151 // Convenience wrapper.
152 template<class T> 152 template<class T>
153 inline Handle<T> handle(T* t) { 153 inline Handle<T> handle(T* t) {
154 return Handle<T>(t, t->GetIsolate()); 154 return Handle<T>(t, t->GetIsolate());
155 } 155 }
156 156
157 157
158 // Key comparison function for Map handles.
159 inline bool operator<(const Handle<Map>& lhs, const Handle<Map>& rhs) {
160 // This is safe because maps don't move.
161 return *lhs < *rhs;
mvstanton 2014/05/02 06:34:16 Seems like I see MStarzinger cringe every time we
Benedikt Meurer 2014/05/02 06:39:15 Yeah... having some kind of ObjectTraits<T>::IsImm
162 }
163
164
158 class DeferredHandles; 165 class DeferredHandles;
159 class HandleScopeImplementer; 166 class HandleScopeImplementer;
160 167
161 168
162 // A stack-allocated class that governs a number of local handles. 169 // A stack-allocated class that governs a number of local handles.
163 // After a handle scope has been created, all local handles will be 170 // After a handle scope has been created, all local handles will be
164 // allocated within that handle scope until either the handle scope is 171 // allocated within that handle scope until either the handle scope is
165 // deleted or another handle scope is created. If there is already a 172 // deleted or another handle scope is created. If there is already a
166 // handle scope and a new one is created, all allocations will take 173 // handle scope and a new one is created, all allocations will take
167 // place in the new handle scope until it is deleted. After that, 174 // place in the new handle scope until it is deleted. After that,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 288
282 void Initialize() { 289 void Initialize() {
283 next = limit = NULL; 290 next = limit = NULL;
284 level = 0; 291 level = 0;
285 } 292 }
286 }; 293 };
287 294
288 } } // namespace v8::internal 295 } } // namespace v8::internal
289 296
290 #endif // V8_HANDLES_H_ 297 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698