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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 F(IsJSModule, 1, 1) \ | 550 F(IsJSModule, 1, 1) \ |
551 F(PushModuleContext, 2, 1) \ | 551 F(PushModuleContext, 2, 1) \ |
552 F(DeclareModules, 1, 1) \ | 552 F(DeclareModules, 1, 1) \ |
553 F(DeleteLookupSlot, 2, 1) \ | 553 F(DeleteLookupSlot, 2, 1) \ |
554 F(StoreLookupSlot, 4, 1) \ | 554 F(StoreLookupSlot, 4, 1) \ |
555 F(GetArgumentsProperty, 1, 1) \ | 555 F(GetArgumentsProperty, 1, 1) \ |
556 F(ArgumentsLength, 0, 1) \ | 556 F(ArgumentsLength, 0, 1) \ |
557 F(Arguments, 1, 1) | 557 F(Arguments, 1, 1) |
558 | 558 |
559 | 559 |
| 560 #define FOR_EACH_INTRINSIC_SIMD(F) \ |
| 561 F(CreateFloat32x4, 4, 1) \ |
| 562 F(NewFloat32x4Wrapper, 1, 1) \ |
| 563 F(Float32x4Check, 1, 1) \ |
| 564 F(Float32x4ExtractLane, 2, 1) \ |
| 565 F(Float32x4Equals, 2, 1) \ |
| 566 F(Float32x4SameValue, 2, 1) \ |
| 567 F(Float32x4SameValueZero, 2, 1) |
| 568 |
| 569 |
560 #define FOR_EACH_INTRINSIC_STRINGS(F) \ | 570 #define FOR_EACH_INTRINSIC_STRINGS(F) \ |
561 F(StringReplaceOneCharWithString, 3, 1) \ | 571 F(StringReplaceOneCharWithString, 3, 1) \ |
562 F(StringIndexOf, 3, 1) \ | 572 F(StringIndexOf, 3, 1) \ |
563 F(StringLastIndexOf, 3, 1) \ | 573 F(StringLastIndexOf, 3, 1) \ |
564 F(StringLocaleCompare, 2, 1) \ | 574 F(StringLocaleCompare, 2, 1) \ |
565 F(SubStringRT, 3, 1) \ | 575 F(SubStringRT, 3, 1) \ |
566 F(SubString, 3, 1) \ | 576 F(SubString, 3, 1) \ |
567 F(StringAddRT, 2, 1) \ | 577 F(StringAddRT, 2, 1) \ |
568 F(StringAdd, 2, 1) \ | 578 F(StringAdd, 2, 1) \ |
569 F(InternalizeString, 1, 1) \ | 579 F(InternalizeString, 1, 1) \ |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 FOR_EACH_INTRINSIC_JSON(F) \ | 735 FOR_EACH_INTRINSIC_JSON(F) \ |
726 FOR_EACH_INTRINSIC_LITERALS(F) \ | 736 FOR_EACH_INTRINSIC_LITERALS(F) \ |
727 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 737 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ |
728 FOR_EACH_INTRINSIC_MATHS(F) \ | 738 FOR_EACH_INTRINSIC_MATHS(F) \ |
729 FOR_EACH_INTRINSIC_NUMBERS(F) \ | 739 FOR_EACH_INTRINSIC_NUMBERS(F) \ |
730 FOR_EACH_INTRINSIC_OBJECT(F) \ | 740 FOR_EACH_INTRINSIC_OBJECT(F) \ |
731 FOR_EACH_INTRINSIC_OBSERVE(F) \ | 741 FOR_EACH_INTRINSIC_OBSERVE(F) \ |
732 FOR_EACH_INTRINSIC_PROXY(F) \ | 742 FOR_EACH_INTRINSIC_PROXY(F) \ |
733 FOR_EACH_INTRINSIC_REGEXP(F) \ | 743 FOR_EACH_INTRINSIC_REGEXP(F) \ |
734 FOR_EACH_INTRINSIC_SCOPES(F) \ | 744 FOR_EACH_INTRINSIC_SCOPES(F) \ |
| 745 FOR_EACH_INTRINSIC_SIMD(F) \ |
735 FOR_EACH_INTRINSIC_STRINGS(F) \ | 746 FOR_EACH_INTRINSIC_STRINGS(F) \ |
736 FOR_EACH_INTRINSIC_SYMBOL(F) \ | 747 FOR_EACH_INTRINSIC_SYMBOL(F) \ |
737 FOR_EACH_INTRINSIC_TEST(F) \ | 748 FOR_EACH_INTRINSIC_TEST(F) \ |
738 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ | 749 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ |
739 FOR_EACH_INTRINSIC_URI(F) | 750 FOR_EACH_INTRINSIC_URI(F) |
740 | 751 |
741 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, | 752 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, |
742 // either returning an object or a pair. | 753 // either returning an object or a pair. |
743 #define FOR_EACH_INTRINSIC(F) \ | 754 #define FOR_EACH_INTRINSIC(F) \ |
744 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ | 755 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 947 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
937 return size == 1 || size == 2 || size == 4; | 948 return size == 1 || size == 2 || size == 4; |
938 } | 949 } |
939 | 950 |
940 #endif | 951 #endif |
941 | 952 |
942 } // namespace internal | 953 } // namespace internal |
943 } // namespace v8 | 954 } // namespace v8 |
944 | 955 |
945 #endif // V8_RUNTIME_RUNTIME_H_ | 956 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |