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

Side by Side Diff: src/js/macros.py

Issue 1699133002: [intrinsics] Remove the %_IsDate intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BooleanConstructor
Patch Set: Created 4 years, 10 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 2006-2009 the V8 project authors. All rights reserved. 1 # Copyright 2006-2009 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 # Type query macros. 60 # Type query macros.
61 # 61 #
62 # Note: We have special support for typeof(foo) === 'bar' in the compiler. 62 # Note: We have special support for typeof(foo) === 'bar' in the compiler.
63 # It will *not* generate a runtime typeof call for the most important 63 # It will *not* generate a runtime typeof call for the most important
64 # values of 'bar'. 64 # values of 'bar'.
65 macro IS_ARRAY(arg) = (%_IsArray(arg)); 65 macro IS_ARRAY(arg) = (%_IsArray(arg));
66 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer'); 66 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer');
67 macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean'); 67 macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean');
68 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean'); 68 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean');
69 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView'); 69 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView');
70 macro IS_DATE(arg) = (%_IsDate(arg)); 70 macro IS_DATE(arg) = (%IsDate(arg));
71 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error'); 71 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error');
72 macro IS_FUNCTION(arg) = (%IsFunction(arg)); 72 macro IS_FUNCTION(arg) = (%IsFunction(arg));
73 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator'); 73 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator');
74 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global'); 74 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global');
75 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map'); 75 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map');
76 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator'); 76 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator');
77 macro IS_NULL(arg) = (arg === null); 77 macro IS_NULL(arg) = (arg === null);
78 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null); 78 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null);
79 macro IS_NUMBER(arg) = (typeof(arg) === 'number'); 79 macro IS_NUMBER(arg) = (typeof(arg) === 'number');
80 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number'); 80 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number');
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 define kStrongMode = 10; 258 define kStrongMode = 10;
259 define kRegExpPrototypeStickyGetter = 11; 259 define kRegExpPrototypeStickyGetter = 11;
260 define kRegExpPrototypeToString = 12; 260 define kRegExpPrototypeToString = 12;
261 define kRegExpPrototypeUnicodeGetter = 13; 261 define kRegExpPrototypeUnicodeGetter = 13;
262 define kIntlV8Parse = 14; 262 define kIntlV8Parse = 14;
263 define kIntlPattern = 15; 263 define kIntlPattern = 15;
264 define kIntlResolved = 16; 264 define kIntlResolved = 16;
265 define kPromiseChain = 17; 265 define kPromiseChain = 17;
266 define kPromiseAccept = 18; 266 define kPromiseAccept = 18;
267 define kPromiseDefer = 19; 267 define kPromiseDefer = 19;
OLDNEW
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698