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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 F(IsJSModule, 1, 1) \ | 558 F(IsJSModule, 1, 1) \ |
559 F(PushModuleContext, 2, 1) \ | 559 F(PushModuleContext, 2, 1) \ |
560 F(DeclareModules, 1, 1) \ | 560 F(DeclareModules, 1, 1) \ |
561 F(DeleteLookupSlot, 2, 1) \ | 561 F(DeleteLookupSlot, 2, 1) \ |
562 F(StoreLookupSlot, 4, 1) \ | 562 F(StoreLookupSlot, 4, 1) \ |
563 F(GetArgumentsProperty, 1, 1) \ | 563 F(GetArgumentsProperty, 1, 1) \ |
564 F(ArgumentsLength, 0, 1) \ | 564 F(ArgumentsLength, 0, 1) \ |
565 F(Arguments, 1, 1) | 565 F(Arguments, 1, 1) |
566 | 566 |
567 | 567 |
568 #define FOR_EACH_INTRINSIC_SIMD(F) \ | 568 #define FOR_EACH_INTRINSIC_SIMD(F) \ |
569 F(CreateFloat32x4, 4, 1) \ | 569 F(CreateFloat32x4, 4, 1) \ |
570 F(NewFloat32x4Wrapper, 1, 1) \ | 570 F(CreateInt32x4, 4, 1) \ |
571 F(Float32x4Check, 1, 1) \ | 571 F(CreateBool32x4, 4, 1) \ |
572 F(Float32x4ExtractLane, 2, 1) \ | 572 F(CreateInt16x8, 8, 1) \ |
573 F(Float32x4Equals, 2, 1) \ | 573 F(CreateBool16x8, 8, 1) \ |
574 F(Float32x4SameValue, 2, 1) \ | 574 F(CreateInt8x16, 16, 1) \ |
575 F(Float32x4SameValueZero, 2, 1) | 575 F(CreateBool8x16, 16, 1) \ |
| 576 F(NewFloat32x4Wrapper, 1, 1) \ |
| 577 F(NewInt32x4Wrapper, 1, 1) \ |
| 578 F(NewBool32x4Wrapper, 1, 1) \ |
| 579 F(NewInt16x8Wrapper, 1, 1) \ |
| 580 F(NewBool16x8Wrapper, 1, 1) \ |
| 581 F(NewInt8x16Wrapper, 1, 1) \ |
| 582 F(NewBool8x16Wrapper, 1, 1) \ |
| 583 F(Float32x4Check, 1, 1) \ |
| 584 F(Int32x4Check, 1, 1) \ |
| 585 F(Bool32x4Check, 1, 1) \ |
| 586 F(Int16x8Check, 1, 1) \ |
| 587 F(Bool16x8Check, 1, 1) \ |
| 588 F(Int8x16Check, 1, 1) \ |
| 589 F(Bool8x16Check, 1, 1) \ |
| 590 F(Float32x4ExtractLane, 2, 1) \ |
| 591 F(Int32x4ExtractLane, 2, 1) \ |
| 592 F(Bool32x4ExtractLane, 2, 1) \ |
| 593 F(Int16x8ExtractLane, 2, 1) \ |
| 594 F(Int16x8UnsignedExtractLane, 2, 1) \ |
| 595 F(Bool16x8ExtractLane, 2, 1) \ |
| 596 F(Int8x16ExtractLane, 2, 1) \ |
| 597 F(Int8x16UnsignedExtractLane, 2, 1) \ |
| 598 F(Bool8x16ExtractLane, 2, 1) \ |
| 599 F(Float32x4ReplaceLane, 3, 1) \ |
| 600 F(Int32x4ReplaceLane, 3, 1) \ |
| 601 F(Bool32x4ReplaceLane, 3, 1) \ |
| 602 F(Int16x8ReplaceLane, 3, 1) \ |
| 603 F(Bool16x8ReplaceLane, 3, 1) \ |
| 604 F(Int8x16ReplaceLane, 3, 1) \ |
| 605 F(Bool8x16ReplaceLane, 3, 1) \ |
| 606 F(Float32x4Equals, 2, 1) \ |
| 607 F(Int32x4Equals, 2, 1) \ |
| 608 F(Bool32x4Equals, 2, 1) \ |
| 609 F(Int16x8Equals, 2, 1) \ |
| 610 F(Bool16x8Equals, 2, 1) \ |
| 611 F(Int8x16Equals, 2, 1) \ |
| 612 F(Bool8x16Equals, 2, 1) \ |
| 613 F(Float32x4SameValue, 2, 1) \ |
| 614 F(Int32x4SameValue, 2, 1) \ |
| 615 F(Bool32x4SameValue, 2, 1) \ |
| 616 F(Int16x8SameValue, 2, 1) \ |
| 617 F(Bool16x8SameValue, 2, 1) \ |
| 618 F(Int8x16SameValue, 2, 1) \ |
| 619 F(Bool8x16SameValue, 2, 1) \ |
| 620 F(Float32x4SameValueZero, 2, 1) \ |
| 621 F(Int32x4SameValueZero, 2, 1) \ |
| 622 F(Bool32x4SameValueZero, 2, 1) \ |
| 623 F(Int16x8SameValueZero, 2, 1) \ |
| 624 F(Bool16x8SameValueZero, 2, 1) \ |
| 625 F(Int8x16SameValueZero, 2, 1) \ |
| 626 F(Bool8x16SameValueZero, 2, 1) |
576 | 627 |
577 | 628 |
578 #define FOR_EACH_INTRINSIC_STRINGS(F) \ | 629 #define FOR_EACH_INTRINSIC_STRINGS(F) \ |
579 F(StringReplaceOneCharWithString, 3, 1) \ | 630 F(StringReplaceOneCharWithString, 3, 1) \ |
580 F(StringIndexOf, 3, 1) \ | 631 F(StringIndexOf, 3, 1) \ |
581 F(StringLastIndexOf, 3, 1) \ | 632 F(StringLastIndexOf, 3, 1) \ |
582 F(StringLocaleCompare, 2, 1) \ | 633 F(StringLocaleCompare, 2, 1) \ |
583 F(SubStringRT, 3, 1) \ | 634 F(SubStringRT, 3, 1) \ |
584 F(SubString, 3, 1) \ | 635 F(SubString, 3, 1) \ |
585 F(StringAddRT, 2, 1) \ | 636 F(StringAddRT, 2, 1) \ |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1033 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
983 return size == 1 || size == 2 || size == 4; | 1034 return size == 1 || size == 2 || size == 4; |
984 } | 1035 } |
985 | 1036 |
986 #endif | 1037 #endif |
987 | 1038 |
988 } // namespace internal | 1039 } // namespace internal |
989 } // namespace v8 | 1040 } // namespace v8 |
990 | 1041 |
991 #endif // V8_RUNTIME_RUNTIME_H_ | 1042 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |