| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 F(NeverOptimizeFunction, 1, 1) \ | 99 F(NeverOptimizeFunction, 1, 1) \ |
| 100 F(GetOptimizationStatus, -1, 1) \ | 100 F(GetOptimizationStatus, -1, 1) \ |
| 101 F(GetOptimizationCount, 1, 1) \ | 101 F(GetOptimizationCount, 1, 1) \ |
| 102 F(UnblockConcurrentRecompilation, 0, 1) \ | 102 F(UnblockConcurrentRecompilation, 0, 1) \ |
| 103 F(CompileForOnStackReplacement, 2, 1) \ | 103 F(CompileForOnStackReplacement, 2, 1) \ |
| 104 F(SetAllocationTimeout, 2, 1) \ | 104 F(SetAllocationTimeout, 2, 1) \ |
| 105 F(AllocateInNewSpace, 1, 1) \ | 105 F(AllocateInNewSpace, 1, 1) \ |
| 106 F(AllocateInOldPointerSpace, 1, 1) \ | 106 F(AllocateInOldPointerSpace, 1, 1) \ |
| 107 F(AllocateInOldDataSpace, 1, 1) \ | 107 F(AllocateInOldDataSpace, 1, 1) \ |
| 108 F(SetNativeFlag, 1, 1) \ | 108 F(SetNativeFlag, 1, 1) \ |
| 109 F(SetInlineBuiltinFlag, 1, 1) \ |
| 109 F(StoreArrayLiteralElement, 5, 1) \ | 110 F(StoreArrayLiteralElement, 5, 1) \ |
| 110 F(DebugCallbackSupportsStepping, 1, 1) \ | 111 F(DebugCallbackSupportsStepping, 1, 1) \ |
| 111 F(DebugPrepareStepInIfStepping, 1, 1) \ | 112 F(DebugPrepareStepInIfStepping, 1, 1) \ |
| 112 F(FlattenString, 1, 1) \ | 113 F(FlattenString, 1, 1) \ |
| 113 F(MigrateInstance, 1, 1) \ | 114 F(MigrateInstance, 1, 1) \ |
| 114 F(NotifyContextDisposed, 0, 1) \ | 115 F(NotifyContextDisposed, 0, 1) \ |
| 115 \ | 116 \ |
| 116 /* Array join support */ \ | 117 /* Array join support */ \ |
| 117 F(PushIfAbsent, 2, 1) \ | 118 F(PushIfAbsent, 2, 1) \ |
| 118 F(ArrayConcat, 1, 1) \ | 119 F(ArrayConcat, 1, 1) \ |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 F(Math_cos, 1, 1) \ | 183 F(Math_cos, 1, 1) \ |
| 183 F(Math_exp, 1, 1) \ | 184 F(Math_exp, 1, 1) \ |
| 184 F(Math_floor, 1, 1) \ | 185 F(Math_floor, 1, 1) \ |
| 185 F(Math_log, 1, 1) \ | 186 F(Math_log, 1, 1) \ |
| 186 F(Math_pow, 2, 1) \ | 187 F(Math_pow, 2, 1) \ |
| 187 F(Math_pow_cfunction, 2, 1) \ | 188 F(Math_pow_cfunction, 2, 1) \ |
| 188 F(RoundNumber, 1, 1) \ | 189 F(RoundNumber, 1, 1) \ |
| 189 F(Math_sin, 1, 1) \ | 190 F(Math_sin, 1, 1) \ |
| 190 F(Math_sqrt, 1, 1) \ | 191 F(Math_sqrt, 1, 1) \ |
| 191 F(Math_tan, 1, 1) \ | 192 F(Math_tan, 1, 1) \ |
| 193 F(PopulateTrigonometricTable, 3, 1) \ |
| 192 \ | 194 \ |
| 193 /* Regular expressions */ \ | 195 /* Regular expressions */ \ |
| 194 F(RegExpCompile, 3, 1) \ | 196 F(RegExpCompile, 3, 1) \ |
| 195 F(RegExpExec, 4, 1) \ | 197 F(RegExpExec, 4, 1) \ |
| 196 F(RegExpExecMultiple, 4, 1) \ | 198 F(RegExpExecMultiple, 4, 1) \ |
| 197 F(RegExpInitializeObject, 5, 1) \ | 199 F(RegExpInitializeObject, 5, 1) \ |
| 198 F(RegExpConstructResult, 3, 1) \ | 200 F(RegExpConstructResult, 3, 1) \ |
| 199 \ | 201 \ |
| 200 /* JSON */ \ | 202 /* JSON */ \ |
| 201 F(ParseJson, 1, 1) \ | 203 F(ParseJson, 1, 1) \ |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 F(ArrayConstructor, -1, 1) \ | 295 F(ArrayConstructor, -1, 1) \ |
| 294 F(InternalArrayConstructor, -1, 1) \ | 296 F(InternalArrayConstructor, -1, 1) \ |
| 295 \ | 297 \ |
| 296 /* Getters and Setters */ \ | 298 /* Getters and Setters */ \ |
| 297 F(LookupAccessor, 3, 1) \ | 299 F(LookupAccessor, 3, 1) \ |
| 298 \ | 300 \ |
| 299 /* Literals */ \ | 301 /* Literals */ \ |
| 300 F(MaterializeRegExpLiteral, 4, 1)\ | 302 F(MaterializeRegExpLiteral, 4, 1)\ |
| 301 F(CreateObjectLiteral, 4, 1) \ | 303 F(CreateObjectLiteral, 4, 1) \ |
| 302 F(CreateArrayLiteral, 3, 1) \ | 304 F(CreateArrayLiteral, 3, 1) \ |
| 303 F(CreateArrayLiteralShallow, 3, 1) \ | |
| 304 \ | 305 \ |
| 305 /* Harmony generators */ \ | 306 /* Harmony generators */ \ |
| 306 F(CreateJSGeneratorObject, 0, 1) \ | 307 F(CreateJSGeneratorObject, 0, 1) \ |
| 307 F(SuspendJSGeneratorObject, 1, 1) \ | 308 F(SuspendJSGeneratorObject, 1, 1) \ |
| 308 F(ResumeJSGeneratorObject, 3, 1) \ | 309 F(ResumeJSGeneratorObject, 3, 1) \ |
| 309 F(ThrowGeneratorStateError, 1, 1) \ | 310 F(ThrowGeneratorStateError, 1, 1) \ |
| 310 \ | 311 \ |
| 311 /* ES5 */ \ | 312 /* ES5 */ \ |
| 312 F(ObjectFreeze, 1, 1) \ | 313 F(ObjectFreeze, 1, 1) \ |
| 313 \ | 314 \ |
| 314 /* Harmony modules */ \ | 315 /* Harmony modules */ \ |
| 315 F(IsJSModule, 1, 1) \ | 316 F(IsJSModule, 1, 1) \ |
| 316 \ | 317 \ |
| 317 /* Harmony symbols */ \ | 318 /* Harmony symbols */ \ |
| 318 F(CreateSymbol, 1, 1) \ | 319 F(CreateSymbol, 1, 1) \ |
| 320 F(CreatePrivateSymbol, 1, 1) \ |
| 319 F(SymbolName, 1, 1) \ | 321 F(SymbolName, 1, 1) \ |
| 322 F(SymbolIsPrivate, 1, 1) \ |
| 320 \ | 323 \ |
| 321 /* Harmony proxies */ \ | 324 /* Harmony proxies */ \ |
| 322 F(CreateJSProxy, 2, 1) \ | 325 F(CreateJSProxy, 2, 1) \ |
| 323 F(CreateJSFunctionProxy, 4, 1) \ | 326 F(CreateJSFunctionProxy, 4, 1) \ |
| 324 F(IsJSProxy, 1, 1) \ | 327 F(IsJSProxy, 1, 1) \ |
| 325 F(IsJSFunctionProxy, 1, 1) \ | 328 F(IsJSFunctionProxy, 1, 1) \ |
| 326 F(GetHandler, 1, 1) \ | 329 F(GetHandler, 1, 1) \ |
| 327 F(GetCallTrap, 1, 1) \ | 330 F(GetCallTrap, 1, 1) \ |
| 328 F(GetConstructTrap, 1, 1) \ | 331 F(GetConstructTrap, 1, 1) \ |
| 329 F(Fix, 1, 1) \ | 332 F(Fix, 1, 1) \ |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 F(OneByteSeqStringSetChar, 3, 1) \ | 622 F(OneByteSeqStringSetChar, 3, 1) \ |
| 620 F(TwoByteSeqStringSetChar, 3, 1) \ | 623 F(TwoByteSeqStringSetChar, 3, 1) \ |
| 621 F(ObjectEquals, 2, 1) \ | 624 F(ObjectEquals, 2, 1) \ |
| 622 F(RandomHeapNumber, 0, 1) \ | 625 F(RandomHeapNumber, 0, 1) \ |
| 623 F(IsObject, 1, 1) \ | 626 F(IsObject, 1, 1) \ |
| 624 F(IsFunction, 1, 1) \ | 627 F(IsFunction, 1, 1) \ |
| 625 F(IsUndetectableObject, 1, 1) \ | 628 F(IsUndetectableObject, 1, 1) \ |
| 626 F(IsSpecObject, 1, 1) \ | 629 F(IsSpecObject, 1, 1) \ |
| 627 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ | 630 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ |
| 628 F(MathPow, 2, 1) \ | 631 F(MathPow, 2, 1) \ |
| 629 F(MathSin, 1, 1) \ | |
| 630 F(MathCos, 1, 1) \ | |
| 631 F(MathTan, 1, 1) \ | |
| 632 F(MathSqrt, 1, 1) \ | 632 F(MathSqrt, 1, 1) \ |
| 633 F(MathLog, 1, 1) \ | 633 F(MathLog, 1, 1) \ |
| 634 F(IsMinusZero, 1, 1) \ |
| 634 F(IsRegExpEquivalent, 2, 1) \ | 635 F(IsRegExpEquivalent, 2, 1) \ |
| 635 F(HasCachedArrayIndex, 1, 1) \ | 636 F(HasCachedArrayIndex, 1, 1) \ |
| 636 F(GetCachedArrayIndex, 1, 1) \ | 637 F(GetCachedArrayIndex, 1, 1) \ |
| 637 F(FastAsciiArrayJoin, 2, 1) \ | 638 F(FastAsciiArrayJoin, 2, 1) \ |
| 638 F(GeneratorNext, 2, 1) \ | 639 F(GeneratorNext, 2, 1) \ |
| 639 F(GeneratorThrow, 2, 1) \ | 640 F(GeneratorThrow, 2, 1) \ |
| 640 F(DebugBreakInOptimizedCode, 0, 1) | 641 F(DebugBreakInOptimizedCode, 0, 1) |
| 641 | 642 |
| 642 | 643 |
| 643 // ---------------------------------------------------------------------------- | 644 // ---------------------------------------------------------------------------- |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 // in Firefox/SpiderMonkey, Safari and Opera. | 771 // in Firefox/SpiderMonkey, Safari and Opera. |
| 771 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Isolate* isolate, | 772 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Isolate* isolate, |
| 772 Handle<Object> object, | 773 Handle<Object> object, |
| 773 uint32_t index); | 774 uint32_t index); |
| 774 | 775 |
| 775 MUST_USE_RESULT static MaybeObject* GetElementOrCharAtOrFail( | 776 MUST_USE_RESULT static MaybeObject* GetElementOrCharAtOrFail( |
| 776 Isolate* isolate, | 777 Isolate* isolate, |
| 777 Handle<Object> object, | 778 Handle<Object> object, |
| 778 uint32_t index); | 779 uint32_t index); |
| 779 | 780 |
| 780 MUST_USE_RESULT static MaybeObject* SetObjectProperty( | 781 static Handle<Object> SetObjectProperty( |
| 781 Isolate* isolate, | 782 Isolate* isolate, |
| 782 Handle<Object> object, | 783 Handle<Object> object, |
| 783 Handle<Object> key, | 784 Handle<Object> key, |
| 784 Handle<Object> value, | 785 Handle<Object> value, |
| 785 PropertyAttributes attr, | 786 PropertyAttributes attr, |
| 786 StrictModeFlag strict_mode); | 787 StrictModeFlag strict_mode); |
| 787 | 788 |
| 788 MUST_USE_RESULT static MaybeObject* SetObjectPropertyOrFail( | 789 static Handle<Object> ForceSetObjectProperty( |
| 789 Isolate* isolate, | |
| 790 Handle<Object> object, | |
| 791 Handle<Object> key, | |
| 792 Handle<Object> value, | |
| 793 PropertyAttributes attr, | |
| 794 StrictModeFlag strict_mode); | |
| 795 | |
| 796 MUST_USE_RESULT static MaybeObject* ForceSetObjectProperty( | |
| 797 Isolate* isolate, | 790 Isolate* isolate, |
| 798 Handle<JSObject> object, | 791 Handle<JSObject> object, |
| 799 Handle<Object> key, | 792 Handle<Object> key, |
| 800 Handle<Object> value, | 793 Handle<Object> value, |
| 801 PropertyAttributes attr); | 794 PropertyAttributes attr); |
| 802 | 795 |
| 803 MUST_USE_RESULT static MaybeObject* DeleteObjectProperty( | 796 MUST_USE_RESULT static MaybeObject* DeleteObjectProperty( |
| 804 Isolate* isolate, | 797 Isolate* isolate, |
| 805 Handle<JSReceiver> object, | 798 Handle<JSReceiver> object, |
| 806 Handle<Object> key, | 799 Handle<Object> key, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 //--------------------------------------------------------------------------- | 844 //--------------------------------------------------------------------------- |
| 852 // Constants used by interface to runtime functions. | 845 // Constants used by interface to runtime functions. |
| 853 | 846 |
| 854 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 847 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 855 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 848 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 856 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 849 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
| 857 | 850 |
| 858 } } // namespace v8::internal | 851 } } // namespace v8::internal |
| 859 | 852 |
| 860 #endif // V8_RUNTIME_H_ | 853 #endif // V8_RUNTIME_H_ |
| OLD | NEW |