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

Side by Side Diff: src/types-inl.h

Issue 795713003: Steps towards unification of number bitset and range types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing review comments. Created 5 years, 11 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_TYPES_INL_H_ 5 #ifndef V8_TYPES_INL_H_
6 #define V8_TYPES_INL_H_ 6 #define V8_TYPES_INL_H_
7 7
8 #include "src/types.h" 8 #include "src/types.h"
9 9
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 // static 195 // static
196 template<class V> 196 template<class V>
197 void ZoneTypeConfig::struct_set_value( 197 void ZoneTypeConfig::struct_set_value(
198 Struct* structure, int i, i::Handle<V> x) { 198 Struct* structure, int i, i::Handle<V> x) {
199 DCHECK(0 <= i && i <= struct_length(structure)); 199 DCHECK(0 <= i && i <= struct_length(structure));
200 structure[2 + i] = x.location(); 200 structure[2 + i] = x.location();
201 } 201 }
202 202
203 203
204 // static
205 i::Isolate* ZoneTypeConfig::isolate(Zone* zone) { return zone->isolate(); }
206
204 // ----------------------------------------------------------------------------- 207 // -----------------------------------------------------------------------------
205 // HeapTypeConfig 208 // HeapTypeConfig
206 209
207 // static 210 // static
208 template<class T> 211 template<class T>
209 i::Handle<T> HeapTypeConfig::null_handle() { 212 i::Handle<T> HeapTypeConfig::null_handle() {
210 return i::Handle<T>(); 213 return i::Handle<T>();
211 } 214 }
212 215
213 216
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 344 }
342 345
343 346
344 // static 347 // static
345 template<class V> 348 template<class V>
346 void HeapTypeConfig::struct_set_value( 349 void HeapTypeConfig::struct_set_value(
347 i::Handle<Struct> structure, int i, i::Handle<V> x) { 350 i::Handle<Struct> structure, int i, i::Handle<V> x) {
348 structure->set(i + 1, *x); 351 structure->set(i + 1, *x);
349 } 352 }
350 353
354 // static
355 i::Isolate* HeapTypeConfig::isolate(Isolate* isolate) { return isolate; }
351 } } // namespace v8::internal 356 } } // namespace v8::internal
352 357
353 #endif // V8_TYPES_INL_H_ 358 #endif // V8_TYPES_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698