| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 F(MathCos, 1, 1) \ | 418 F(MathCos, 1, 1) \ |
| 420 F(MathSqrt, 1, 1) \ | 419 F(MathSqrt, 1, 1) \ |
| 421 F(IsRegExpEquivalent, 2, 1) \ | 420 F(IsRegExpEquivalent, 2, 1) \ |
| 422 F(HasCachedArrayIndex, 1, 1) \ | 421 F(HasCachedArrayIndex, 1, 1) \ |
| 423 F(GetCachedArrayIndex, 1, 1) | 422 F(GetCachedArrayIndex, 1, 1) |
| 424 | 423 |
| 425 | 424 |
| 426 // ---------------------------------------------------------------------------- | 425 // ---------------------------------------------------------------------------- |
| 427 // INLINE_AND_RUNTIME_FUNCTION_LIST defines all inlined functions accessed | 426 // 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 | 427 // 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. | 428 // a corresponding runtime function, that is called for slow cases. |
| 430 // Entries have the form F(name, number of arguments, number of return values). | 429 // Entries have the form F(name, number of arguments, number of return values). |
| 431 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ | 430 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ |
| 432 F(IsConstructCall, 0, 1) \ | 431 F(IsConstructCall, 0, 1) \ |
| 433 F(ClassOf, 1, 1) \ | 432 F(ClassOf, 1, 1) \ |
| 434 F(StringCharCodeAt, 2, 1) \ | 433 F(StringCharCodeAt, 2, 1) \ |
| 435 F(Log, 3, 1) \ | 434 F(Log, 3, 1) \ |
| 436 F(StringAdd, 2, 1) \ | 435 F(StringAdd, 2, 1) \ |
| 437 F(SubString, 3, 1) \ | 436 F(SubString, 3, 1) \ |
| 438 F(StringCompare, 2, 1) \ | 437 F(StringCompare, 2, 1) \ |
| 439 F(RegExpExec, 4, 1) \ | 438 F(RegExpExec, 4, 1) \ |
| 440 F(RegExpConstructResult, 3, 1) \ | 439 F(RegExpConstructResult, 3, 1) \ |
| 441 F(RegExpCloneResult, 1, 1) \ | |
| 442 F(GetFromCache, 2, 1) \ | 440 F(GetFromCache, 2, 1) \ |
| 443 F(NumberToString, 1, 1) \ | 441 F(NumberToString, 1, 1) \ |
| 444 F(SwapElements, 3, 1) | 442 F(SwapElements, 3, 1) |
| 445 | 443 |
| 446 | 444 |
| 447 //--------------------------------------------------------------------------- | 445 //--------------------------------------------------------------------------- |
| 448 // Runtime provides access to all C++ runtime functions. | 446 // Runtime provides access to all C++ runtime functions. |
| 449 | 447 |
| 450 class Runtime : public AllStatic { | 448 class Runtime : public AllStatic { |
| 451 public: | 449 public: |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 int position); | 535 int position); |
| 538 | 536 |
| 539 // Helper functions used stubs. | 537 // Helper functions used stubs. |
| 540 static void PerformGC(Object* result); | 538 static void PerformGC(Object* result); |
| 541 }; | 539 }; |
| 542 | 540 |
| 543 | 541 |
| 544 } } // namespace v8::internal | 542 } } // namespace v8::internal |
| 545 | 543 |
| 546 #endif // V8_RUNTIME_H_ | 544 #endif // V8_RUNTIME_H_ |
| OLD | NEW |