| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 F(GetLocalPropertyNames, 1, 1) \ | 58 F(GetLocalPropertyNames, 1, 1) \ |
| 59 F(GetLocalElementNames, 1, 1) \ | 59 F(GetLocalElementNames, 1, 1) \ |
| 60 F(GetInterceptorInfo, 1, 1) \ | 60 F(GetInterceptorInfo, 1, 1) \ |
| 61 F(GetNamedInterceptorPropertyNames, 1, 1) \ | 61 F(GetNamedInterceptorPropertyNames, 1, 1) \ |
| 62 F(GetIndexedInterceptorElementNames, 1, 1) \ | 62 F(GetIndexedInterceptorElementNames, 1, 1) \ |
| 63 F(GetArgumentsProperty, 1, 1) \ | 63 F(GetArgumentsProperty, 1, 1) \ |
| 64 F(ToFastProperties, 1, 1) \ | 64 F(ToFastProperties, 1, 1) \ |
| 65 F(ToSlowProperties, 1, 1) \ | 65 F(ToSlowProperties, 1, 1) \ |
| 66 F(FinishArrayPrototypeSetup, 1, 1) \ | 66 F(FinishArrayPrototypeSetup, 1, 1) \ |
| 67 F(SpecialArrayFunctions, 1, 1) \ | 67 F(SpecialArrayFunctions, 1, 1) \ |
| 68 F(GetGlobalReceiver, 0, 1) \ | 68 F(GetDefaultReceiver, 1, 1) \ |
| 69 \ | 69 \ |
| 70 F(GetPrototype, 1, 1) \ | 70 F(GetPrototype, 1, 1) \ |
| 71 F(IsInPrototypeChain, 2, 1) \ | 71 F(IsInPrototypeChain, 2, 1) \ |
| 72 F(SetHiddenPrototype, 2, 1) \ | 72 F(SetHiddenPrototype, 2, 1) \ |
| 73 \ | 73 \ |
| 74 F(IsConstructCall, 0, 1) \ | 74 F(IsConstructCall, 0, 1) \ |
| 75 \ | 75 \ |
| 76 F(GetOwnProperty, 2, 1) \ | 76 F(GetOwnProperty, 2, 1) \ |
| 77 \ | 77 \ |
| 78 F(IsExtensible, 1, 1) \ | 78 F(IsExtensible, 1, 1) \ |
| 79 F(PreventExtensions, 1, 1)\ | 79 F(PreventExtensions, 1, 1)\ |
| 80 \ | 80 \ |
| 81 /* Utilities */ \ | 81 /* Utilities */ \ |
| 82 F(CheckIsBootstrapping, 0, 1) \ |
| 82 F(GetFunctionDelegate, 1, 1) \ | 83 F(GetFunctionDelegate, 1, 1) \ |
| 83 F(GetConstructorDelegate, 1, 1) \ | 84 F(GetConstructorDelegate, 1, 1) \ |
| 84 F(NewArgumentsFast, 3, 1) \ | 85 F(NewArgumentsFast, 3, 1) \ |
| 85 F(NewStrictArgumentsFast, 3, 1) \ | 86 F(NewStrictArgumentsFast, 3, 1) \ |
| 86 F(LazyCompile, 1, 1) \ | 87 F(LazyCompile, 1, 1) \ |
| 87 F(LazyRecompile, 1, 1) \ | 88 F(LazyRecompile, 1, 1) \ |
| 88 F(NotifyDeoptimized, 1, 1) \ | 89 F(NotifyDeoptimized, 1, 1) \ |
| 89 F(NotifyOSR, 0, 1) \ | 90 F(NotifyOSR, 0, 1) \ |
| 90 F(DeoptimizeFunction, 1, 1) \ | 91 F(DeoptimizeFunction, 1, 1) \ |
| 91 F(RunningInSimulator, 0, 1) \ | 92 F(RunningInSimulator, 0, 1) \ |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 F(NewFunctionContext, 1, 1) \ | 311 F(NewFunctionContext, 1, 1) \ |
| 311 F(PushWithContext, 2, 1) \ | 312 F(PushWithContext, 2, 1) \ |
| 312 F(PushCatchContext, 3, 1) \ | 313 F(PushCatchContext, 3, 1) \ |
| 313 F(PushBlockContext, 2, 1) \ | 314 F(PushBlockContext, 2, 1) \ |
| 314 F(DeleteContextSlot, 2, 1) \ | 315 F(DeleteContextSlot, 2, 1) \ |
| 315 F(LoadContextSlot, 2, 2) \ | 316 F(LoadContextSlot, 2, 2) \ |
| 316 F(LoadContextSlotNoReferenceError, 2, 2) \ | 317 F(LoadContextSlotNoReferenceError, 2, 2) \ |
| 317 F(StoreContextSlot, 4, 1) \ | 318 F(StoreContextSlot, 4, 1) \ |
| 318 \ | 319 \ |
| 319 /* Declarations and initialization */ \ | 320 /* Declarations and initialization */ \ |
| 320 F(DeclareGlobals, 4, 1) \ | 321 F(DeclareGlobals, 3, 1) \ |
| 321 F(DeclareContextSlot, 4, 1) \ | 322 F(DeclareContextSlot, 4, 1) \ |
| 322 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \ | 323 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \ |
| 323 F(InitializeConstGlobal, 2, 1) \ | 324 F(InitializeConstGlobal, 2, 1) \ |
| 324 F(InitializeConstContextSlot, 3, 1) \ | 325 F(InitializeConstContextSlot, 3, 1) \ |
| 325 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 326 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
| 326 \ | 327 \ |
| 327 /* Debugging */ \ | 328 /* Debugging */ \ |
| 328 F(DebugPrint, 1, 1) \ | 329 F(DebugPrint, 1, 1) \ |
| 329 F(DebugTrace, 0, 1) \ | 330 F(DebugTrace, 0, 1) \ |
| 330 F(TraceEnter, 0, 1) \ | 331 F(TraceEnter, 0, 1) \ |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 F(IsSpecObject, 1, 1) \ | 485 F(IsSpecObject, 1, 1) \ |
| 485 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ | 486 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ |
| 486 F(MathPow, 2, 1) \ | 487 F(MathPow, 2, 1) \ |
| 487 F(MathSin, 1, 1) \ | 488 F(MathSin, 1, 1) \ |
| 488 F(MathCos, 1, 1) \ | 489 F(MathCos, 1, 1) \ |
| 489 F(MathSqrt, 1, 1) \ | 490 F(MathSqrt, 1, 1) \ |
| 490 F(MathLog, 1, 1) \ | 491 F(MathLog, 1, 1) \ |
| 491 F(IsRegExpEquivalent, 2, 1) \ | 492 F(IsRegExpEquivalent, 2, 1) \ |
| 492 F(HasCachedArrayIndex, 1, 1) \ | 493 F(HasCachedArrayIndex, 1, 1) \ |
| 493 F(GetCachedArrayIndex, 1, 1) \ | 494 F(GetCachedArrayIndex, 1, 1) \ |
| 494 F(FastAsciiArrayJoin, 2, 1) \ | 495 F(FastAsciiArrayJoin, 2, 1) |
| 495 F(IsNativeOrStrictMode, 1, 1) | |
| 496 | 496 |
| 497 | 497 |
| 498 // ---------------------------------------------------------------------------- | 498 // ---------------------------------------------------------------------------- |
| 499 // INLINE_AND_RUNTIME_FUNCTION_LIST defines all inlined functions accessed | 499 // INLINE_AND_RUNTIME_FUNCTION_LIST defines all inlined functions accessed |
| 500 // with a native call of the form %_name from within JS code that also have | 500 // with a native call of the form %_name from within JS code that also have |
| 501 // a corresponding runtime function, that is called for slow cases. | 501 // a corresponding runtime function, that is called for slow cases. |
| 502 // Entries have the form F(name, number of arguments, number of return values). | 502 // Entries have the form F(name, number of arguments, number of return values). |
| 503 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ | 503 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ |
| 504 F(IsConstructCall, 0, 1) \ | 504 F(IsConstructCall, 0, 1) \ |
| 505 F(ClassOf, 1, 1) \ | 505 F(ClassOf, 1, 1) \ |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 | 657 |
| 658 // This function is used in FunctionNameUsing* tests. | 658 // This function is used in FunctionNameUsing* tests. |
| 659 static Object* FindSharedFunctionInfoInScript(Isolate* isolate, | 659 static Object* FindSharedFunctionInfoInScript(Isolate* isolate, |
| 660 Handle<Script> script, | 660 Handle<Script> script, |
| 661 int position); | 661 int position); |
| 662 | 662 |
| 663 // Helper functions used stubs. | 663 // Helper functions used stubs. |
| 664 static void PerformGC(Object* result); | 664 static void PerformGC(Object* result); |
| 665 }; | 665 }; |
| 666 | 666 |
| 667 |
| 668 //--------------------------------------------------------------------------- |
| 669 // Constants used by interface to runtime functions. |
| 670 |
| 671 enum kDeclareGlobalsFlags { |
| 672 kDeclareGlobalsEvalFlag = 1 << 0, |
| 673 kDeclareGlobalsStrictModeFlag = 1 << 1, |
| 674 kDeclareGlobalsNativeFlag = 1 << 2 |
| 675 }; |
| 676 |
| 667 } } // namespace v8::internal | 677 } } // namespace v8::internal |
| 668 | 678 |
| 669 #endif // V8_RUNTIME_H_ | 679 #endif // V8_RUNTIME_H_ |
| OLD | NEW |