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

Side by Side Diff: src/macros.py

Issue 10184004: Fix some bugs in accessing details of the lastest regexp (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | « no previous file | src/runtime.cc » ('j') | src/runtime.cc » ('J')
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 macro UTC_MS(arg) = (%_DateField(arg, 18)); 189 macro UTC_MS(arg) = (%_DateField(arg, 18));
190 macro UTC_DAYS(arg) = (%_DateField(arg, 19)); 190 macro UTC_DAYS(arg) = (%_DateField(arg, 19));
191 macro UTC_TIME_IN_DAY(arg) = (%_DateField(arg, 20)); 191 macro UTC_TIME_IN_DAY(arg) = (%_DateField(arg, 20));
192 192
193 macro TIMEZONE_OFFSET(arg) = (%_DateField(arg, 21)); 193 macro TIMEZONE_OFFSET(arg) = (%_DateField(arg, 21));
194 194
195 macro SET_UTC_DATE_VALUE(arg, value) = (%DateSetValue(arg, value, 1)); 195 macro SET_UTC_DATE_VALUE(arg, value) = (%DateSetValue(arg, value, 1));
196 macro SET_LOCAL_DATE_VALUE(arg, value) = (%DateSetValue(arg, value, 0)); 196 macro SET_LOCAL_DATE_VALUE(arg, value) = (%DateSetValue(arg, value, 0));
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]);
ulan 2012/04/23 16:59:23 We can avoid duplication: macro LAST_SUBJECT(array
Erik Corry 2012/04/23 18:54:02 Done.
Erik Corry 2012/04/23 19:04:06 Spoke too soon. Our macro system is not advanced
200 const LAST_SUBJECT_INDEX = 1;
200 macro LAST_INPUT(array) = ((array)[2]); 201 macro LAST_INPUT(array) = ((array)[2]);
201 202
202 # REGEXP_FIRST_CAPTURE 203 # REGEXP_FIRST_CAPTURE
203 macro CAPTURE(index) = (3 + (index)); 204 macro CAPTURE(index) = (3 + (index));
204 const CAPTURE0 = 3; 205 const CAPTURE0 = 3;
205 const CAPTURE1 = 4; 206 const CAPTURE1 = 4;
206 207
207 # For the regexp capture override array. This has the same 208 # For the regexp capture override array. This has the same
208 # format as the arguments to a function called from 209 # format as the arguments to a function called from
209 # String.prototype.replace. 210 # String.prototype.replace.
(...skipping 19 matching lines...) Expand all
229 const TYPE_EXTENSION = 1; 230 const TYPE_EXTENSION = 1;
230 const TYPE_NORMAL = 2; 231 const TYPE_NORMAL = 2;
231 232
232 # Matches Script::CompilationType from objects.h 233 # Matches Script::CompilationType from objects.h
233 const COMPILATION_TYPE_HOST = 0; 234 const COMPILATION_TYPE_HOST = 0;
234 const COMPILATION_TYPE_EVAL = 1; 235 const COMPILATION_TYPE_EVAL = 1;
235 const COMPILATION_TYPE_JSON = 2; 236 const COMPILATION_TYPE_JSON = 2;
236 237
237 # Matches Messages::kNoLineNumberInfo from v8.h 238 # Matches Messages::kNoLineNumberInfo from v8.h
238 const kNoLineNumberInfo = 0; 239 const kNoLineNumberInfo = 0;
OLDNEW
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698