| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 define REGEXP_NUMBER_OF_CAPTURES = 0; | 178 define REGEXP_NUMBER_OF_CAPTURES = 0; |
| 179 define REGEXP_FIRST_CAPTURE = 3; | 179 define REGEXP_FIRST_CAPTURE = 3; |
| 180 | 180 |
| 181 # Constants and macros for internal slot access. | 181 # Constants and macros for internal slot access. |
| 182 define REGEXP_GLOBAL_MASK = 1; | 182 define REGEXP_GLOBAL_MASK = 1; |
| 183 define REGEXP_IGNORE_CASE_MASK = 2; | 183 define REGEXP_IGNORE_CASE_MASK = 2; |
| 184 define REGEXP_MULTILINE_MASK = 4; | 184 define REGEXP_MULTILINE_MASK = 4; |
| 185 define REGEXP_STICKY_MASK = 8; | 185 define REGEXP_STICKY_MASK = 8; |
| 186 define REGEXP_UNICODE_MASK = 16; | 186 define REGEXP_UNICODE_MASK = 16; |
| 187 | 187 |
| 188 macro REGEXP_GLOBAL(regexp) = (%_RegExpFlags(regexp) & REGEXP_GLOBAL_MASK); | 188 macro REGEXP_GLOBAL(regexp) = (regexp[regExpFlagsSymbol] & REGEXP_GLOBAL_MASK); |
| 189 macro REGEXP_IGNORE_CASE(regexp) = (%_RegExpFlags(regexp) & REGEXP_IGNORE_CASE_M
ASK); | 189 macro REGEXP_IGNORE_CASE(regexp) = (regexp[regExpFlagsSymbol] & REGEXP_IGNORE_CA
SE_MASK); |
| 190 macro REGEXP_MULTILINE(regexp) = (%_RegExpFlags(regexp) & REGEXP_MULTILINE_MASK)
; | 190 macro REGEXP_MULTILINE(regexp) = (regexp[regExpFlagsSymbol] & REGEXP_MULTILINE_M
ASK); |
| 191 macro REGEXP_STICKY(regexp) = (%_RegExpFlags(regexp) & REGEXP_STICKY_MASK); | 191 macro REGEXP_STICKY(regexp) = (regexp[regExpFlagsSymbol] & REGEXP_STICKY_MASK); |
| 192 macro REGEXP_UNICODE(regexp) = (%_RegExpFlags(regexp) & REGEXP_UNICODE_MASK); | 192 macro REGEXP_UNICODE(regexp) = (regexp[regExpFlagsSymbol] & REGEXP_UNICODE_MASK)
; |
| 193 macro REGEXP_SOURCE(regexp) = (%_RegExpSource(regexp)); | 193 macro REGEXP_SOURCE(regexp) = (regexp[regExpSourceSymbol]); |
| 194 | 194 |
| 195 # We can't put macros in macros so we use constants here. | 195 # We can't put macros in macros so we use constants here. |
| 196 # REGEXP_NUMBER_OF_CAPTURES | 196 # REGEXP_NUMBER_OF_CAPTURES |
| 197 macro NUMBER_OF_CAPTURES(array) = ((array)[0]); | 197 macro NUMBER_OF_CAPTURES(array) = ((array)[0]); |
| 198 | 198 |
| 199 # Limit according to ECMA 262 15.9.1.1 | 199 # Limit according to ECMA 262 15.9.1.1 |
| 200 define MAX_TIME_MS = 8640000000000000; | 200 define MAX_TIME_MS = 8640000000000000; |
| 201 # Limit which is MAX_TIME_MS + msPerMonth. | 201 # Limit which is MAX_TIME_MS + msPerMonth. |
| 202 define MAX_TIME_BEFORE_UTC = 8640002592000000; | 202 define MAX_TIME_BEFORE_UTC = 8640002592000000; |
| 203 | 203 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 define NOT_FOUND = -1; | 316 define NOT_FOUND = -1; |
| 317 | 317 |
| 318 # Check whether debug is active. | 318 # Check whether debug is active. |
| 319 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); | 319 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); |
| 320 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup
portsStepping(function)); | 320 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup
portsStepping(function)); |
| 321 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0)
%DebugPrepareStepInIfStepping(function); | 321 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0)
%DebugPrepareStepInIfStepping(function); |
| 322 | 322 |
| 323 # SharedFlag equivalents | 323 # SharedFlag equivalents |
| 324 define kNotShared = false; | 324 define kNotShared = false; |
| 325 define kShared = true; | 325 define kShared = true; |
| OLD | NEW |