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

Side by Side Diff: src/macros.py

Issue 259883002: ES6: Add support for Map and Set Iterator (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code review changes Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String'); 119 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String');
120 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol'); 120 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol');
121 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean'); 121 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean');
122 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error'); 122 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error');
123 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script'); 123 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script');
124 macro IS_ARGUMENTS(arg) = (%_ClassOf(arg) === 'Arguments'); 124 macro IS_ARGUMENTS(arg) = (%_ClassOf(arg) === 'Arguments');
125 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global'); 125 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global');
126 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer'); 126 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer');
127 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView'); 127 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView');
128 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator'); 128 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator');
129 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator');
130 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator');
129 macro IS_UNDETECTABLE(arg) = (%_IsUndetectableObject(arg)); 131 macro IS_UNDETECTABLE(arg) = (%_IsUndetectableObject(arg));
130 macro FLOOR(arg) = $floor(arg); 132 macro FLOOR(arg) = $floor(arg);
131 133
132 # Macro for ECMAScript 5 queries of the type: 134 # Macro for ECMAScript 5 queries of the type:
133 # "Type(O) is object." 135 # "Type(O) is object."
134 # This is the same as being either a function or an object in V8 terminology 136 # This is the same as being either a function or an object in V8 terminology
135 # (including proxies). 137 # (including proxies).
136 # In addition, an undetectable object is also included by this. 138 # In addition, an undetectable object is also included by this.
137 macro IS_SPEC_OBJECT(arg) = (%_IsSpecObject(arg)); 139 macro IS_SPEC_OBJECT(arg) = (%_IsSpecObject(arg));
138 140
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 # Matches PropertyAttributes from property-details.h 278 # Matches PropertyAttributes from property-details.h
277 const PROPERTY_ATTRIBUTES_NONE = 0; 279 const PROPERTY_ATTRIBUTES_NONE = 0;
278 const PROPERTY_ATTRIBUTES_STRING = 8; 280 const PROPERTY_ATTRIBUTES_STRING = 8;
279 const PROPERTY_ATTRIBUTES_SYMBOLIC = 16; 281 const PROPERTY_ATTRIBUTES_SYMBOLIC = 16;
280 const PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL = 32; 282 const PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL = 32;
281 283
282 # Use for keys, values and entries iterators. 284 # Use for keys, values and entries iterators.
283 const ITERATOR_KIND_KEYS = 1; 285 const ITERATOR_KIND_KEYS = 1;
284 const ITERATOR_KIND_VALUES = 2; 286 const ITERATOR_KIND_VALUES = 2;
285 const ITERATOR_KIND_ENTRIES = 3; 287 const ITERATOR_KIND_ENTRIES = 3;
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698