| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 define kBoundArgumentsStartIndex = 2; | 139 define kBoundArgumentsStartIndex = 2; |
| 140 | 140 |
| 141 # Inline macros. Use %IS_VAR to make sure arg is evaluated only once. | 141 # Inline macros. Use %IS_VAR to make sure arg is evaluated only once. |
| 142 macro NUMBER_IS_NAN(arg) = (!%_IsSmi(%IS_VAR(arg)) && !(arg == arg)); | 142 macro NUMBER_IS_NAN(arg) = (!%_IsSmi(%IS_VAR(arg)) && !(arg == arg)); |
| 143 macro NUMBER_IS_FINITE(arg) = (%_IsSmi(%IS_VAR(arg)) || ((arg == arg) && (arg !=
1/0) && (arg != -1/0))); | 143 macro NUMBER_IS_FINITE(arg) = (%_IsSmi(%IS_VAR(arg)) || ((arg == arg) && (arg !=
1/0) && (arg != -1/0))); |
| 144 macro TO_BOOLEAN(arg) = (!!(arg)); | 144 macro TO_BOOLEAN(arg) = (!!(arg)); |
| 145 macro TO_INTEGER(arg) = (%_ToInteger(arg)); | 145 macro TO_INTEGER(arg) = (%_ToInteger(arg)); |
| 146 macro TO_INTEGER_MAP_MINUS_ZERO(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : %NumberToI
ntegerMapMinusZero(arg)); | 146 macro TO_INTEGER_MAP_MINUS_ZERO(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : %NumberToI
ntegerMapMinusZero(arg)); |
| 147 macro TO_INT32(arg) = ((arg) | 0); | 147 macro TO_INT32(arg) = ((arg) | 0); |
| 148 macro TO_UINT32(arg) = ((arg) >>> 0); | 148 macro TO_UINT32(arg) = ((arg) >>> 0); |
| 149 macro TO_LENGTH(arg) = (%ToLength(arg)); | 149 macro TO_LENGTH(arg) = (%_ToLength(arg)); |
| 150 macro TO_LENGTH_OR_UINT32(arg) = (FLAG_harmony_tolength ? TO_LENGTH(arg) : TO_UI
NT32(arg)); | 150 macro TO_LENGTH_OR_UINT32(arg) = (FLAG_harmony_tolength ? TO_LENGTH(arg) : TO_UI
NT32(arg)); |
| 151 macro TO_LENGTH_OR_INTEGER(arg) = (FLAG_harmony_tolength ? TO_LENGTH(arg) : TO_I
NTEGER(arg)); | 151 macro TO_LENGTH_OR_INTEGER(arg) = (FLAG_harmony_tolength ? TO_LENGTH(arg) : TO_I
NTEGER(arg)); |
| 152 macro TO_STRING(arg) = (%_ToString(arg)); | 152 macro TO_STRING(arg) = (%_ToString(arg)); |
| 153 macro TO_NUMBER(arg) = (%_ToNumber(arg)); | 153 macro TO_NUMBER(arg) = (%_ToNumber(arg)); |
| 154 macro TO_OBJECT(arg) = (%_ToObject(arg)); | 154 macro TO_OBJECT(arg) = (%_ToObject(arg)); |
| 155 macro TO_PRIMITIVE(arg) = (%_ToPrimitive(arg)); | 155 macro TO_PRIMITIVE(arg) = (%_ToPrimitive(arg)); |
| 156 macro TO_PRIMITIVE_NUMBER(arg) = (%_ToPrimitive_Number(arg)); | 156 macro TO_PRIMITIVE_NUMBER(arg) = (%_ToPrimitive_Number(arg)); |
| 157 macro TO_PRIMITIVE_STRING(arg) = (%_ToPrimitive_String(arg)); | 157 macro TO_PRIMITIVE_STRING(arg) = (%_ToPrimitive_String(arg)); |
| 158 macro TO_NAME(arg) = (%_ToName(arg)); | 158 macro TO_NAME(arg) = (%_ToName(arg)); |
| 159 macro JSON_NUMBER_TO_STRING(arg) = ((%_IsSmi(%IS_VAR(arg)) || arg - arg == 0) ?
%_NumberToString(arg) : "null"); | 159 macro JSON_NUMBER_TO_STRING(arg) = ((%_IsSmi(%IS_VAR(arg)) || arg - arg == 0) ?
%_NumberToString(arg) : "null"); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 define NOT_FOUND = -1; | 304 define NOT_FOUND = -1; |
| 305 | 305 |
| 306 # Check whether debug is active. | 306 # Check whether debug is active. |
| 307 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); | 307 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); |
| 308 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup
portsStepping(function)); | 308 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup
portsStepping(function)); |
| 309 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0)
%DebugPrepareStepInIfStepping(function); | 309 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0)
%DebugPrepareStepInIfStepping(function); |
| 310 | 310 |
| 311 # SharedFlag equivalents | 311 # SharedFlag equivalents |
| 312 define kNotShared = false; | 312 define kNotShared = false; |
| 313 define kShared = true; | 313 define kShared = true; |
| OLD | NEW |