OLD | NEW |
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 Loading... |
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 # Matches PropertyAttributes from property-details.h | 276 # Matches PropertyAttributes from property-details.h |
275 const PROPERTY_ATTRIBUTES_NONE = 0; | 277 const PROPERTY_ATTRIBUTES_NONE = 0; |
276 const PROPERTY_ATTRIBUTES_STRING = 8; | 278 const PROPERTY_ATTRIBUTES_STRING = 8; |
277 const PROPERTY_ATTRIBUTES_SYMBOLIC = 16; | 279 const PROPERTY_ATTRIBUTES_SYMBOLIC = 16; |
278 const PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL = 32; | 280 const PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL = 32; |
279 | 281 |
280 # Use for keys, values and entries iterators. | 282 # Use for keys, values and entries iterators. |
281 const ITERATOR_KIND_KEYS = 1; | 283 const ITERATOR_KIND_KEYS = 1; |
282 const ITERATOR_KIND_VALUES = 2; | 284 const ITERATOR_KIND_VALUES = 2; |
283 const ITERATOR_KIND_ENTRIES = 3; | 285 const ITERATOR_KIND_ENTRIES = 3; |
OLD | NEW |