| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 F(AllocateInNewSpace, 1, 1) \ | 104 F(AllocateInNewSpace, 1, 1) \ |
| 105 F(AllocateInTargetSpace, 2, 1) \ | 105 F(AllocateInTargetSpace, 2, 1) \ |
| 106 F(SetNativeFlag, 1, 1) \ | 106 F(SetNativeFlag, 1, 1) \ |
| 107 F(SetInlineBuiltinFlag, 1, 1) \ | 107 F(SetInlineBuiltinFlag, 1, 1) \ |
| 108 F(StoreArrayLiteralElement, 5, 1) \ | 108 F(StoreArrayLiteralElement, 5, 1) \ |
| 109 F(DebugCallbackSupportsStepping, 1, 1) \ | 109 F(DebugCallbackSupportsStepping, 1, 1) \ |
| 110 F(DebugPrepareStepInIfStepping, 1, 1) \ | 110 F(DebugPrepareStepInIfStepping, 1, 1) \ |
| 111 F(FlattenString, 1, 1) \ | 111 F(FlattenString, 1, 1) \ |
| 112 F(TryMigrateInstance, 1, 1) \ | 112 F(TryMigrateInstance, 1, 1) \ |
| 113 F(NotifyContextDisposed, 0, 1) \ | 113 F(NotifyContextDisposed, 0, 1) \ |
| 114 F(MaxSmi, 0, 1) \ | |
| 115 \ | 114 \ |
| 116 /* Array join support */ \ | 115 /* Array join support */ \ |
| 117 F(PushIfAbsent, 2, 1) \ | 116 F(PushIfAbsent, 2, 1) \ |
| 118 F(ArrayConcat, 1, 1) \ | 117 F(ArrayConcat, 1, 1) \ |
| 119 \ | 118 \ |
| 120 /* Conversions */ \ | 119 /* Conversions */ \ |
| 121 F(ToBool, 1, 1) \ | 120 F(ToBool, 1, 1) \ |
| 122 F(Typeof, 1, 1) \ | 121 F(Typeof, 1, 1) \ |
| 123 \ | 122 \ |
| 124 F(StringToNumber, 1, 1) \ | 123 F(StringToNumber, 1, 1) \ |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 F(UnwrapGlobalProxy, 1, 1) \ | 359 F(UnwrapGlobalProxy, 1, 1) \ |
| 361 F(IsAccessAllowedForObserver, 3, 1) \ | 360 F(IsAccessAllowedForObserver, 3, 1) \ |
| 362 \ | 361 \ |
| 363 /* Harmony typed arrays */ \ | 362 /* Harmony typed arrays */ \ |
| 364 F(ArrayBufferInitialize, 2, 1)\ | 363 F(ArrayBufferInitialize, 2, 1)\ |
| 365 F(ArrayBufferGetByteLength, 1, 1)\ | 364 F(ArrayBufferGetByteLength, 1, 1)\ |
| 366 F(ArrayBufferSliceImpl, 3, 1) \ | 365 F(ArrayBufferSliceImpl, 3, 1) \ |
| 367 F(ArrayBufferIsView, 1, 1) \ | 366 F(ArrayBufferIsView, 1, 1) \ |
| 368 F(ArrayBufferNeuter, 1, 1) \ | 367 F(ArrayBufferNeuter, 1, 1) \ |
| 369 \ | 368 \ |
| 370 F(TypedArrayInitialize, 5, 1) \ | |
| 371 F(TypedArrayInitializeFromArrayLike, 4, 1) \ | 369 F(TypedArrayInitializeFromArrayLike, 4, 1) \ |
| 372 F(TypedArrayGetBuffer, 1, 1) \ | 370 F(TypedArrayGetBuffer, 1, 1) \ |
| 373 F(TypedArrayGetByteLength, 1, 1) \ | 371 F(TypedArrayGetByteLength, 1, 1) \ |
| 374 F(TypedArrayGetByteOffset, 1, 1) \ | 372 F(TypedArrayGetByteOffset, 1, 1) \ |
| 375 F(TypedArrayGetLength, 1, 1) \ | 373 F(TypedArrayGetLength, 1, 1) \ |
| 376 F(TypedArraySetFastCases, 3, 1) \ | 374 F(TypedArraySetFastCases, 3, 1) \ |
| 377 \ | 375 \ |
| 378 F(DataViewInitialize, 4, 1) \ | |
| 379 F(DataViewGetBuffer, 1, 1) \ | 376 F(DataViewGetBuffer, 1, 1) \ |
| 380 F(DataViewGetByteLength, 1, 1) \ | 377 F(DataViewGetByteLength, 1, 1) \ |
| 381 F(DataViewGetByteOffset, 1, 1) \ | 378 F(DataViewGetByteOffset, 1, 1) \ |
| 382 F(DataViewGetInt8, 3, 1) \ | 379 F(DataViewGetInt8, 3, 1) \ |
| 383 F(DataViewGetUint8, 3, 1) \ | 380 F(DataViewGetUint8, 3, 1) \ |
| 384 F(DataViewGetInt16, 3, 1) \ | 381 F(DataViewGetInt16, 3, 1) \ |
| 385 F(DataViewGetUint16, 3, 1) \ | 382 F(DataViewGetUint16, 3, 1) \ |
| 386 F(DataViewGetInt32, 3, 1) \ | 383 F(DataViewGetInt32, 3, 1) \ |
| 387 F(DataViewGetUint32, 3, 1) \ | 384 F(DataViewGetUint32, 3, 1) \ |
| 388 F(DataViewGetFloat32, 3, 1) \ | 385 F(DataViewGetFloat32, 3, 1) \ |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 F(Log, 3, 1) \ | 650 F(Log, 3, 1) \ |
| 654 F(StringAdd, 2, 1) \ | 651 F(StringAdd, 2, 1) \ |
| 655 F(SubString, 3, 1) \ | 652 F(SubString, 3, 1) \ |
| 656 F(StringCompare, 2, 1) \ | 653 F(StringCompare, 2, 1) \ |
| 657 F(RegExpExec, 4, 1) \ | 654 F(RegExpExec, 4, 1) \ |
| 658 F(RegExpConstructResult, 3, 1) \ | 655 F(RegExpConstructResult, 3, 1) \ |
| 659 F(GetFromCache, 2, 1) \ | 656 F(GetFromCache, 2, 1) \ |
| 660 F(NumberToString, 1, 1) \ | 657 F(NumberToString, 1, 1) \ |
| 661 F(DoubleHi, 1, 1) \ | 658 F(DoubleHi, 1, 1) \ |
| 662 F(DoubleLo, 1, 1) \ | 659 F(DoubleLo, 1, 1) \ |
| 663 F(ConstructDouble, 2, 1) | 660 F(ConstructDouble, 2, 1) \ |
| 661 F(TypedArrayInitialize, 5, 1) \ |
| 662 F(DataViewInitialize, 4, 1) \ |
| 663 F(MaxSmi, 0, 1) |
| 664 | 664 |
| 665 | 665 |
| 666 //--------------------------------------------------------------------------- | 666 //--------------------------------------------------------------------------- |
| 667 // Runtime provides access to all C++ runtime functions. | 667 // Runtime provides access to all C++ runtime functions. |
| 668 | 668 |
| 669 class RuntimeState { | 669 class RuntimeState { |
| 670 public: | 670 public: |
| 671 StaticResource<ConsStringIteratorOp>* string_iterator() { | 671 StaticResource<ConsStringIteratorOp>* string_iterator() { |
| 672 return &string_iterator_; | 672 return &string_iterator_; |
| 673 } | 673 } |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; | 868 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
| 869 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; | 869 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
| 870 | 870 |
| 871 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 871 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 872 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 872 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 873 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; | 873 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; |
| 874 | 874 |
| 875 } } // namespace v8::internal | 875 } } // namespace v8::internal |
| 876 | 876 |
| 877 #endif // V8_RUNTIME_H_ | 877 #endif // V8_RUNTIME_H_ |
| OLD | NEW |