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/unicode.h" | 10 #include "src/unicode.h" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 F(MaxSmi, 0, 1) \ | 429 F(MaxSmi, 0, 1) \ |
430 F(IsSmi, 1, 1) \ | 430 F(IsSmi, 1, 1) \ |
431 F(IsNonNegativeSmi, 1, 1) \ | 431 F(IsNonNegativeSmi, 1, 1) \ |
432 F(GetRootNaN, 0, 1) | 432 F(GetRootNaN, 0, 1) |
433 | 433 |
434 | 434 |
435 #define FOR_EACH_INTRINSIC_OBJECT(F) \ | 435 #define FOR_EACH_INTRINSIC_OBJECT(F) \ |
436 F(GetPrototype, 1, 1) \ | 436 F(GetPrototype, 1, 1) \ |
437 F(InternalSetPrototype, 2, 1) \ | 437 F(InternalSetPrototype, 2, 1) \ |
438 F(SetPrototype, 2, 1) \ | 438 F(SetPrototype, 2, 1) \ |
439 F(IsInPrototypeChain, 2, 1) \ | |
440 F(GetOwnProperty, 2, 1) \ | 439 F(GetOwnProperty, 2, 1) \ |
441 F(PreventExtensions, 1, 1) \ | 440 F(PreventExtensions, 1, 1) \ |
442 F(IsExtensible, 1, 1) \ | 441 F(IsExtensible, 1, 1) \ |
443 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 442 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
444 F(ObjectFreeze, 1, 1) \ | 443 F(ObjectFreeze, 1, 1) \ |
445 F(ObjectSeal, 1, 1) \ | 444 F(ObjectSeal, 1, 1) \ |
446 F(GetProperty, 2, 1) \ | 445 F(GetProperty, 2, 1) \ |
447 F(GetPropertyStrong, 2, 1) \ | 446 F(GetPropertyStrong, 2, 1) \ |
448 F(KeyedGetProperty, 2, 1) \ | 447 F(KeyedGetProperty, 2, 1) \ |
449 F(KeyedGetPropertyStrong, 2, 1) \ | 448 F(KeyedGetPropertyStrong, 2, 1) \ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 F(HeapObjectGetMap, 1, 1) \ | 487 F(HeapObjectGetMap, 1, 1) \ |
489 F(MapGetInstanceType, 1, 1) \ | 488 F(MapGetInstanceType, 1, 1) \ |
490 F(ObjectEquals, 2, 1) \ | 489 F(ObjectEquals, 2, 1) \ |
491 F(IsObject, 1, 1) \ | 490 F(IsObject, 1, 1) \ |
492 F(IsSpecObject, 1, 1) \ | 491 F(IsSpecObject, 1, 1) \ |
493 F(IsStrong, 1, 1) \ | 492 F(IsStrong, 1, 1) \ |
494 F(ClassOf, 1, 1) \ | 493 F(ClassOf, 1, 1) \ |
495 F(DefineGetterPropertyUnchecked, 4, 1) \ | 494 F(DefineGetterPropertyUnchecked, 4, 1) \ |
496 F(DefineSetterPropertyUnchecked, 4, 1) \ | 495 F(DefineSetterPropertyUnchecked, 4, 1) \ |
497 F(ToObject, 1, 1) \ | 496 F(ToObject, 1, 1) \ |
498 F(StrictEquals, 2, 1) | 497 F(StrictEquals, 2, 1) \ |
| 498 F(InstanceOf, 2, 1) \ |
| 499 F(HasInPrototypeChain, 2, 1) |
499 | 500 |
500 | 501 |
501 #define FOR_EACH_INTRINSIC_OBSERVE(F) \ | 502 #define FOR_EACH_INTRINSIC_OBSERVE(F) \ |
502 F(IsObserved, 1, 1) \ | 503 F(IsObserved, 1, 1) \ |
503 F(SetIsObserved, 1, 1) \ | 504 F(SetIsObserved, 1, 1) \ |
504 F(EnqueueMicrotask, 1, 1) \ | 505 F(EnqueueMicrotask, 1, 1) \ |
505 F(RunMicrotasks, 0, 1) \ | 506 F(RunMicrotasks, 0, 1) \ |
506 F(DeliverObservationChangeRecords, 2, 1) \ | 507 F(DeliverObservationChangeRecords, 2, 1) \ |
507 F(GetObservationState, 0, 1) \ | 508 F(GetObservationState, 0, 1) \ |
508 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ | 509 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1139 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
1139 return size == 1 || size == 2 || size == 4; | 1140 return size == 1 || size == 2 || size == 4; |
1140 } | 1141 } |
1141 | 1142 |
1142 #endif | 1143 #endif |
1143 | 1144 |
1144 } // namespace internal | 1145 } // namespace internal |
1145 } // namespace v8 | 1146 } // namespace v8 |
1146 | 1147 |
1147 #endif // V8_RUNTIME_RUNTIME_H_ | 1148 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |