| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 F(Math_sin, 1, 1) \ | 155 F(Math_sin, 1, 1) \ |
| 156 F(Math_sqrt, 1, 1) \ | 156 F(Math_sqrt, 1, 1) \ |
| 157 F(Math_tan, 1, 1) \ | 157 F(Math_tan, 1, 1) \ |
| 158 \ | 158 \ |
| 159 /* Regular expressions */ \ | 159 /* Regular expressions */ \ |
| 160 F(RegExpCompile, 3, 1) \ | 160 F(RegExpCompile, 3, 1) \ |
| 161 F(RegExpExec, 4, 1) \ | 161 F(RegExpExec, 4, 1) \ |
| 162 F(RegExpExecMultiple, 4, 1) \ | 162 F(RegExpExecMultiple, 4, 1) \ |
| 163 F(RegExpInitializeObject, 5, 1) \ | 163 F(RegExpInitializeObject, 5, 1) \ |
| 164 F(RegExpConstructResult, 3, 1) \ | 164 F(RegExpConstructResult, 3, 1) \ |
| 165 F(RegExpCloneResult, 1, 1) \ | |
| 166 \ | 165 \ |
| 167 /* JSON */ \ | 166 /* JSON */ \ |
| 168 F(ParseJson, 1, 1) \ | 167 F(ParseJson, 1, 1) \ |
| 169 \ | 168 \ |
| 170 /* Strings */ \ | 169 /* Strings */ \ |
| 171 F(StringCharCodeAt, 2, 1) \ | 170 F(StringCharCodeAt, 2, 1) \ |
| 172 F(StringIndexOf, 3, 1) \ | 171 F(StringIndexOf, 3, 1) \ |
| 173 F(StringLastIndexOf, 3, 1) \ | 172 F(StringLastIndexOf, 3, 1) \ |
| 174 F(StringLocaleCompare, 2, 1) \ | 173 F(StringLocaleCompare, 2, 1) \ |
| 175 F(SubString, 3, 1) \ | 174 F(SubString, 3, 1) \ |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 F(DebugPropertyAttributesFromDetails, 1, 1) \ | 317 F(DebugPropertyAttributesFromDetails, 1, 1) \ |
| 319 F(DebugPropertyIndexFromDetails, 1, 1) \ | 318 F(DebugPropertyIndexFromDetails, 1, 1) \ |
| 320 F(DebugNamedInterceptorPropertyValue, 2, 1) \ | 319 F(DebugNamedInterceptorPropertyValue, 2, 1) \ |
| 321 F(DebugIndexedInterceptorElementValue, 2, 1) \ | 320 F(DebugIndexedInterceptorElementValue, 2, 1) \ |
| 322 F(CheckExecutionState, 1, 1) \ | 321 F(CheckExecutionState, 1, 1) \ |
| 323 F(GetFrameCount, 1, 1) \ | 322 F(GetFrameCount, 1, 1) \ |
| 324 F(GetFrameDetails, 2, 1) \ | 323 F(GetFrameDetails, 2, 1) \ |
| 325 F(GetScopeCount, 2, 1) \ | 324 F(GetScopeCount, 2, 1) \ |
| 326 F(GetScopeDetails, 3, 1) \ | 325 F(GetScopeDetails, 3, 1) \ |
| 327 F(DebugPrintScopes, 0, 1) \ | 326 F(DebugPrintScopes, 0, 1) \ |
| 328 F(GetCFrames, 1, 1) \ | |
| 329 F(GetThreadCount, 1, 1) \ | 327 F(GetThreadCount, 1, 1) \ |
| 330 F(GetThreadDetails, 2, 1) \ | 328 F(GetThreadDetails, 2, 1) \ |
| 331 F(SetDisableBreak, 1, 1) \ | 329 F(SetDisableBreak, 1, 1) \ |
| 332 F(GetBreakLocations, 1, 1) \ | 330 F(GetBreakLocations, 1, 1) \ |
| 333 F(SetFunctionBreakPoint, 3, 1) \ | 331 F(SetFunctionBreakPoint, 3, 1) \ |
| 334 F(SetScriptBreakPoint, 3, 1) \ | 332 F(SetScriptBreakPoint, 3, 1) \ |
| 335 F(ClearBreakPoint, 1, 1) \ | 333 F(ClearBreakPoint, 1, 1) \ |
| 336 F(ChangeBreakOnException, 2, 1) \ | 334 F(ChangeBreakOnException, 2, 1) \ |
| 337 F(IsBreakOnException, 1, 1) \ | 335 F(IsBreakOnException, 1, 1) \ |
| 338 F(PrepareStep, 3, 1) \ | 336 F(PrepareStep, 3, 1) \ |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 F(MathCos, 1, 1) \ | 417 F(MathCos, 1, 1) \ |
| 420 F(MathSqrt, 1, 1) \ | 418 F(MathSqrt, 1, 1) \ |
| 421 F(IsRegExpEquivalent, 2, 1) \ | 419 F(IsRegExpEquivalent, 2, 1) \ |
| 422 F(HasCachedArrayIndex, 1, 1) \ | 420 F(HasCachedArrayIndex, 1, 1) \ |
| 423 F(GetCachedArrayIndex, 1, 1) | 421 F(GetCachedArrayIndex, 1, 1) |
| 424 | 422 |
| 425 | 423 |
| 426 // ---------------------------------------------------------------------------- | 424 // ---------------------------------------------------------------------------- |
| 427 // INLINE_AND_RUNTIME_FUNCTION_LIST defines all inlined functions accessed | 425 // INLINE_AND_RUNTIME_FUNCTION_LIST defines all inlined functions accessed |
| 428 // with a native call of the form %_name from within JS code that also have | 426 // with a native call of the form %_name from within JS code that also have |
| 429 // a corresponding runtime function, that is called for slow cases. | 427 // a corresponding runtime function, that is called for slow cases. |
| 430 // Entries have the form F(name, number of arguments, number of return values). | 428 // Entries have the form F(name, number of arguments, number of return values). |
| 431 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ | 429 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ |
| 432 F(IsConstructCall, 0, 1) \ | 430 F(IsConstructCall, 0, 1) \ |
| 433 F(ClassOf, 1, 1) \ | 431 F(ClassOf, 1, 1) \ |
| 434 F(StringCharCodeAt, 2, 1) \ | 432 F(StringCharCodeAt, 2, 1) \ |
| 435 F(Log, 3, 1) \ | 433 F(Log, 3, 1) \ |
| 436 F(StringAdd, 2, 1) \ | 434 F(StringAdd, 2, 1) \ |
| 437 F(SubString, 3, 1) \ | 435 F(SubString, 3, 1) \ |
| 438 F(StringCompare, 2, 1) \ | 436 F(StringCompare, 2, 1) \ |
| 439 F(RegExpExec, 4, 1) \ | 437 F(RegExpExec, 4, 1) \ |
| 440 F(RegExpConstructResult, 3, 1) \ | 438 F(RegExpConstructResult, 3, 1) \ |
| 441 F(RegExpCloneResult, 1, 1) \ | |
| 442 F(GetFromCache, 2, 1) \ | 439 F(GetFromCache, 2, 1) \ |
| 443 F(NumberToString, 1, 1) \ | 440 F(NumberToString, 1, 1) \ |
| 444 F(SwapElements, 3, 1) | 441 F(SwapElements, 3, 1) |
| 445 | 442 |
| 446 | 443 |
| 447 //--------------------------------------------------------------------------- | 444 //--------------------------------------------------------------------------- |
| 448 // Runtime provides access to all C++ runtime functions. | 445 // Runtime provides access to all C++ runtime functions. |
| 449 | 446 |
| 450 class Runtime : public AllStatic { | 447 class Runtime : public AllStatic { |
| 451 public: | 448 public: |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 int position); | 534 int position); |
| 538 | 535 |
| 539 // Helper functions used stubs. | 536 // Helper functions used stubs. |
| 540 static void PerformGC(Object* result); | 537 static void PerformGC(Object* result); |
| 541 }; | 538 }; |
| 542 | 539 |
| 543 | 540 |
| 544 } } // namespace v8::internal | 541 } } // namespace v8::internal |
| 545 | 542 |
| 546 #endif // V8_RUNTIME_H_ | 543 #endif // V8_RUNTIME_H_ |
| OLD | NEW |