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

Side by Side Diff: src/types.cc

Issue 1496503002: [runtime] [proxy] removing JSFunctionProxy and related code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing merge artifacts Created 5 years 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/runtime/runtime-proxy.cc ('k') | src/x64/builtins-x64.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 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/ostreams.h" 9 #include "src/ostreams.h"
10 #include "src/types-inl.h" 10 #include "src/types-inl.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 case JS_WEAK_SET_TYPE: 246 case JS_WEAK_SET_TYPE:
247 case JS_PROMISE_TYPE: 247 case JS_PROMISE_TYPE:
248 if (map->is_undetectable()) return kUndetectable; 248 if (map->is_undetectable()) return kUndetectable;
249 return kOtherObject; 249 return kOtherObject;
250 case JS_FUNCTION_TYPE: 250 case JS_FUNCTION_TYPE:
251 if (map->is_undetectable()) return kUndetectable; 251 if (map->is_undetectable()) return kUndetectable;
252 return kFunction; 252 return kFunction;
253 case JS_REGEXP_TYPE: 253 case JS_REGEXP_TYPE:
254 return kOtherObject; // TODO(rossberg): there should be a RegExp type. 254 return kOtherObject; // TODO(rossberg): there should be a RegExp type.
255 case JS_PROXY_TYPE: 255 case JS_PROXY_TYPE:
256 case JS_FUNCTION_PROXY_TYPE:
257 return kProxy; 256 return kProxy;
258 case MAP_TYPE: 257 case MAP_TYPE:
259 // When compiling stub templates, the meta map is used as a place holder 258 // When compiling stub templates, the meta map is used as a place holder
260 // for the actual map with which the template is later instantiated. 259 // for the actual map with which the template is later instantiated.
261 // We treat it as a kind of type variable whose upper bound is Any. 260 // We treat it as a kind of type variable whose upper bound is Any.
262 // TODO(rossberg): for caching of CompareNilIC stubs to work correctly, 261 // TODO(rossberg): for caching of CompareNilIC stubs to work correctly,
263 // we must exclude Undetectable here. This makes no sense, really, 262 // we must exclude Undetectable here. This makes no sense, really,
264 // because it means that the template isn't actually parametric. 263 // because it means that the template isn't actually parametric.
265 // Also, it doesn't apply elsewhere. 8-( 264 // Also, it doesn't apply elsewhere. 8-(
266 // We ought to find a cleaner solution for compiling stubs parameterised 265 // We ought to find a cleaner solution for compiling stubs parameterised
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 1396
1398 template TypeImpl<ZoneTypeConfig>::TypeHandle 1397 template TypeImpl<ZoneTypeConfig>::TypeHandle
1399 TypeImpl<ZoneTypeConfig>::Convert<HeapType>( 1398 TypeImpl<ZoneTypeConfig>::Convert<HeapType>(
1400 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*); 1399 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*);
1401 template TypeImpl<HeapTypeConfig>::TypeHandle 1400 template TypeImpl<HeapTypeConfig>::TypeHandle
1402 TypeImpl<HeapTypeConfig>::Convert<Type>( 1401 TypeImpl<HeapTypeConfig>::Convert<Type>(
1403 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*); 1402 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*);
1404 1403
1405 } // namespace internal 1404 } // namespace internal
1406 } // namespace v8 1405 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-proxy.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698