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

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

Issue 1658123002: [intrinsics] Remove %_IsFunction inline intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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');
81 macro IS_OBJECT(arg) = (typeof(arg) === 'object'); 81 macro IS_OBJECT(arg) = (typeof(arg) === 'object');
82 macro IS_PROXY(arg) = (%_IsJSProxy(arg)); 82 macro IS_PROXY(arg) = (%_IsJSProxy(arg));
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 define kStrongMode = 10; 260 define kStrongMode = 10;
261 define kRegExpPrototypeStickyGetter = 11; 261 define kRegExpPrototypeStickyGetter = 11;
262 define kRegExpPrototypeToString = 12; 262 define kRegExpPrototypeToString = 12;
263 define kRegExpPrototypeUnicodeGetter = 13; 263 define kRegExpPrototypeUnicodeGetter = 13;
264 define kIntlV8Parse = 14; 264 define kIntlV8Parse = 14;
265 define kIntlPattern = 15; 265 define kIntlPattern = 15;
266 define kIntlResolved = 16; 266 define kIntlResolved = 16;
267 define kPromiseChain = 17; 267 define kPromiseChain = 17;
268 define kPromiseAccept = 18; 268 define kPromiseAccept = 18;
269 define kPromiseDefer = 19; 269 define kPromiseDefer = 19;
OLDNEW
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | test/mjsunit/constant-fold-control-instructions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698