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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 # For the regexp capture override array. This has the same | 247 # For the regexp capture override array. This has the same |
248 # format as the arguments to a function called from | 248 # format as the arguments to a function called from |
249 # String.prototype.replace. | 249 # String.prototype.replace. |
250 macro OVERRIDE_MATCH(override) = ((override)[0]); | 250 macro OVERRIDE_MATCH(override) = ((override)[0]); |
251 macro OVERRIDE_POS(override) = ((override)[(override).length - 2]); | 251 macro OVERRIDE_POS(override) = ((override)[(override).length - 2]); |
252 macro OVERRIDE_SUBJECT(override) = ((override)[(override).length - 1]); | 252 macro OVERRIDE_SUBJECT(override) = ((override)[(override).length - 1]); |
253 # 1-based so index of 1 returns the first capture | 253 # 1-based so index of 1 returns the first capture |
254 macro OVERRIDE_CAPTURE(override, index) = ((override)[(index)]); | 254 macro OVERRIDE_CAPTURE(override, index) = ((override)[(index)]); |
255 | 255 |
256 # PropertyDescriptor return value indices - must match | 256 # PropertyDescriptor return value indices - must match |
257 # PropertyDescriptorIndices in runtime.cc. | 257 # PropertyDescriptorIndices in runtime-object.cc. |
258 const IS_ACCESSOR_INDEX = 0; | 258 const IS_ACCESSOR_INDEX = 0; |
259 const VALUE_INDEX = 1; | 259 const VALUE_INDEX = 1; |
260 const GETTER_INDEX = 2; | 260 const GETTER_INDEX = 2; |
261 const SETTER_INDEX = 3; | 261 const SETTER_INDEX = 3; |
262 const WRITABLE_INDEX = 4; | 262 const WRITABLE_INDEX = 4; |
263 const ENUMERABLE_INDEX = 5; | 263 const ENUMERABLE_INDEX = 5; |
264 const CONFIGURABLE_INDEX = 6; | 264 const CONFIGURABLE_INDEX = 6; |
265 | 265 |
266 # For messages.js | 266 # For messages.js |
267 # Matches Script::Type from objects.h | 267 # Matches Script::Type from objects.h |
(...skipping 15 matching lines...) Expand all Loading... |
283 const PROPERTY_ATTRIBUTES_SYMBOLIC = 16; | 283 const PROPERTY_ATTRIBUTES_SYMBOLIC = 16; |
284 const PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL = 32; | 284 const PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL = 32; |
285 | 285 |
286 # Use for keys, values and entries iterators. | 286 # Use for keys, values and entries iterators. |
287 const ITERATOR_KIND_KEYS = 1; | 287 const ITERATOR_KIND_KEYS = 1; |
288 const ITERATOR_KIND_VALUES = 2; | 288 const ITERATOR_KIND_VALUES = 2; |
289 const ITERATOR_KIND_ENTRIES = 3; | 289 const ITERATOR_KIND_ENTRIES = 3; |
290 | 290 |
291 # Check whether debug is active. | 291 # Check whether debug is active. |
292 const DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); | 292 const DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); |
OLD | NEW |