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