OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 F(CreateJSProxy, 2, 1) \ | 296 F(CreateJSProxy, 2, 1) \ |
297 F(CreateJSFunctionProxy, 4, 1) \ | 297 F(CreateJSFunctionProxy, 4, 1) \ |
298 F(IsJSFunctionProxy, 1, 1) \ | 298 F(IsJSFunctionProxy, 1, 1) \ |
299 F(GetHandler, 1, 1) \ | 299 F(GetHandler, 1, 1) \ |
300 F(GetCallTrap, 1, 1) \ | 300 F(GetCallTrap, 1, 1) \ |
301 F(GetConstructTrap, 1, 1) \ | 301 F(GetConstructTrap, 1, 1) \ |
302 F(Fix, 1, 1) \ | 302 F(Fix, 1, 1) \ |
303 \ | 303 \ |
304 /* Harmony sets */ \ | 304 /* Harmony sets */ \ |
305 F(SetInitialize, 1, 1) \ | 305 F(SetInitialize, 1, 1) \ |
| 306 F(SetAdd, 2, 1) \ |
| 307 F(SetDelete, 2, 1) \ |
306 F(SetClear, 1, 1) \ | 308 F(SetClear, 1, 1) \ |
307 \ | 309 \ |
308 F(SetIteratorInitialize, 3, 1) \ | 310 F(SetIteratorInitialize, 3, 1) \ |
309 F(SetIteratorClone, 1, 1) \ | 311 F(SetIteratorClone, 1, 1) \ |
310 F(SetIteratorNext, 2, 1) \ | 312 F(SetIteratorNext, 2, 1) \ |
311 F(SetIteratorDetails, 1, 1) \ | 313 F(SetIteratorDetails, 1, 1) \ |
312 \ | 314 \ |
313 /* Harmony maps */ \ | 315 /* Harmony maps */ \ |
314 F(MapInitialize, 1, 1) \ | 316 F(MapInitialize, 1, 1) \ |
| 317 F(MapDelete, 2, 1) \ |
315 F(MapClear, 1, 1) \ | 318 F(MapClear, 1, 1) \ |
| 319 F(MapSet, 3, 1) \ |
316 \ | 320 \ |
317 F(MapIteratorInitialize, 3, 1) \ | 321 F(MapIteratorInitialize, 3, 1) \ |
318 F(MapIteratorClone, 1, 1) \ | 322 F(MapIteratorClone, 1, 1) \ |
319 F(MapIteratorNext, 2, 1) \ | 323 F(MapIteratorNext, 2, 1) \ |
320 F(MapIteratorDetails, 1, 1) \ | 324 F(MapIteratorDetails, 1, 1) \ |
321 \ | 325 \ |
322 /* Harmony weak maps and sets */ \ | 326 /* Harmony weak maps and sets */ \ |
323 F(WeakCollectionInitialize, 1, 1) \ | 327 F(WeakCollectionInitialize, 1, 1) \ |
324 F(WeakCollectionGet, 2, 1) \ | 328 F(WeakCollectionGet, 2, 1) \ |
325 F(WeakCollectionHas, 2, 1) \ | 329 F(WeakCollectionHas, 2, 1) \ |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 F(TypedArrayGetLength, 1, 1) \ | 721 F(TypedArrayGetLength, 1, 1) \ |
718 /* ArrayBuffer */ \ | 722 /* ArrayBuffer */ \ |
719 F(ArrayBufferGetByteLength, 1, 1) \ | 723 F(ArrayBufferGetByteLength, 1, 1) \ |
720 /* Maths */ \ | 724 /* Maths */ \ |
721 F(ConstructDouble, 2, 1) \ | 725 F(ConstructDouble, 2, 1) \ |
722 F(DoubleHi, 1, 1) \ | 726 F(DoubleHi, 1, 1) \ |
723 F(DoubleLo, 1, 1) \ | 727 F(DoubleLo, 1, 1) \ |
724 F(MathSqrtRT, 1, 1) \ | 728 F(MathSqrtRT, 1, 1) \ |
725 F(MathLogRT, 1, 1) \ | 729 F(MathLogRT, 1, 1) \ |
726 /* ES6 Collections */ \ | 730 /* ES6 Collections */ \ |
727 F(MapDelete, 2, 1) \ | |
728 F(MapGet, 2, 1) \ | 731 F(MapGet, 2, 1) \ |
729 F(MapGetSize, 1, 1) \ | 732 F(MapGetSize, 1, 1) \ |
730 F(MapHas, 2, 1) \ | 733 F(MapHas, 2, 1) \ |
731 F(MapSet, 3, 1) \ | |
732 F(SetAdd, 2, 1) \ | |
733 F(SetDelete, 2, 1) \ | |
734 F(SetGetSize, 1, 1) \ | 734 F(SetGetSize, 1, 1) \ |
735 F(SetHas, 2, 1) | 735 F(SetHas, 2, 1) |
736 | 736 |
737 | 737 |
738 //--------------------------------------------------------------------------- | 738 //--------------------------------------------------------------------------- |
739 // Runtime provides access to all C++ runtime functions. | 739 // Runtime provides access to all C++ runtime functions. |
740 | 740 |
741 class RuntimeState { | 741 class RuntimeState { |
742 public: | 742 public: |
743 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { | 743 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 891 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
892 | 892 |
893 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 893 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
894 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 894 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
895 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; | 895 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; |
896 | 896 |
897 } // namespace internal | 897 } // namespace internal |
898 } // namespace v8 | 898 } // namespace v8 |
899 | 899 |
900 #endif // V8_RUNTIME_RUNTIME_H_ | 900 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |