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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 define TYPE_NORMAL = 2; | 266 define TYPE_NORMAL = 2; |
267 | 267 |
268 # Matches Script::CompilationType from objects.h | 268 # Matches Script::CompilationType from objects.h |
269 define COMPILATION_TYPE_HOST = 0; | 269 define COMPILATION_TYPE_HOST = 0; |
270 define COMPILATION_TYPE_EVAL = 1; | 270 define COMPILATION_TYPE_EVAL = 1; |
271 define COMPILATION_TYPE_JSON = 2; | 271 define COMPILATION_TYPE_JSON = 2; |
272 | 272 |
273 # Matches Messages::kNoLineNumberInfo from v8.h | 273 # Matches Messages::kNoLineNumberInfo from v8.h |
274 define kNoLineNumberInfo = 0; | 274 define kNoLineNumberInfo = 0; |
275 | 275 |
276 # Deprecated, do not use. Will be replaced by PropertyFilter. | 276 # Must match PropertyFilter in property-details.h |
277 define PROPERTY_ATTRIBUTES_STRING = 8; | 277 define PROPERTY_FILTER_NONE = 0; |
278 define PROPERTY_ATTRIBUTES_SYMBOLIC = 16; | 278 define PROPERTY_FILTER_ONLY_ENUMERABLE = 2; |
279 define PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL = 32; | 279 define PROPERTY_FILTER_SKIP_STRINGS = 8; |
| 280 define PROPERTY_FILTER_SKIP_SYMBOLS = 16; |
280 | 281 |
281 # Use for keys, values and entries iterators. | 282 # Use for keys, values and entries iterators. |
282 define ITERATOR_KIND_KEYS = 1; | 283 define ITERATOR_KIND_KEYS = 1; |
283 define ITERATOR_KIND_VALUES = 2; | 284 define ITERATOR_KIND_VALUES = 2; |
284 define ITERATOR_KIND_ENTRIES = 3; | 285 define ITERATOR_KIND_ENTRIES = 3; |
285 | 286 |
286 macro FIXED_ARRAY_GET(array, index) = (%_FixedArrayGet(array, (index) | 0)); | 287 macro FIXED_ARRAY_GET(array, index) = (%_FixedArrayGet(array, (index) | 0)); |
287 macro FIXED_ARRAY_SET(array, index, value) = (%_FixedArraySet(array, (index) | 0
, value)); | 288 macro FIXED_ARRAY_SET(array, index, value) = (%_FixedArraySet(array, (index) | 0
, value)); |
288 # TODO(adamk): Find a more robust way to force Smi representation. | 289 # TODO(adamk): Find a more robust way to force Smi representation. |
289 macro FIXED_ARRAY_SET_SMI(array, index, value) = (FIXED_ARRAY_SET(array, index,
(value) | 0)); | 290 macro FIXED_ARRAY_SET_SMI(array, index, value) = (FIXED_ARRAY_SET(array, index,
(value) | 0)); |
(...skipping 20 matching lines...) Expand all Loading... |
310 # Must match OrderedHashTable::kNotFound. | 311 # Must match OrderedHashTable::kNotFound. |
311 define NOT_FOUND = -1; | 312 define NOT_FOUND = -1; |
312 | 313 |
313 # Check whether debug is active. | 314 # Check whether debug is active. |
314 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); | 315 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); |
315 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0)
%DebugPrepareStepInIfStepping(function); | 316 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0)
%DebugPrepareStepInIfStepping(function); |
316 | 317 |
317 # SharedFlag equivalents | 318 # SharedFlag equivalents |
318 define kNotShared = false; | 319 define kNotShared = false; |
319 define kShared = true; | 320 define kShared = true; |
OLD | NEW |