| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 F(AtomicsStore, 3, 1) \ | 59 F(AtomicsStore, 3, 1) \ |
| 60 F(AtomicsAdd, 3, 1) \ | 60 F(AtomicsAdd, 3, 1) \ |
| 61 F(AtomicsSub, 3, 1) \ | 61 F(AtomicsSub, 3, 1) \ |
| 62 F(AtomicsAnd, 3, 1) \ | 62 F(AtomicsAnd, 3, 1) \ |
| 63 F(AtomicsOr, 3, 1) \ | 63 F(AtomicsOr, 3, 1) \ |
| 64 F(AtomicsXor, 3, 1) \ | 64 F(AtomicsXor, 3, 1) \ |
| 65 F(AtomicsExchange, 3, 1) \ | 65 F(AtomicsExchange, 3, 1) \ |
| 66 F(AtomicsIsLockFree, 1, 1) | 66 F(AtomicsIsLockFree, 1, 1) |
| 67 | 67 |
| 68 | 68 |
| 69 #define FOR_EACH_INTRINSIC_SIMD(F) \ |
| 70 F(CreateFloat32x4, 4, 1) \ |
| 71 F(Float32x4Check, 1, 1) \ |
| 72 F(Float32x4ExtractLane, 2, 1) \ |
| 73 F(Float32x4ReplaceLane, 3, 1) \ |
| 74 F(Float32x4Abs, 1, 1) \ |
| 75 F(Float32x4Neg, 1, 1) \ |
| 76 F(Float32x4Sqrt, 1, 1) \ |
| 77 F(Float32x4RecipApprox, 1, 1) \ |
| 78 F(Float32x4RecipSqrtApprox, 1, 1) \ |
| 79 F(Float32x4Add, 2, 1) \ |
| 80 F(Float32x4Sub, 2, 1) \ |
| 81 F(Float32x4Mul, 2, 1) \ |
| 82 F(Float32x4Div, 2, 1) \ |
| 83 F(Float32x4Min, 2, 1) \ |
| 84 F(Float32x4Max, 2, 1) \ |
| 85 F(Float32x4MinNum, 2, 1) \ |
| 86 F(Float32x4MaxNum, 2, 1) \ |
| 87 F(Float32x4Swizzle, 5, 1) \ |
| 88 F(Float32x4Shuffle, 6, 1) |
| 89 |
| 90 |
| 69 #define FOR_EACH_INTRINSIC_CLASSES(F) \ | 91 #define FOR_EACH_INTRINSIC_CLASSES(F) \ |
| 70 F(ThrowNonMethodError, 0, 1) \ | 92 F(ThrowNonMethodError, 0, 1) \ |
| 71 F(ThrowUnsupportedSuperError, 0, 1) \ | 93 F(ThrowUnsupportedSuperError, 0, 1) \ |
| 72 F(ThrowConstructorNonCallableError, 0, 1) \ | 94 F(ThrowConstructorNonCallableError, 0, 1) \ |
| 73 F(ThrowArrayNotSubclassableError, 0, 1) \ | 95 F(ThrowArrayNotSubclassableError, 0, 1) \ |
| 74 F(ThrowStaticPrototypeError, 0, 1) \ | 96 F(ThrowStaticPrototypeError, 0, 1) \ |
| 75 F(ThrowIfStaticPrototype, 1, 1) \ | 97 F(ThrowIfStaticPrototype, 1, 1) \ |
| 76 F(ToMethod, 2, 1) \ | 98 F(ToMethod, 2, 1) \ |
| 77 F(HomeObjectSymbol, 0, 1) \ | 99 F(HomeObjectSymbol, 0, 1) \ |
| 78 F(DefineClass, 6, 1) \ | 100 F(DefineClass, 6, 1) \ |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 FOR_EACH_INTRINSIC_JSON(F) \ | 739 FOR_EACH_INTRINSIC_JSON(F) \ |
| 718 FOR_EACH_INTRINSIC_LITERALS(F) \ | 740 FOR_EACH_INTRINSIC_LITERALS(F) \ |
| 719 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 741 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ |
| 720 FOR_EACH_INTRINSIC_MATHS(F) \ | 742 FOR_EACH_INTRINSIC_MATHS(F) \ |
| 721 FOR_EACH_INTRINSIC_NUMBERS(F) \ | 743 FOR_EACH_INTRINSIC_NUMBERS(F) \ |
| 722 FOR_EACH_INTRINSIC_OBJECT(F) \ | 744 FOR_EACH_INTRINSIC_OBJECT(F) \ |
| 723 FOR_EACH_INTRINSIC_OBSERVE(F) \ | 745 FOR_EACH_INTRINSIC_OBSERVE(F) \ |
| 724 FOR_EACH_INTRINSIC_PROXY(F) \ | 746 FOR_EACH_INTRINSIC_PROXY(F) \ |
| 725 FOR_EACH_INTRINSIC_REGEXP(F) \ | 747 FOR_EACH_INTRINSIC_REGEXP(F) \ |
| 726 FOR_EACH_INTRINSIC_SCOPES(F) \ | 748 FOR_EACH_INTRINSIC_SCOPES(F) \ |
| 749 FOR_EACH_INTRINSIC_SIMD(F) \ |
| 727 FOR_EACH_INTRINSIC_STRINGS(F) \ | 750 FOR_EACH_INTRINSIC_STRINGS(F) \ |
| 728 FOR_EACH_INTRINSIC_SYMBOL(F) \ | 751 FOR_EACH_INTRINSIC_SYMBOL(F) \ |
| 729 FOR_EACH_INTRINSIC_TEST(F) \ | 752 FOR_EACH_INTRINSIC_TEST(F) \ |
| 730 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ | 753 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ |
| 731 FOR_EACH_INTRINSIC_URI(F) | 754 FOR_EACH_INTRINSIC_URI(F) |
| 732 | 755 |
| 733 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, | 756 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, |
| 734 // either returning an object or a pair. | 757 // either returning an object or a pair. |
| 735 #define FOR_EACH_INTRINSIC(F) \ | 758 #define FOR_EACH_INTRINSIC(F) \ |
| 736 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ | 759 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 952 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
| 930 return size == 1 || size == 2 || size == 4; | 953 return size == 1 || size == 2 || size == 4; |
| 931 } | 954 } |
| 932 | 955 |
| 933 #endif | 956 #endif |
| 934 | 957 |
| 935 } // namespace internal | 958 } // namespace internal |
| 936 } // namespace v8 | 959 } // namespace v8 |
| 937 | 960 |
| 938 #endif // V8_RUNTIME_RUNTIME_H_ | 961 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |