| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 F(RunningInSimulator, 0, 1) \ | 96 F(RunningInSimulator, 0, 1) \ |
| 97 F(IsConcurrentRecompilationSupported, 0, 1) \ | 97 F(IsConcurrentRecompilationSupported, 0, 1) \ |
| 98 F(OptimizeFunctionOnNextCall, -1, 1) \ | 98 F(OptimizeFunctionOnNextCall, -1, 1) \ |
| 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(AllocateInTargetSpace, 2, 1) \ |
| 107 F(AllocateInOldDataSpace, 1, 1) \ | |
| 108 F(SetNativeFlag, 1, 1) \ | 107 F(SetNativeFlag, 1, 1) \ |
| 108 F(SetInlineBuiltinFlag, 1, 1) \ |
| 109 F(StoreArrayLiteralElement, 5, 1) \ | 109 F(StoreArrayLiteralElement, 5, 1) \ |
| 110 F(DebugCallbackSupportsStepping, 1, 1) \ | 110 F(DebugCallbackSupportsStepping, 1, 1) \ |
| 111 F(DebugPrepareStepInIfStepping, 1, 1) \ | 111 F(DebugPrepareStepInIfStepping, 1, 1) \ |
| 112 F(FlattenString, 1, 1) \ | 112 F(FlattenString, 1, 1) \ |
| 113 F(MigrateInstance, 1, 1) \ | 113 F(MigrateInstance, 1, 1) \ |
| 114 F(NotifyContextDisposed, 0, 1) \ | 114 F(NotifyContextDisposed, 0, 1) \ |
| 115 F(MaxSmi, 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) \ |
| 119 \ | 120 \ |
| 120 /* Conversions */ \ | 121 /* Conversions */ \ |
| 121 F(ToBool, 1, 1) \ | 122 F(ToBool, 1, 1) \ |
| 122 F(Typeof, 1, 1) \ | 123 F(Typeof, 1, 1) \ |
| 123 \ | 124 \ |
| 124 F(StringToNumber, 1, 1) \ | 125 F(StringToNumber, 1, 1) \ |
| (...skipping 57 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 F(ThrowGeneratorStateError, 1, 1) \ | 310 F(ThrowGeneratorStateError, 1, 1) \ |
| 309 \ | 311 \ |
| 310 /* ES5 */ \ | 312 /* ES5 */ \ |
| 311 F(ObjectFreeze, 1, 1) \ | 313 F(ObjectFreeze, 1, 1) \ |
| 312 \ | 314 \ |
| 313 /* Harmony modules */ \ | 315 /* Harmony modules */ \ |
| 314 F(IsJSModule, 1, 1) \ | 316 F(IsJSModule, 1, 1) \ |
| 315 \ | 317 \ |
| 316 /* Harmony symbols */ \ | 318 /* Harmony symbols */ \ |
| 317 F(CreateSymbol, 1, 1) \ | 319 F(CreateSymbol, 1, 1) \ |
| 320 F(CreatePrivateSymbol, 1, 1) \ |
| 318 F(SymbolName, 1, 1) \ | 321 F(SymbolName, 1, 1) \ |
| 322 F(SymbolIsPrivate, 1, 1) \ |
| 319 \ | 323 \ |
| 320 /* Harmony proxies */ \ | 324 /* Harmony proxies */ \ |
| 321 F(CreateJSProxy, 2, 1) \ | 325 F(CreateJSProxy, 2, 1) \ |
| 322 F(CreateJSFunctionProxy, 4, 1) \ | 326 F(CreateJSFunctionProxy, 4, 1) \ |
| 323 F(IsJSProxy, 1, 1) \ | 327 F(IsJSProxy, 1, 1) \ |
| 324 F(IsJSFunctionProxy, 1, 1) \ | 328 F(IsJSFunctionProxy, 1, 1) \ |
| 325 F(GetHandler, 1, 1) \ | 329 F(GetHandler, 1, 1) \ |
| 326 F(GetCallTrap, 1, 1) \ | 330 F(GetCallTrap, 1, 1) \ |
| 327 F(GetConstructTrap, 1, 1) \ | 331 F(GetConstructTrap, 1, 1) \ |
| 328 F(Fix, 1, 1) \ | 332 F(Fix, 1, 1) \ |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 F(OneByteSeqStringSetChar, 3, 1) \ | 622 F(OneByteSeqStringSetChar, 3, 1) \ |
| 619 F(TwoByteSeqStringSetChar, 3, 1) \ | 623 F(TwoByteSeqStringSetChar, 3, 1) \ |
| 620 F(ObjectEquals, 2, 1) \ | 624 F(ObjectEquals, 2, 1) \ |
| 621 F(RandomHeapNumber, 0, 1) \ | 625 F(RandomHeapNumber, 0, 1) \ |
| 622 F(IsObject, 1, 1) \ | 626 F(IsObject, 1, 1) \ |
| 623 F(IsFunction, 1, 1) \ | 627 F(IsFunction, 1, 1) \ |
| 624 F(IsUndetectableObject, 1, 1) \ | 628 F(IsUndetectableObject, 1, 1) \ |
| 625 F(IsSpecObject, 1, 1) \ | 629 F(IsSpecObject, 1, 1) \ |
| 626 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ | 630 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ |
| 627 F(MathPow, 2, 1) \ | 631 F(MathPow, 2, 1) \ |
| 628 F(MathSin, 1, 1) \ | |
| 629 F(MathCos, 1, 1) \ | |
| 630 F(MathTan, 1, 1) \ | |
| 631 F(MathSqrt, 1, 1) \ | 632 F(MathSqrt, 1, 1) \ |
| 632 F(MathLog, 1, 1) \ | 633 F(MathLog, 1, 1) \ |
| 634 F(IsMinusZero, 1, 1) \ |
| 633 F(IsRegExpEquivalent, 2, 1) \ | 635 F(IsRegExpEquivalent, 2, 1) \ |
| 634 F(HasCachedArrayIndex, 1, 1) \ | 636 F(HasCachedArrayIndex, 1, 1) \ |
| 635 F(GetCachedArrayIndex, 1, 1) \ | 637 F(GetCachedArrayIndex, 1, 1) \ |
| 636 F(FastAsciiArrayJoin, 2, 1) \ | 638 F(FastAsciiArrayJoin, 2, 1) \ |
| 637 F(GeneratorNext, 2, 1) \ | 639 F(GeneratorNext, 2, 1) \ |
| 638 F(GeneratorThrow, 2, 1) \ | 640 F(GeneratorThrow, 2, 1) \ |
| 639 F(DebugBreakInOptimizedCode, 0, 1) | 641 F(DebugBreakInOptimizedCode, 0, 1) |
| 640 | 642 |
| 641 | 643 |
| 642 // ---------------------------------------------------------------------------- | 644 // ---------------------------------------------------------------------------- |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 static Handle<Object> CreateArrayLiteralBoilerplate( | 837 static Handle<Object> CreateArrayLiteralBoilerplate( |
| 836 Isolate* isolate, | 838 Isolate* isolate, |
| 837 Handle<FixedArray> literals, | 839 Handle<FixedArray> literals, |
| 838 Handle<FixedArray> elements); | 840 Handle<FixedArray> elements); |
| 839 }; | 841 }; |
| 840 | 842 |
| 841 | 843 |
| 842 //--------------------------------------------------------------------------- | 844 //--------------------------------------------------------------------------- |
| 843 // Constants used by interface to runtime functions. | 845 // Constants used by interface to runtime functions. |
| 844 | 846 |
| 847 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
| 848 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
| 849 |
| 845 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 850 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 846 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 851 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 847 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 852 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
| 848 | 853 |
| 849 } } // namespace v8::internal | 854 } } // namespace v8::internal |
| 850 | 855 |
| 851 #endif // V8_RUNTIME_H_ | 856 #endif // V8_RUNTIME_H_ |
| OLD | NEW |