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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 # For the regexp capture override array. This has the same | 168 # For the regexp capture override array. This has the same |
169 # format as the arguments to a function called from | 169 # format as the arguments to a function called from |
170 # String.prototype.replace. | 170 # String.prototype.replace. |
171 macro OVERRIDE_MATCH(override) = ((override)[0]); | 171 macro OVERRIDE_MATCH(override) = ((override)[0]); |
172 macro OVERRIDE_POS(override) = ((override)[(override).length - 2]); | 172 macro OVERRIDE_POS(override) = ((override)[(override).length - 2]); |
173 macro OVERRIDE_SUBJECT(override) = ((override)[(override).length - 1]); | 173 macro OVERRIDE_SUBJECT(override) = ((override)[(override).length - 1]); |
174 # 1-based so index of 1 returns the first capture | 174 # 1-based so index of 1 returns the first capture |
175 macro OVERRIDE_CAPTURE(override, index) = ((override)[(index)]); | 175 macro OVERRIDE_CAPTURE(override, index) = ((override)[(index)]); |
176 | 176 |
| 177 # PropertyDescriptor return value indices - must match |
| 178 # PropertyDescriptorIndices in runtime-object.cc. |
| 179 define IS_ACCESSOR_INDEX = 0; |
| 180 define VALUE_INDEX = 1; |
| 181 define GETTER_INDEX = 2; |
| 182 define SETTER_INDEX = 3; |
| 183 define WRITABLE_INDEX = 4; |
| 184 define ENUMERABLE_INDEX = 5; |
| 185 define CONFIGURABLE_INDEX = 6; |
| 186 |
177 # For messages.js | 187 # For messages.js |
178 # Matches Script::Type from objects.h | 188 # Matches Script::Type from objects.h |
179 define TYPE_NATIVE = 0; | 189 define TYPE_NATIVE = 0; |
180 define TYPE_EXTENSION = 1; | 190 define TYPE_EXTENSION = 1; |
181 define TYPE_NORMAL = 2; | 191 define TYPE_NORMAL = 2; |
182 | 192 |
183 # Matches Script::CompilationType from objects.h | 193 # Matches Script::CompilationType from objects.h |
184 define COMPILATION_TYPE_HOST = 0; | 194 define COMPILATION_TYPE_HOST = 0; |
185 define COMPILATION_TYPE_EVAL = 1; | 195 define COMPILATION_TYPE_EVAL = 1; |
186 define COMPILATION_TYPE_JSON = 2; | 196 define COMPILATION_TYPE_JSON = 2; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 define kNotShared = false; | 243 define kNotShared = false; |
234 define kShared = true; | 244 define kShared = true; |
235 | 245 |
236 # UseCounters from include/v8.h | 246 # UseCounters from include/v8.h |
237 define kUseAsm = 0; | 247 define kUseAsm = 0; |
238 define kBreakIterator = 1; | 248 define kBreakIterator = 1; |
239 define kLegacyConst = 2; | 249 define kLegacyConst = 2; |
240 define kMarkDequeOverflow = 3; | 250 define kMarkDequeOverflow = 3; |
241 define kStoreBufferOverflow = 4; | 251 define kStoreBufferOverflow = 4; |
242 define kSlotsBufferOverflow = 5; | 252 define kSlotsBufferOverflow = 5; |
| 253 define kObjectObserve = 6; |
243 define kForcedGC = 7; | 254 define kForcedGC = 7; |
244 define kSloppyMode = 8; | 255 define kSloppyMode = 8; |
245 define kStrictMode = 9; | 256 define kStrictMode = 9; |
246 define kRegExpPrototypeStickyGetter = 11; | 257 define kRegExpPrototypeStickyGetter = 11; |
247 define kRegExpPrototypeToString = 12; | 258 define kRegExpPrototypeToString = 12; |
248 define kRegExpPrototypeUnicodeGetter = 13; | 259 define kRegExpPrototypeUnicodeGetter = 13; |
249 define kIntlV8Parse = 14; | 260 define kIntlV8Parse = 14; |
250 define kIntlPattern = 15; | 261 define kIntlPattern = 15; |
251 define kIntlResolved = 16; | 262 define kIntlResolved = 16; |
252 define kPromiseChain = 17; | 263 define kPromiseChain = 17; |
253 define kPromiseAccept = 18; | 264 define kPromiseAccept = 18; |
254 define kPromiseDefer = 19; | 265 define kPromiseDefer = 19; |
255 define kHtmlCommentInExternalScript = 20; | 266 define kHtmlCommentInExternalScript = 20; |
256 define kHtmlComment = 21; | 267 define kHtmlComment = 21; |
257 define kSloppyModeBlockScopedFunctionRedefinition = 22; | 268 define kSloppyModeBlockScopedFunctionRedefinition = 22; |
258 define kForInInitializer = 23; | 269 define kForInInitializer = 23; |
259 define kArrayProtectorDirtied = 24; | 270 define kArrayProtectorDirtied = 24; |
260 define kArraySpeciesModified = 25; | 271 define kArraySpeciesModified = 25; |
261 define kArrayPrototypeConstructorModified = 26; | 272 define kArrayPrototypeConstructorModified = 26; |
262 define kArrayInstanceProtoModified = 27; | 273 define kArrayInstanceProtoModified = 27; |
263 define kArrayInstanceConstructorModified = 28; | 274 define kArrayInstanceConstructorModified = 28; |
264 define kLegacyFunctionDeclaration = 29; | 275 define kLegacyFunctionDeclaration = 29; |
265 define kRegExpPrototypeSourceGetter = 30; | 276 define kRegExpPrototypeSourceGetter = 30; |
266 define kRegExpPrototypeOldFlagGetter = 31; | 277 define kRegExpPrototypeOldFlagGetter = 31; |
OLD | NEW |