| 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 F(JSValueGetValue, 1, 1) \ | 490 F(JSValueGetValue, 1, 1) \ |
| 491 F(HeapObjectGetMap, 1, 1) \ | 491 F(HeapObjectGetMap, 1, 1) \ |
| 492 F(MapGetInstanceType, 1, 1) \ | 492 F(MapGetInstanceType, 1, 1) \ |
| 493 F(ObjectEquals, 2, 1) \ | 493 F(ObjectEquals, 2, 1) \ |
| 494 F(IsObject, 1, 1) \ | 494 F(IsObject, 1, 1) \ |
| 495 F(IsUndetectableObject, 1, 1) \ | 495 F(IsUndetectableObject, 1, 1) \ |
| 496 F(IsSpecObject, 1, 1) \ | 496 F(IsSpecObject, 1, 1) \ |
| 497 F(IsStrong, 1, 1) \ | 497 F(IsStrong, 1, 1) \ |
| 498 F(ClassOf, 1, 1) \ | 498 F(ClassOf, 1, 1) \ |
| 499 F(DefineGetterPropertyUnchecked, 4, 1) \ | 499 F(DefineGetterPropertyUnchecked, 4, 1) \ |
| 500 F(DefineSetterPropertyUnchecked, 4, 1) | 500 F(DefineSetterPropertyUnchecked, 4, 1) \ |
| 501 F(ToObject, 1, 1) |
| 501 | 502 |
| 502 | 503 |
| 503 #define FOR_EACH_INTRINSIC_OBSERVE(F) \ | 504 #define FOR_EACH_INTRINSIC_OBSERVE(F) \ |
| 504 F(IsObserved, 1, 1) \ | 505 F(IsObserved, 1, 1) \ |
| 505 F(SetIsObserved, 1, 1) \ | 506 F(SetIsObserved, 1, 1) \ |
| 506 F(EnqueueMicrotask, 1, 1) \ | 507 F(EnqueueMicrotask, 1, 1) \ |
| 507 F(RunMicrotasks, 0, 1) \ | 508 F(RunMicrotasks, 0, 1) \ |
| 508 F(DeliverObservationChangeRecords, 2, 1) \ | 509 F(DeliverObservationChangeRecords, 2, 1) \ |
| 509 F(GetObservationState, 0, 1) \ | 510 F(GetObservationState, 0, 1) \ |
| 510 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ | 511 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 F(DeclareModules, 1, 1) \ | 564 F(DeclareModules, 1, 1) \ |
| 564 F(DeleteLookupSlot, 2, 1) \ | 565 F(DeleteLookupSlot, 2, 1) \ |
| 565 F(StoreLookupSlot, 4, 1) \ | 566 F(StoreLookupSlot, 4, 1) \ |
| 566 F(GetArgumentsProperty, 1, 1) \ | 567 F(GetArgumentsProperty, 1, 1) \ |
| 567 F(ArgumentsLength, 0, 1) \ | 568 F(ArgumentsLength, 0, 1) \ |
| 568 F(Arguments, 1, 1) | 569 F(Arguments, 1, 1) |
| 569 | 570 |
| 570 | 571 |
| 571 #define FOR_EACH_INTRINSIC_SIMD(F) \ | 572 #define FOR_EACH_INTRINSIC_SIMD(F) \ |
| 572 F(CreateFloat32x4, 4, 1) \ | 573 F(CreateFloat32x4, 4, 1) \ |
| 573 F(NewFloat32x4Wrapper, 1, 1) \ | |
| 574 F(Float32x4Check, 1, 1) \ | 574 F(Float32x4Check, 1, 1) \ |
| 575 F(Float32x4ExtractLane, 2, 1) \ | 575 F(Float32x4ExtractLane, 2, 1) \ |
| 576 F(Float32x4Equals, 2, 1) \ | 576 F(Float32x4Equals, 2, 1) \ |
| 577 F(Float32x4SameValue, 2, 1) \ | 577 F(Float32x4SameValue, 2, 1) \ |
| 578 F(Float32x4SameValueZero, 2, 1) | 578 F(Float32x4SameValueZero, 2, 1) |
| 579 | 579 |
| 580 | 580 |
| 581 #define FOR_EACH_INTRINSIC_STRINGS(F) \ | 581 #define FOR_EACH_INTRINSIC_STRINGS(F) \ |
| 582 F(StringReplaceOneCharWithString, 3, 1) \ | 582 F(StringReplaceOneCharWithString, 3, 1) \ |
| 583 F(StringIndexOf, 3, 1) \ | 583 F(StringIndexOf, 3, 1) \ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 613 F(TwoByteSeqStringSetChar, 3, 1) \ | 613 F(TwoByteSeqStringSetChar, 3, 1) \ |
| 614 F(StringCharCodeAt, 2, 1) \ | 614 F(StringCharCodeAt, 2, 1) \ |
| 615 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ | 615 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ |
| 616 F(StringGetLength, 1, 1) | 616 F(StringGetLength, 1, 1) |
| 617 | 617 |
| 618 | 618 |
| 619 #define FOR_EACH_INTRINSIC_SYMBOL(F) \ | 619 #define FOR_EACH_INTRINSIC_SYMBOL(F) \ |
| 620 F(CreateSymbol, 1, 1) \ | 620 F(CreateSymbol, 1, 1) \ |
| 621 F(CreatePrivateSymbol, 1, 1) \ | 621 F(CreatePrivateSymbol, 1, 1) \ |
| 622 F(CreateGlobalPrivateSymbol, 1, 1) \ | 622 F(CreateGlobalPrivateSymbol, 1, 1) \ |
| 623 F(NewSymbolWrapper, 1, 1) \ | |
| 624 F(SymbolDescription, 1, 1) \ | 623 F(SymbolDescription, 1, 1) \ |
| 625 F(SymbolRegistry, 0, 1) \ | 624 F(SymbolRegistry, 0, 1) \ |
| 626 F(SymbolIsPrivate, 1, 1) | 625 F(SymbolIsPrivate, 1, 1) |
| 627 | 626 |
| 628 | 627 |
| 629 #define FOR_EACH_INTRINSIC_TEST(F) \ | 628 #define FOR_EACH_INTRINSIC_TEST(F) \ |
| 630 F(DeoptimizeFunction, 1, 1) \ | 629 F(DeoptimizeFunction, 1, 1) \ |
| 631 F(DeoptimizeNow, 0, 1) \ | 630 F(DeoptimizeNow, 0, 1) \ |
| 632 F(RunningInSimulator, 0, 1) \ | 631 F(RunningInSimulator, 0, 1) \ |
| 633 F(IsConcurrentRecompilationSupported, 0, 1) \ | 632 F(IsConcurrentRecompilationSupported, 0, 1) \ |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 984 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
| 986 return size == 1 || size == 2 || size == 4; | 985 return size == 1 || size == 2 || size == 4; |
| 987 } | 986 } |
| 988 | 987 |
| 989 #endif | 988 #endif |
| 990 | 989 |
| 991 } // namespace internal | 990 } // namespace internal |
| 992 } // namespace v8 | 991 } // namespace v8 |
| 993 | 992 |
| 994 #endif // V8_RUNTIME_RUNTIME_H_ | 993 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |