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

Side by Side Diff: src/types.cc

Issue 2080243003: Use instance type in Object.prototype.toString(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Delete empty line Created 4 years, 6 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 map == heap->stale_register_map());
197 return kInternal & kTaggedPointer; 197 return kInternal & kTaggedPointer;
198 } 198 }
199 case HEAP_NUMBER_TYPE: 199 case HEAP_NUMBER_TYPE:
200 return kNumber & kTaggedPointer; 200 return kNumber & kTaggedPointer;
201 case SIMD128_VALUE_TYPE: 201 case SIMD128_VALUE_TYPE:
202 return kSimd; 202 return kSimd;
203 case JS_OBJECT_TYPE: 203 case JS_OBJECT_TYPE:
204 case JS_ARGUMENTS_TYPE:
205 case JS_ERROR_TYPE:
204 case JS_GLOBAL_OBJECT_TYPE: 206 case JS_GLOBAL_OBJECT_TYPE:
205 case JS_GLOBAL_PROXY_TYPE: 207 case JS_GLOBAL_PROXY_TYPE:
206 case JS_API_OBJECT_TYPE: 208 case JS_API_OBJECT_TYPE:
207 case JS_SPECIAL_API_OBJECT_TYPE: 209 case JS_SPECIAL_API_OBJECT_TYPE:
208 if (map->is_undetectable()) return kOtherUndetectable; 210 if (map->is_undetectable()) return kOtherUndetectable;
209 return kOtherObject; 211 return kOtherObject;
210 case JS_VALUE_TYPE: 212 case JS_VALUE_TYPE:
211 case JS_MESSAGE_OBJECT_TYPE: 213 case JS_MESSAGE_OBJECT_TYPE:
212 case JS_DATE_TYPE: 214 case JS_DATE_TYPE:
213 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 215 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 #undef CONSTRUCT_SIMD_TYPE 1270 #undef CONSTRUCT_SIMD_TYPE
1269 1271
1270 // ----------------------------------------------------------------------------- 1272 // -----------------------------------------------------------------------------
1271 // Instantiations. 1273 // Instantiations.
1272 1274
1273 template class Type::Iterator<i::Map>; 1275 template class Type::Iterator<i::Map>;
1274 template class Type::Iterator<i::Object>; 1276 template class Type::Iterator<i::Object>;
1275 1277
1276 } // namespace internal 1278 } // namespace internal
1277 } // namespace v8 1279 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698