Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: src/macros.py

Issue 10105026: Version 3.10.3 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/jsregexp.cc ('k') | src/mark-compact.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 # Last input and last subject of regexp matches. 198 # Last input and last subject of regexp matches.
199 macro LAST_SUBJECT(array) = ((array)[1]); 199 macro LAST_SUBJECT(array) = ((array)[1]);
200 macro LAST_INPUT(array) = ((array)[2]); 200 macro LAST_INPUT(array) = ((array)[2]);
201 201
202 # REGEXP_FIRST_CAPTURE 202 # REGEXP_FIRST_CAPTURE
203 macro CAPTURE(index) = (3 + (index)); 203 macro CAPTURE(index) = (3 + (index));
204 const CAPTURE0 = 3; 204 const CAPTURE0 = 3;
205 const CAPTURE1 = 4; 205 const CAPTURE1 = 4;
206 206
207 # For the regexp capture override array. This has the same
208 # format as the arguments to a function called from
209 # String.prototype.replace.
210 macro OVERRIDE_MATCH(override) = ((override)[0]);
211 macro OVERRIDE_POS(override) = ((override)[(override).length - 2]);
212 macro OVERRIDE_SUBJECT(override) = ((override)[(override).length - 1]);
213 # 1-based so index of 1 returns the first capture
214 macro OVERRIDE_CAPTURE(override, index) = ((override)[(index)]);
215
207 # PropertyDescriptor return value indices - must match 216 # PropertyDescriptor return value indices - must match
208 # PropertyDescriptorIndices in runtime.cc. 217 # PropertyDescriptorIndices in runtime.cc.
209 const IS_ACCESSOR_INDEX = 0; 218 const IS_ACCESSOR_INDEX = 0;
210 const VALUE_INDEX = 1; 219 const VALUE_INDEX = 1;
211 const GETTER_INDEX = 2; 220 const GETTER_INDEX = 2;
212 const SETTER_INDEX = 3; 221 const SETTER_INDEX = 3;
213 const WRITABLE_INDEX = 4; 222 const WRITABLE_INDEX = 4;
214 const ENUMERABLE_INDEX = 5; 223 const ENUMERABLE_INDEX = 5;
215 const CONFIGURABLE_INDEX = 6; 224 const CONFIGURABLE_INDEX = 6;
216 225
217 # For messages.js 226 # For messages.js
218 # Matches Script::Type from objects.h 227 # Matches Script::Type from objects.h
219 const TYPE_NATIVE = 0; 228 const TYPE_NATIVE = 0;
220 const TYPE_EXTENSION = 1; 229 const TYPE_EXTENSION = 1;
221 const TYPE_NORMAL = 2; 230 const TYPE_NORMAL = 2;
222 231
223 # Matches Script::CompilationType from objects.h 232 # Matches Script::CompilationType from objects.h
224 const COMPILATION_TYPE_HOST = 0; 233 const COMPILATION_TYPE_HOST = 0;
225 const COMPILATION_TYPE_EVAL = 1; 234 const COMPILATION_TYPE_EVAL = 1;
226 const COMPILATION_TYPE_JSON = 2; 235 const COMPILATION_TYPE_JSON = 2;
227 236
228 # Matches Messages::kNoLineNumberInfo from v8.h 237 # Matches Messages::kNoLineNumberInfo from v8.h
229 const kNoLineNumberInfo = 0; 238 const kNoLineNumberInfo = 0;
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698