| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 F(GetPropertyNamesFast, 1, 1) \ | 54 F(GetPropertyNamesFast, 1, 1) \ |
| 55 F(GetLocalPropertyNames, 1, 1) \ | 55 F(GetLocalPropertyNames, 1, 1) \ |
| 56 F(GetLocalElementNames, 1, 1) \ | 56 F(GetLocalElementNames, 1, 1) \ |
| 57 F(GetInterceptorInfo, 1, 1) \ | 57 F(GetInterceptorInfo, 1, 1) \ |
| 58 F(GetNamedInterceptorPropertyNames, 1, 1) \ | 58 F(GetNamedInterceptorPropertyNames, 1, 1) \ |
| 59 F(GetIndexedInterceptorElementNames, 1, 1) \ | 59 F(GetIndexedInterceptorElementNames, 1, 1) \ |
| 60 F(GetArgumentsProperty, 1, 1) \ | 60 F(GetArgumentsProperty, 1, 1) \ |
| 61 F(ToFastProperties, 1, 1) \ | 61 F(ToFastProperties, 1, 1) \ |
| 62 F(ToSlowProperties, 1, 1) \ | 62 F(ToSlowProperties, 1, 1) \ |
| 63 F(FinishArrayPrototypeSetup, 1, 1) \ | 63 F(FinishArrayPrototypeSetup, 1, 1) \ |
| 64 F(SpecialArrayFunctions, 1, 1) \ |
| 64 \ | 65 \ |
| 65 F(IsInPrototypeChain, 2, 1) \ | 66 F(IsInPrototypeChain, 2, 1) \ |
| 66 F(SetHiddenPrototype, 2, 1) \ | 67 F(SetHiddenPrototype, 2, 1) \ |
| 67 \ | 68 \ |
| 68 F(IsConstructCall, 0, 1) \ | 69 F(IsConstructCall, 0, 1) \ |
| 69 \ | 70 \ |
| 70 F(GetOwnProperty, 2, 1) \ | 71 F(GetOwnProperty, 2, 1) \ |
| 71 \ | 72 \ |
| 72 F(IsExtensible, 1, 1) \ | 73 F(IsExtensible, 1, 1) \ |
| 73 \ | 74 \ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 85 /* Conversions */ \ | 86 /* Conversions */ \ |
| 86 F(ToBool, 1, 1) \ | 87 F(ToBool, 1, 1) \ |
| 87 F(Typeof, 1, 1) \ | 88 F(Typeof, 1, 1) \ |
| 88 \ | 89 \ |
| 89 F(StringToNumber, 1, 1) \ | 90 F(StringToNumber, 1, 1) \ |
| 90 F(StringFromCharCodeArray, 1, 1) \ | 91 F(StringFromCharCodeArray, 1, 1) \ |
| 91 F(StringParseInt, 2, 1) \ | 92 F(StringParseInt, 2, 1) \ |
| 92 F(StringParseFloat, 1, 1) \ | 93 F(StringParseFloat, 1, 1) \ |
| 93 F(StringToLowerCase, 1, 1) \ | 94 F(StringToLowerCase, 1, 1) \ |
| 94 F(StringToUpperCase, 1, 1) \ | 95 F(StringToUpperCase, 1, 1) \ |
| 96 F(StringSplit, 3, 1) \ |
| 95 F(CharFromCode, 1, 1) \ | 97 F(CharFromCode, 1, 1) \ |
| 96 F(URIEscape, 1, 1) \ | 98 F(URIEscape, 1, 1) \ |
| 97 F(URIUnescape, 1, 1) \ | 99 F(URIUnescape, 1, 1) \ |
| 98 \ | 100 \ |
| 99 F(NumberToString, 1, 1) \ | 101 F(NumberToString, 1, 1) \ |
| 100 F(NumberToInteger, 1, 1) \ | 102 F(NumberToInteger, 1, 1) \ |
| 101 F(NumberToJSUint32, 1, 1) \ | 103 F(NumberToJSUint32, 1, 1) \ |
| 102 F(NumberToJSInt32, 1, 1) \ | 104 F(NumberToJSInt32, 1, 1) \ |
| 103 F(NumberToSmi, 1, 1) \ | 105 F(NumberToSmi, 1, 1) \ |
| 104 \ | 106 \ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 125 \ | 127 \ |
| 126 /* Comparisons */ \ | 128 /* Comparisons */ \ |
| 127 F(NumberEquals, 2, 1) \ | 129 F(NumberEquals, 2, 1) \ |
| 128 F(StringEquals, 2, 1) \ | 130 F(StringEquals, 2, 1) \ |
| 129 \ | 131 \ |
| 130 F(NumberCompare, 3, 1) \ | 132 F(NumberCompare, 3, 1) \ |
| 131 F(SmiLexicographicCompare, 2, 1) \ | 133 F(SmiLexicographicCompare, 2, 1) \ |
| 132 F(StringCompare, 2, 1) \ | 134 F(StringCompare, 2, 1) \ |
| 133 \ | 135 \ |
| 134 /* Math */ \ | 136 /* Math */ \ |
| 135 F(Math_abs, 1, 1) \ | |
| 136 F(Math_acos, 1, 1) \ | 137 F(Math_acos, 1, 1) \ |
| 137 F(Math_asin, 1, 1) \ | 138 F(Math_asin, 1, 1) \ |
| 138 F(Math_atan, 1, 1) \ | 139 F(Math_atan, 1, 1) \ |
| 139 F(Math_atan2, 2, 1) \ | 140 F(Math_atan2, 2, 1) \ |
| 140 F(Math_ceil, 1, 1) \ | 141 F(Math_ceil, 1, 1) \ |
| 141 F(Math_cos, 1, 1) \ | 142 F(Math_cos, 1, 1) \ |
| 142 F(Math_exp, 1, 1) \ | 143 F(Math_exp, 1, 1) \ |
| 143 F(Math_floor, 1, 1) \ | 144 F(Math_floor, 1, 1) \ |
| 144 F(Math_log, 1, 1) \ | 145 F(Math_log, 1, 1) \ |
| 145 F(Math_pow, 2, 1) \ | 146 F(Math_pow, 2, 1) \ |
| 146 F(Math_pow_cfunction, 2, 1) \ | 147 F(Math_pow_cfunction, 2, 1) \ |
| 147 F(Math_round, 1, 1) \ | 148 F(RoundNumber, 1, 1) \ |
| 148 F(Math_sin, 1, 1) \ | 149 F(Math_sin, 1, 1) \ |
| 149 F(Math_sqrt, 1, 1) \ | 150 F(Math_sqrt, 1, 1) \ |
| 150 F(Math_tan, 1, 1) \ | 151 F(Math_tan, 1, 1) \ |
| 151 \ | 152 \ |
| 152 /* Regular expressions */ \ | 153 /* Regular expressions */ \ |
| 153 F(RegExpCompile, 3, 1) \ | 154 F(RegExpCompile, 3, 1) \ |
| 154 F(RegExpExec, 4, 1) \ | 155 F(RegExpExec, 4, 1) \ |
| 155 \ | 156 \ |
| 156 /* Strings */ \ | 157 /* Strings */ \ |
| 157 F(StringCharCodeAt, 2, 1) \ | 158 F(StringCharCodeAt, 2, 1) \ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 F(DisableAccessChecks, 1, 1) \ | 198 F(DisableAccessChecks, 1, 1) \ |
| 198 F(EnableAccessChecks, 1, 1) \ | 199 F(EnableAccessChecks, 1, 1) \ |
| 199 \ | 200 \ |
| 200 /* Dates */ \ | 201 /* Dates */ \ |
| 201 F(DateCurrentTime, 0, 1) \ | 202 F(DateCurrentTime, 0, 1) \ |
| 202 F(DateParseString, 2, 1) \ | 203 F(DateParseString, 2, 1) \ |
| 203 F(DateLocalTimezone, 1, 1) \ | 204 F(DateLocalTimezone, 1, 1) \ |
| 204 F(DateLocalTimeOffset, 0, 1) \ | 205 F(DateLocalTimeOffset, 0, 1) \ |
| 205 F(DateDaylightSavingsOffset, 1, 1) \ | 206 F(DateDaylightSavingsOffset, 1, 1) \ |
| 206 F(DateMakeDay, 3, 1) \ | 207 F(DateMakeDay, 3, 1) \ |
| 208 F(DateYMDFromTime, 2, 1) \ |
| 207 \ | 209 \ |
| 208 /* Numbers */ \ | 210 /* Numbers */ \ |
| 209 F(NumberIsFinite, 1, 1) \ | 211 F(NumberIsFinite, 1, 1) \ |
| 210 \ | 212 \ |
| 211 /* Globals */ \ | 213 /* Globals */ \ |
| 212 F(CompileString, 2, 1) \ | 214 F(CompileString, 2, 1) \ |
| 213 F(GlobalPrint, 1, 1) \ | 215 F(GlobalPrint, 1, 1) \ |
| 214 \ | 216 \ |
| 215 /* Eval */ \ | 217 /* Eval */ \ |
| 216 F(GlobalReceiver, 1, 1) \ | 218 F(GlobalReceiver, 1, 1) \ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 227 F(MoveArrayContents, 2, 1) \ | 229 F(MoveArrayContents, 2, 1) \ |
| 228 F(EstimateNumberOfElements, 1, 1) \ | 230 F(EstimateNumberOfElements, 1, 1) \ |
| 229 \ | 231 \ |
| 230 /* Getters and Setters */ \ | 232 /* Getters and Setters */ \ |
| 231 F(DefineAccessor, -1 /* 4 or 5 */, 1) \ | 233 F(DefineAccessor, -1 /* 4 or 5 */, 1) \ |
| 232 F(LookupAccessor, 3, 1) \ | 234 F(LookupAccessor, 3, 1) \ |
| 233 \ | 235 \ |
| 234 /* Literals */ \ | 236 /* Literals */ \ |
| 235 F(MaterializeRegExpLiteral, 4, 1)\ | 237 F(MaterializeRegExpLiteral, 4, 1)\ |
| 236 F(CreateArrayLiteralBoilerplate, 3, 1) \ | 238 F(CreateArrayLiteralBoilerplate, 3, 1) \ |
| 237 F(CreateObjectLiteralBoilerplate, 3, 1) \ | |
| 238 F(CloneLiteralBoilerplate, 1, 1) \ | 239 F(CloneLiteralBoilerplate, 1, 1) \ |
| 239 F(CloneShallowLiteralBoilerplate, 1, 1) \ | 240 F(CloneShallowLiteralBoilerplate, 1, 1) \ |
| 240 F(CreateObjectLiteral, 3, 1) \ | 241 F(CreateObjectLiteral, 4, 1) \ |
| 241 F(CreateObjectLiteralShallow, 3, 1) \ | 242 F(CreateObjectLiteralShallow, 4, 1) \ |
| 242 F(CreateArrayLiteral, 3, 1) \ | 243 F(CreateArrayLiteral, 3, 1) \ |
| 243 F(CreateArrayLiteralShallow, 3, 1) \ | 244 F(CreateArrayLiteralShallow, 3, 1) \ |
| 244 \ | 245 \ |
| 245 /* Catch context extension objects */ \ | 246 /* Catch context extension objects */ \ |
| 246 F(CreateCatchExtensionObject, 2, 1) \ | 247 F(CreateCatchExtensionObject, 2, 1) \ |
| 247 \ | 248 \ |
| 248 /* Statements */ \ | 249 /* Statements */ \ |
| 249 F(NewClosure, 2, 1) \ | 250 F(NewClosure, 2, 1) \ |
| 250 F(NewObject, 1, 1) \ | 251 F(NewObject, 1, 1) \ |
| 251 F(Throw, 1, 1) \ | 252 F(Throw, 1, 1) \ |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 F(SystemBreak, 0, 1) \ | 326 F(SystemBreak, 0, 1) \ |
| 326 F(DebugDisassembleFunction, 1, 1) \ | 327 F(DebugDisassembleFunction, 1, 1) \ |
| 327 F(DebugDisassembleConstructor, 1, 1) \ | 328 F(DebugDisassembleConstructor, 1, 1) \ |
| 328 F(FunctionGetInferredName, 1, 1) \ | 329 F(FunctionGetInferredName, 1, 1) \ |
| 329 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ | 330 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ |
| 330 F(LiveEditGatherCompileInfo, 2, 1) \ | 331 F(LiveEditGatherCompileInfo, 2, 1) \ |
| 331 F(LiveEditReplaceScript, 3, 1) \ | 332 F(LiveEditReplaceScript, 3, 1) \ |
| 332 F(LiveEditReplaceFunctionCode, 2, 1) \ | 333 F(LiveEditReplaceFunctionCode, 2, 1) \ |
| 333 F(LiveEditRelinkFunctionToScript, 2, 1) \ | 334 F(LiveEditRelinkFunctionToScript, 2, 1) \ |
| 334 F(LiveEditPatchFunctionPositions, 2, 1) \ | 335 F(LiveEditPatchFunctionPositions, 2, 1) \ |
| 335 F(LiveEditCheckStackActivations, 1, 1) | 336 F(LiveEditCheckStackActivations, 1, 1) \ |
| 337 F(GetFunctionCodePositionFromSource, 2, 1) |
| 336 #else | 338 #else |
| 337 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) | 339 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) |
| 338 #endif | 340 #endif |
| 339 | 341 |
| 340 #ifdef ENABLE_LOGGING_AND_PROFILING | 342 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 341 #define RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F) \ | 343 #define RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F) \ |
| 342 F(ProfilerResume, 2, 1) \ | 344 F(ProfilerResume, 2, 1) \ |
| 343 F(ProfilerPause, 2, 1) | 345 F(ProfilerPause, 2, 1) |
| 344 #else | 346 #else |
| 345 #define RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F) | 347 #define RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F) |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 int position); | 435 int position); |
| 434 | 436 |
| 435 // Helper functions used stubs. | 437 // Helper functions used stubs. |
| 436 static void PerformGC(Object* result); | 438 static void PerformGC(Object* result); |
| 437 }; | 439 }; |
| 438 | 440 |
| 439 | 441 |
| 440 } } // namespace v8::internal | 442 } } // namespace v8::internal |
| 441 | 443 |
| 442 #endif // V8_RUNTIME_H_ | 444 #endif // V8_RUNTIME_H_ |
| OLD | NEW |