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

Side by Side Diff: src/macros.py

Issue 1136553006: Implement SharedArrayBuffer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merge master Created 5 years, 7 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
« no previous file with comments | « src/harmony-sharedarraybuffer.js ('k') | src/objects.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number'); 105 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number');
106 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String'); 106 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String');
107 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol'); 107 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol');
108 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean'); 108 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean');
109 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error'); 109 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error');
110 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script'); 110 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script');
111 macro IS_ARGUMENTS(arg) = (%_ClassOf(arg) === 'Arguments'); 111 macro IS_ARGUMENTS(arg) = (%_ClassOf(arg) === 'Arguments');
112 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global'); 112 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global');
113 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer'); 113 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer');
114 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView'); 114 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView');
115 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer');
115 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator'); 116 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator');
116 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator'); 117 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator');
117 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator'); 118 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator');
118 macro IS_UNDETECTABLE(arg) = (%_IsUndetectableObject(arg)); 119 macro IS_UNDETECTABLE(arg) = (%_IsUndetectableObject(arg));
119 macro IS_STRONG(arg) = (%IsStrong(arg)); 120 macro IS_STRONG(arg) = (%IsStrong(arg));
120 121
121 # Macro for ECMAScript 5 queries of the type: 122 # Macro for ECMAScript 5 queries of the type:
122 # "Type(O) is object." 123 # "Type(O) is object."
123 # This is the same as being either a function or an object in V8 terminology 124 # This is the same as being either a function or an object in V8 terminology
124 # (including proxies). 125 # (including proxies).
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 macro ORDERED_HASH_MAP_VALUE_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(tab le, ORDERED_HASH_MAP_ENTRY_TO_INDEX(entry, numBuckets) + 1)); 302 macro ORDERED_HASH_MAP_VALUE_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(tab le, ORDERED_HASH_MAP_ENTRY_TO_INDEX(entry, numBuckets) + 1));
302 macro ORDERED_HASH_MAP_CHAIN_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(tab le, ORDERED_HASH_MAP_ENTRY_TO_INDEX(entry, numBuckets) + 2)); 303 macro ORDERED_HASH_MAP_CHAIN_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(tab le, ORDERED_HASH_MAP_ENTRY_TO_INDEX(entry, numBuckets) + 2));
303 304
304 # Must match OrderedHashTable::kNotFound. 305 # Must match OrderedHashTable::kNotFound.
305 define NOT_FOUND = -1; 306 define NOT_FOUND = -1;
306 307
307 # Check whether debug is active. 308 # Check whether debug is active.
308 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); 309 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0);
309 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function)); 310 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function));
310 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function); 311 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function);
312
313 # SharedFlag equivalents
314 define kNotShared = false;
315 define kShared = true;
OLDNEW
« no previous file with comments | « src/harmony-sharedarraybuffer.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698