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

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

Issue 1439003002: [builtins] Get rid of a few %_ClassOf uses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/js/harmony-simd.js ('k') | src/runtime/runtime.h » ('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 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set'); 104 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set');
105 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map'); 105 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map');
106 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); 106 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap');
107 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet'); 107 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet');
108 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number'); 108 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number');
109 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String'); 109 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String');
110 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol'); 110 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol');
111 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean'); 111 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean');
112 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error'); 112 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error');
113 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script'); 113 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script');
114 macro IS_ARGUMENTS(arg) = (%_ClassOf(arg) === 'Arguments');
115 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global'); 114 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global');
116 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer'); 115 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer');
117 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView'); 116 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView');
118 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer'); 117 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer');
119 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator'); 118 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator');
120 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator'); 119 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator');
121 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator'); 120 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator');
122 macro IS_STRONG(arg) = (%IsStrong(arg)); 121 macro IS_STRONG(arg) = (%IsStrong(arg));
123 122
124 # Macro for ECMAScript 5 queries of the type: 123 # Macro for ECMAScript 5 queries of the type:
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 define NOT_FOUND = -1; 312 define NOT_FOUND = -1;
314 313
315 # Check whether debug is active. 314 # Check whether debug is active.
316 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); 315 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0);
317 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function)); 316 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function));
318 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0) %DebugPrepareStepInIfStepping(function); 317 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0) %DebugPrepareStepInIfStepping(function);
319 318
320 # SharedFlag equivalents 319 # SharedFlag equivalents
321 define kNotShared = false; 320 define kNotShared = false;
322 define kShared = true; 321 define kShared = true;
OLDNEW
« no previous file with comments | « src/js/harmony-simd.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698