OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 496 |
497 | 497 |
498 OS::MemCopyUint8Function OS::memcopy_uint8_function = &OS::MemCopyUint8Wrapper; | 498 OS::MemCopyUint8Function OS::memcopy_uint8_function = &OS::MemCopyUint8Wrapper; |
499 OS::MemCopyUint16Uint8Function OS::memcopy_uint16_uint8_function = | 499 OS::MemCopyUint16Uint8Function OS::memcopy_uint16_uint8_function = |
500 &OS::MemCopyUint16Uint8Wrapper; | 500 &OS::MemCopyUint16Uint8Wrapper; |
501 // Defined in codegen-arm.cc. | 501 // Defined in codegen-arm.cc. |
502 OS::MemCopyUint8Function CreateMemCopyUint8Function( | 502 OS::MemCopyUint8Function CreateMemCopyUint8Function( |
503 OS::MemCopyUint8Function stub); | 503 OS::MemCopyUint8Function stub); |
504 OS::MemCopyUint16Uint8Function CreateMemCopyUint16Uint8Function( | 504 OS::MemCopyUint16Uint8Function CreateMemCopyUint16Uint8Function( |
505 OS::MemCopyUint16Uint8Function stub); | 505 OS::MemCopyUint16Uint8Function stub); |
| 506 |
| 507 #elif defined(V8_HOST_ARCH_MIPS) |
| 508 OS::MemCopyUint8Function OS::memcopy_uint8_function = &OS::MemCopyUint8Wrapper; |
| 509 // Defined in codegen-mips.cc. |
| 510 OS::MemCopyUint8Function CreateMemCopyUint8Function( |
| 511 OS::MemCopyUint8Function stub); |
506 #endif | 512 #endif |
507 | 513 |
508 | 514 |
509 void OS::PostSetUp() { | 515 void OS::PostSetUp() { |
510 #if V8_TARGET_ARCH_IA32 | 516 #if V8_TARGET_ARCH_IA32 |
511 OS::MemMoveFunction generated_memmove = CreateMemMoveFunction(); | 517 OS::MemMoveFunction generated_memmove = CreateMemMoveFunction(); |
512 if (generated_memmove != NULL) { | 518 if (generated_memmove != NULL) { |
513 memmove_function = generated_memmove; | 519 memmove_function = generated_memmove; |
514 } | 520 } |
515 #elif defined(V8_HOST_ARCH_ARM) | 521 #elif defined(V8_HOST_ARCH_ARM) |
516 OS::memcopy_uint8_function = | 522 OS::memcopy_uint8_function = |
517 CreateMemCopyUint8Function(&OS::MemCopyUint8Wrapper); | 523 CreateMemCopyUint8Function(&OS::MemCopyUint8Wrapper); |
518 OS::memcopy_uint16_uint8_function = | 524 OS::memcopy_uint16_uint8_function = |
519 CreateMemCopyUint16Uint8Function(&OS::MemCopyUint16Uint8Wrapper); | 525 CreateMemCopyUint16Uint8Function(&OS::MemCopyUint16Uint8Wrapper); |
| 526 #elif defined(V8_HOST_ARCH_MIPS) |
| 527 OS::memcopy_uint8_function = |
| 528 CreateMemCopyUint8Function(&OS::MemCopyUint8Wrapper); |
520 #endif | 529 #endif |
521 init_fast_log_function(); | 530 init_fast_log_function(); |
522 // fast_exp is initialized lazily. | 531 // fast_exp is initialized lazily. |
523 init_fast_sqrt_function(); | 532 init_fast_sqrt_function(); |
524 } | 533 } |
525 | 534 |
526 | 535 |
527 // ---------------------------------------------------------------------------- | 536 // ---------------------------------------------------------------------------- |
528 // POSIX string support. | 537 // POSIX string support. |
529 // | 538 // |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 | 771 |
763 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { | 772 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { |
764 pthread_key_t pthread_key = LocalKeyToPthreadKey(key); | 773 pthread_key_t pthread_key = LocalKeyToPthreadKey(key); |
765 int result = pthread_setspecific(pthread_key, value); | 774 int result = pthread_setspecific(pthread_key, value); |
766 ASSERT_EQ(0, result); | 775 ASSERT_EQ(0, result); |
767 USE(result); | 776 USE(result); |
768 } | 777 } |
769 | 778 |
770 | 779 |
771 } } // namespace v8::internal | 780 } } // namespace v8::internal |
OLD | NEW |