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

Side by Side Diff: src/types.cc

Issue 1957393004: Allow Turbofan optimization of Ignition generators (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
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 #include <iomanip> 5 #include <iomanip>
6 6
7 #include "src/types.h" 7 #include "src/types.h"
8 8
9 #include "src/handles-inl.h" 9 #include "src/handles-inl.h"
10 #include "src/ostreams.h" 10 #include "src/ostreams.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 case ODDBALL_TYPE: { 185 case ODDBALL_TYPE: {
186 Heap* heap = map->GetHeap(); 186 Heap* heap = map->GetHeap();
187 if (map == heap->undefined_map()) return kUndefined; 187 if (map == heap->undefined_map()) return kUndefined;
188 if (map == heap->null_map()) return kNull; 188 if (map == heap->null_map()) return kNull;
189 if (map == heap->boolean_map()) return kBoolean; 189 if (map == heap->boolean_map()) return kBoolean;
190 DCHECK(map == heap->the_hole_map() || 190 DCHECK(map == heap->the_hole_map() ||
191 map == heap->uninitialized_map() || 191 map == heap->uninitialized_map() ||
192 map == heap->no_interceptor_result_sentinel_map() || 192 map == heap->no_interceptor_result_sentinel_map() ||
193 map == heap->termination_exception_map() || 193 map == heap->termination_exception_map() ||
194 map == heap->arguments_marker_map() || 194 map == heap->arguments_marker_map() ||
195 map == heap->optimized_out_map()); 195 map == heap->optimized_out_map() ||
196 map == heap->stale_register_map());
196 return kInternal & kTaggedPointer; 197 return kInternal & kTaggedPointer;
197 } 198 }
198 case HEAP_NUMBER_TYPE: 199 case HEAP_NUMBER_TYPE:
199 return kNumber & kTaggedPointer; 200 return kNumber & kTaggedPointer;
200 case SIMD128_VALUE_TYPE: 201 case SIMD128_VALUE_TYPE:
201 return kSimd; 202 return kSimd;
202 case JS_OBJECT_TYPE: 203 case JS_OBJECT_TYPE:
203 case JS_GLOBAL_OBJECT_TYPE: 204 case JS_GLOBAL_OBJECT_TYPE:
204 case JS_GLOBAL_PROXY_TYPE: 205 case JS_GLOBAL_PROXY_TYPE:
205 case JS_API_OBJECT_TYPE: 206 case JS_API_OBJECT_TYPE:
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 #undef CONSTRUCT_SIMD_TYPE 1268 #undef CONSTRUCT_SIMD_TYPE
1268 1269
1269 // ----------------------------------------------------------------------------- 1270 // -----------------------------------------------------------------------------
1270 // Instantiations. 1271 // Instantiations.
1271 1272
1272 template class Type::Iterator<i::Map>; 1273 template class Type::Iterator<i::Map>;
1273 template class Type::Iterator<i::Object>; 1274 template class Type::Iterator<i::Object>;
1274 1275
1275 } // namespace internal 1276 } // namespace internal
1276 } // namespace v8 1277 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698