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 | |
187 # For messages.js | 177 # For messages.js |
188 # Matches Script::Type from objects.h | 178 # Matches Script::Type from objects.h |
189 define TYPE_NATIVE = 0; | 179 define TYPE_NATIVE = 0; |
190 define TYPE_EXTENSION = 1; | 180 define TYPE_EXTENSION = 1; |
191 define TYPE_NORMAL = 2; | 181 define TYPE_NORMAL = 2; |
192 | 182 |
193 # Matches Script::CompilationType from objects.h | 183 # Matches Script::CompilationType from objects.h |
194 define COMPILATION_TYPE_HOST = 0; | 184 define COMPILATION_TYPE_HOST = 0; |
195 define COMPILATION_TYPE_EVAL = 1; | 185 define COMPILATION_TYPE_EVAL = 1; |
196 define COMPILATION_TYPE_JSON = 2; | 186 define COMPILATION_TYPE_JSON = 2; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 define kNotShared = false; | 233 define kNotShared = false; |
244 define kShared = true; | 234 define kShared = true; |
245 | 235 |
246 # UseCounters from include/v8.h | 236 # UseCounters from include/v8.h |
247 define kUseAsm = 0; | 237 define kUseAsm = 0; |
248 define kBreakIterator = 1; | 238 define kBreakIterator = 1; |
249 define kLegacyConst = 2; | 239 define kLegacyConst = 2; |
250 define kMarkDequeOverflow = 3; | 240 define kMarkDequeOverflow = 3; |
251 define kStoreBufferOverflow = 4; | 241 define kStoreBufferOverflow = 4; |
252 define kSlotsBufferOverflow = 5; | 242 define kSlotsBufferOverflow = 5; |
253 define kObjectObserve = 6; | |
254 define kForcedGC = 7; | 243 define kForcedGC = 7; |
255 define kSloppyMode = 8; | 244 define kSloppyMode = 8; |
256 define kStrictMode = 9; | 245 define kStrictMode = 9; |
257 define kRegExpPrototypeStickyGetter = 11; | 246 define kRegExpPrototypeStickyGetter = 11; |
258 define kRegExpPrototypeToString = 12; | 247 define kRegExpPrototypeToString = 12; |
259 define kRegExpPrototypeUnicodeGetter = 13; | 248 define kRegExpPrototypeUnicodeGetter = 13; |
260 define kIntlV8Parse = 14; | 249 define kIntlV8Parse = 14; |
261 define kIntlPattern = 15; | 250 define kIntlPattern = 15; |
262 define kIntlResolved = 16; | 251 define kIntlResolved = 16; |
263 define kPromiseChain = 17; | 252 define kPromiseChain = 17; |
264 define kPromiseAccept = 18; | 253 define kPromiseAccept = 18; |
265 define kPromiseDefer = 19; | 254 define kPromiseDefer = 19; |
266 define kHtmlCommentInExternalScript = 20; | 255 define kHtmlCommentInExternalScript = 20; |
267 define kHtmlComment = 21; | 256 define kHtmlComment = 21; |
268 define kSloppyModeBlockScopedFunctionRedefinition = 22; | 257 define kSloppyModeBlockScopedFunctionRedefinition = 22; |
269 define kForInInitializer = 23; | 258 define kForInInitializer = 23; |
270 define kArrayProtectorDirtied = 24; | 259 define kArrayProtectorDirtied = 24; |
271 define kArraySpeciesModified = 25; | 260 define kArraySpeciesModified = 25; |
272 define kArrayPrototypeConstructorModified = 26; | 261 define kArrayPrototypeConstructorModified = 26; |
273 define kArrayInstanceProtoModified = 27; | 262 define kArrayInstanceProtoModified = 27; |
274 define kArrayInstanceConstructorModified = 28; | 263 define kArrayInstanceConstructorModified = 28; |
275 define kLegacyFunctionDeclaration = 29; | 264 define kLegacyFunctionDeclaration = 29; |
276 define kRegExpPrototypeSourceGetter = 30; | 265 define kRegExpPrototypeSourceGetter = 30; |
277 define kRegExpPrototypeOldFlagGetter = 31; | 266 define kRegExpPrototypeOldFlagGetter = 31; |
OLD | NEW |