| 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) \ |
| 109 F(SetInlineBuiltinFlag, 1, 1) \ | 108 F(SetInlineBuiltinFlag, 1, 1) \ |
| 110 F(StoreArrayLiteralElement, 5, 1) \ | 109 F(StoreArrayLiteralElement, 5, 1) \ |
| 111 F(DebugCallbackSupportsStepping, 1, 1) \ | 110 F(DebugCallbackSupportsStepping, 1, 1) \ |
| 112 F(DebugPrepareStepInIfStepping, 1, 1) \ | 111 F(DebugPrepareStepInIfStepping, 1, 1) \ |
| 113 F(FlattenString, 1, 1) \ | 112 F(FlattenString, 1, 1) \ |
| 114 F(MigrateInstance, 1, 1) \ | 113 F(MigrateInstance, 1, 1) \ |
| 115 F(NotifyContextDisposed, 0, 1) \ | 114 F(NotifyContextDisposed, 0, 1) \ |
| 115 F(MaxSmi, 0, 1) \ |
| 116 \ | 116 \ |
| 117 /* Array join support */ \ | 117 /* Array join support */ \ |
| 118 F(PushIfAbsent, 2, 1) \ | 118 F(PushIfAbsent, 2, 1) \ |
| 119 F(ArrayConcat, 1, 1) \ | 119 F(ArrayConcat, 1, 1) \ |
| 120 \ | 120 \ |
| 121 /* Conversions */ \ | 121 /* Conversions */ \ |
| 122 F(ToBool, 1, 1) \ | 122 F(ToBool, 1, 1) \ |
| 123 F(Typeof, 1, 1) \ | 123 F(Typeof, 1, 1) \ |
| 124 \ | 124 \ |
| 125 F(StringToNumber, 1, 1) \ | 125 F(StringToNumber, 1, 1) \ |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 F(Math_cos, 1, 1) \ | 183 F(Math_cos, 1, 1) \ |
| 184 F(Math_exp, 1, 1) \ | 184 F(Math_exp, 1, 1) \ |
| 185 F(Math_floor, 1, 1) \ | 185 F(Math_floor, 1, 1) \ |
| 186 F(Math_log, 1, 1) \ | 186 F(Math_log, 1, 1) \ |
| 187 F(Math_pow, 2, 1) \ | 187 F(Math_pow, 2, 1) \ |
| 188 F(Math_pow_cfunction, 2, 1) \ | 188 F(Math_pow_cfunction, 2, 1) \ |
| 189 F(RoundNumber, 1, 1) \ | 189 F(RoundNumber, 1, 1) \ |
| 190 F(Math_sin, 1, 1) \ | 190 F(Math_sin, 1, 1) \ |
| 191 F(Math_sqrt, 1, 1) \ | 191 F(Math_sqrt, 1, 1) \ |
| 192 F(Math_tan, 1, 1) \ | 192 F(Math_tan, 1, 1) \ |
| 193 F(PopulateTrigonometricTable, 3, 1) \ | |
| 194 \ | 193 \ |
| 195 /* Regular expressions */ \ | 194 /* Regular expressions */ \ |
| 196 F(RegExpCompile, 3, 1) \ | 195 F(RegExpCompile, 3, 1) \ |
| 197 F(RegExpExec, 4, 1) \ | 196 F(RegExpExec, 4, 1) \ |
| 198 F(RegExpExecMultiple, 4, 1) \ | 197 F(RegExpExecMultiple, 4, 1) \ |
| 199 F(RegExpInitializeObject, 5, 1) \ | 198 F(RegExpInitializeObject, 5, 1) \ |
| 200 F(RegExpConstructResult, 3, 1) \ | 199 F(RegExpConstructResult, 3, 1) \ |
| 201 \ | 200 \ |
| 202 /* JSON */ \ | 201 /* JSON */ \ |
| 203 F(ParseJson, 1, 1) \ | 202 F(ParseJson, 1, 1) \ |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 /* Statements */ \ | 400 /* Statements */ \ |
| 402 F(NewClosure, 3, 1) \ | 401 F(NewClosure, 3, 1) \ |
| 403 F(NewClosureFromStubFailure, 1, 1) \ | 402 F(NewClosureFromStubFailure, 1, 1) \ |
| 404 F(NewObject, 1, 1) \ | 403 F(NewObject, 1, 1) \ |
| 405 F(NewObjectFromBound, 1, 1) \ | 404 F(NewObjectFromBound, 1, 1) \ |
| 406 F(FinalizeInstanceSize, 1, 1) \ | 405 F(FinalizeInstanceSize, 1, 1) \ |
| 407 F(Throw, 1, 1) \ | 406 F(Throw, 1, 1) \ |
| 408 F(ReThrow, 1, 1) \ | 407 F(ReThrow, 1, 1) \ |
| 409 F(ThrowReferenceError, 1, 1) \ | 408 F(ThrowReferenceError, 1, 1) \ |
| 410 F(ThrowNotDateError, 0, 1) \ | 409 F(ThrowNotDateError, 0, 1) \ |
| 410 F(ThrowMessage, 1, 1) \ |
| 411 F(StackGuard, 0, 1) \ | 411 F(StackGuard, 0, 1) \ |
| 412 F(Interrupt, 0, 1) \ | 412 F(Interrupt, 0, 1) \ |
| 413 F(PromoteScheduledException, 0, 1) \ | 413 F(PromoteScheduledException, 0, 1) \ |
| 414 \ | 414 \ |
| 415 /* Contexts */ \ | 415 /* Contexts */ \ |
| 416 F(NewGlobalContext, 2, 1) \ | 416 F(NewGlobalContext, 2, 1) \ |
| 417 F(NewFunctionContext, 1, 1) \ | 417 F(NewFunctionContext, 1, 1) \ |
| 418 F(PushWithContext, 2, 1) \ | 418 F(PushWithContext, 2, 1) \ |
| 419 F(PushCatchContext, 3, 1) \ | 419 F(PushCatchContext, 3, 1) \ |
| 420 F(PushBlockContext, 2, 1) \ | 420 F(PushBlockContext, 2, 1) \ |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 F(ArgumentsLength, 0, 1) \ | 615 F(ArgumentsLength, 0, 1) \ |
| 616 F(Arguments, 1, 1) \ | 616 F(Arguments, 1, 1) \ |
| 617 F(ValueOf, 1, 1) \ | 617 F(ValueOf, 1, 1) \ |
| 618 F(SetValueOf, 2, 1) \ | 618 F(SetValueOf, 2, 1) \ |
| 619 F(DateField, 2 /* date object, field index */, 1) \ | 619 F(DateField, 2 /* date object, field index */, 1) \ |
| 620 F(StringCharFromCode, 1, 1) \ | 620 F(StringCharFromCode, 1, 1) \ |
| 621 F(StringCharAt, 2, 1) \ | 621 F(StringCharAt, 2, 1) \ |
| 622 F(OneByteSeqStringSetChar, 3, 1) \ | 622 F(OneByteSeqStringSetChar, 3, 1) \ |
| 623 F(TwoByteSeqStringSetChar, 3, 1) \ | 623 F(TwoByteSeqStringSetChar, 3, 1) \ |
| 624 F(ObjectEquals, 2, 1) \ | 624 F(ObjectEquals, 2, 1) \ |
| 625 F(RandomHeapNumber, 0, 1) \ | |
| 626 F(IsObject, 1, 1) \ | 625 F(IsObject, 1, 1) \ |
| 627 F(IsFunction, 1, 1) \ | 626 F(IsFunction, 1, 1) \ |
| 628 F(IsUndetectableObject, 1, 1) \ | 627 F(IsUndetectableObject, 1, 1) \ |
| 629 F(IsSpecObject, 1, 1) \ | 628 F(IsSpecObject, 1, 1) \ |
| 630 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ | 629 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ |
| 631 F(MathPow, 2, 1) \ | 630 F(MathPow, 2, 1) \ |
| 632 F(MathSqrt, 1, 1) \ | 631 F(MathSqrt, 1, 1) \ |
| 633 F(MathLog, 1, 1) \ | 632 F(MathLog, 1, 1) \ |
| 634 F(IsMinusZero, 1, 1) \ | 633 F(IsMinusZero, 1, 1) \ |
| 635 F(IsRegExpEquivalent, 2, 1) \ | 634 F(IsRegExpEquivalent, 2, 1) \ |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 static Handle<Object> CreateArrayLiteralBoilerplate( | 836 static Handle<Object> CreateArrayLiteralBoilerplate( |
| 838 Isolate* isolate, | 837 Isolate* isolate, |
| 839 Handle<FixedArray> literals, | 838 Handle<FixedArray> literals, |
| 840 Handle<FixedArray> elements); | 839 Handle<FixedArray> elements); |
| 841 }; | 840 }; |
| 842 | 841 |
| 843 | 842 |
| 844 //--------------------------------------------------------------------------- | 843 //--------------------------------------------------------------------------- |
| 845 // Constants used by interface to runtime functions. | 844 // Constants used by interface to runtime functions. |
| 846 | 845 |
| 846 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
| 847 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
| 848 |
| 847 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 849 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 848 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 850 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 849 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 851 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
| 850 | 852 |
| 851 } } // namespace v8::internal | 853 } } // namespace v8::internal |
| 852 | 854 |
| 853 #endif // V8_RUNTIME_H_ | 855 #endif // V8_RUNTIME_H_ |
| OLD | NEW |