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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 F(NumberAnd, 2, 1) \ | 417 F(NumberAnd, 2, 1) \ |
418 F(NumberXor, 2, 1) \ | 418 F(NumberXor, 2, 1) \ |
419 F(NumberShl, 2, 1) \ | 419 F(NumberShl, 2, 1) \ |
420 F(NumberShr, 2, 1) \ | 420 F(NumberShr, 2, 1) \ |
421 F(NumberSar, 2, 1) \ | 421 F(NumberSar, 2, 1) \ |
422 F(NumberEquals, 2, 1) \ | 422 F(NumberEquals, 2, 1) \ |
423 F(NumberCompare, 3, 1) \ | 423 F(NumberCompare, 3, 1) \ |
424 F(SmiLexicographicCompare, 2, 1) \ | 424 F(SmiLexicographicCompare, 2, 1) \ |
425 F(MaxSmi, 0, 1) \ | 425 F(MaxSmi, 0, 1) \ |
426 F(IsSmi, 1, 1) \ | 426 F(IsSmi, 1, 1) \ |
| 427 F(IsNonNegativeSmi, 1, 1) \ |
427 F(GetRootNaN, 0, 1) | 428 F(GetRootNaN, 0, 1) |
428 | 429 |
429 | 430 |
430 #define FOR_EACH_INTRINSIC_OBJECT(F) \ | 431 #define FOR_EACH_INTRINSIC_OBJECT(F) \ |
431 F(GetPrototype, 1, 1) \ | 432 F(GetPrototype, 1, 1) \ |
432 F(InternalSetPrototype, 2, 1) \ | 433 F(InternalSetPrototype, 2, 1) \ |
433 F(SetPrototype, 2, 1) \ | 434 F(SetPrototype, 2, 1) \ |
434 F(IsInPrototypeChain, 2, 1) \ | 435 F(IsInPrototypeChain, 2, 1) \ |
435 F(GetOwnProperty, 2, 1) \ | 436 F(GetOwnProperty, 2, 1) \ |
436 F(PreventExtensions, 1, 1) \ | 437 F(PreventExtensions, 1, 1) \ |
437 F(IsExtensible, 1, 1) \ | 438 F(IsExtensible, 1, 1) \ |
438 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 439 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
439 F(ObjectFreeze, 1, 1) \ | 440 F(ObjectFreeze, 1, 1) \ |
440 F(ObjectSeal, 1, 1) \ | 441 F(ObjectSeal, 1, 1) \ |
441 F(GetProperty, 2, 1) \ | 442 F(GetProperty, 2, 1) \ |
442 F(GetPropertyStrong, 2, 1) \ | 443 F(GetPropertyStrong, 2, 1) \ |
443 F(KeyedGetProperty, 2, 1) \ | 444 F(KeyedGetProperty, 2, 1) \ |
444 F(KeyedGetPropertyStrong, 2, 1) \ | 445 F(KeyedGetPropertyStrong, 2, 1) \ |
445 F(LoadGlobalViaContext, 1, 1) \ | 446 F(LoadGlobalViaContext, 1, 1) \ |
446 F(StoreGlobalViaContext_Sloppy, 2, 1) \ | 447 F(StoreGlobalViaContext_Sloppy, 2, 1) \ |
447 F(StoreGlobalViaContext_Strict, 2, 1) \ | 448 F(StoreGlobalViaContext_Strict, 2, 1) \ |
448 F(AddNamedProperty, 4, 1) \ | 449 F(AddNamedProperty, 4, 1) \ |
449 F(SetProperty, 4, 1) \ | 450 F(SetProperty, 4, 1) \ |
450 F(AddElement, 3, 1) \ | 451 F(AddElement, 3, 1) \ |
451 F(AppendElement, 2, 1) \ | 452 F(AppendElement, 2, 1) \ |
452 F(DeleteProperty_Sloppy, 2, 1) \ | 453 F(DeleteProperty_Sloppy, 2, 1) \ |
453 F(DeleteProperty_Strict, 2, 1) \ | 454 F(DeleteProperty_Strict, 2, 1) \ |
454 F(HasOwnProperty, 2, 1) \ | 455 F(HasOwnProperty, 2, 1) \ |
455 F(HasProperty, 2, 1) \ | 456 F(HasProperty, 2, 1) \ |
| 457 F(HasElement, 2, 1) \ |
456 F(IsPropertyEnumerable, 2, 1) \ | 458 F(IsPropertyEnumerable, 2, 1) \ |
457 F(GetPropertyNamesFast, 1, 1) \ | 459 F(GetPropertyNamesFast, 1, 1) \ |
458 F(GetOwnPropertyNames, 2, 1) \ | 460 F(GetOwnPropertyNames, 2, 1) \ |
459 F(GetOwnElementNames, 1, 1) \ | 461 F(GetOwnElementNames, 1, 1) \ |
460 F(GetInterceptorInfo, 1, 1) \ | 462 F(GetInterceptorInfo, 1, 1) \ |
461 F(GetNamedInterceptorPropertyNames, 1, 1) \ | 463 F(GetNamedInterceptorPropertyNames, 1, 1) \ |
462 F(GetIndexedInterceptorElementNames, 1, 1) \ | 464 F(GetIndexedInterceptorElementNames, 1, 1) \ |
463 F(OwnKeys, 1, 1) \ | 465 F(OwnKeys, 1, 1) \ |
464 F(ToFastProperties, 1, 1) \ | 466 F(ToFastProperties, 1, 1) \ |
465 F(NewStringWrapper, 1, 1) \ | 467 F(NewStringWrapper, 1, 1) \ |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1134 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
1133 return size == 1 || size == 2 || size == 4; | 1135 return size == 1 || size == 2 || size == 4; |
1134 } | 1136 } |
1135 | 1137 |
1136 #endif | 1138 #endif |
1137 | 1139 |
1138 } // namespace internal | 1140 } // namespace internal |
1139 } // namespace v8 | 1141 } // namespace v8 |
1140 | 1142 |
1141 #endif // V8_RUNTIME_RUNTIME_H_ | 1143 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |