Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: src/platform-posix.cc

Issue 266493003: Unbreak the build after r21083. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Platform-specific code for POSIX goes here. This is not a platform on its 5 // Platform-specific code for POSIX goes here. This is not a platform on its
6 // own, but contains the parts which are the same across the POSIX platforms 6 // own, but contains the parts which are the same across the POSIX platforms
7 // Linux, MacOS, FreeBSD, OpenBSD, NetBSD and QNX. 7 // Linux, MacOS, FreeBSD, OpenBSD, NetBSD and QNX.
8 8
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <pthread.h> 10 #include <pthread.h>
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 510
511 511
512 OS::MemCopyUint8Function OS::memcopy_uint8_function = &OS::MemCopyUint8Wrapper; 512 OS::MemCopyUint8Function OS::memcopy_uint8_function = &OS::MemCopyUint8Wrapper;
513 OS::MemCopyUint16Uint8Function OS::memcopy_uint16_uint8_function = 513 OS::MemCopyUint16Uint8Function OS::memcopy_uint16_uint8_function =
514 &OS::MemCopyUint16Uint8Wrapper; 514 &OS::MemCopyUint16Uint8Wrapper;
515 // Defined in codegen-arm.cc. 515 // Defined in codegen-arm.cc.
516 OS::MemCopyUint8Function CreateMemCopyUint8Function( 516 OS::MemCopyUint8Function CreateMemCopyUint8Function(
517 bool serializer_enabled, 517 bool serializer_enabled,
518 OS::MemCopyUint8Function stub); 518 OS::MemCopyUint8Function stub);
519 OS::MemCopyUint16Uint8Function CreateMemCopyUint16Uint8Function( 519 OS::MemCopyUint16Uint8Function CreateMemCopyUint16Uint8Function(
520 bool serializer_enabled,
520 OS::MemCopyUint16Uint8Function stub); 521 OS::MemCopyUint16Uint8Function stub);
521 522
522 #elif defined(V8_HOST_ARCH_MIPS) 523 #elif defined(V8_HOST_ARCH_MIPS)
523 OS::MemCopyUint8Function OS::memcopy_uint8_function = &OS::MemCopyUint8Wrapper; 524 OS::MemCopyUint8Function OS::memcopy_uint8_function = &OS::MemCopyUint8Wrapper;
524 // Defined in codegen-mips.cc. 525 // Defined in codegen-mips.cc.
525 OS::MemCopyUint8Function CreateMemCopyUint8Function( 526 OS::MemCopyUint8Function CreateMemCopyUint8Function(
526 bool serializer_enabled, 527 bool serializer_enabled,
527 OS::MemCopyUint8Function stub); 528 OS::MemCopyUint8Function stub);
528 #endif 529 #endif
529 530
530 531
531 void OS::PostSetUp(bool serializer_enabled) { 532 void OS::PostSetUp(bool serializer_enabled) {
532 #if V8_TARGET_ARCH_IA32 533 #if V8_TARGET_ARCH_IA32
533 OS::MemMoveFunction generated_memmove = CreateMemMoveFunction(); 534 OS::MemMoveFunction generated_memmove = CreateMemMoveFunction();
534 if (generated_memmove != NULL) { 535 if (generated_memmove != NULL) {
535 memmove_function = generated_memmove; 536 memmove_function = generated_memmove;
536 } 537 }
537 #elif defined(V8_HOST_ARCH_ARM) 538 #elif defined(V8_HOST_ARCH_ARM)
538 OS::memcopy_uint8_function = 539 OS::memcopy_uint8_function =
539 CreateMemCopyUint8Function(serializer_enabled, &OS::MemCopyUint8Wrapper); 540 CreateMemCopyUint8Function(serializer_enabled, &OS::MemCopyUint8Wrapper);
540 OS::memcopy_uint16_uint8_function = 541 OS::memcopy_uint16_uint8_function =
541 CreateMemCopyUint16Uint8Function(&OS::MemCopyUint16Uint8Wrapper); 542 CreateMemCopyUint16Uint8Function(serializer_enabled,
543 &OS::MemCopyUint16Uint8Wrapper);
542 #elif defined(V8_HOST_ARCH_MIPS) 544 #elif defined(V8_HOST_ARCH_MIPS)
543 OS::memcopy_uint8_function = 545 OS::memcopy_uint8_function =
544 CreateMemCopyUint8Function(serializer_enabled, &OS::MemCopyUint8Wrapper); 546 CreateMemCopyUint8Function(serializer_enabled, &OS::MemCopyUint8Wrapper);
545 #endif 547 #endif
546 // fast_exp is initialized lazily. 548 // fast_exp is initialized lazily.
547 init_fast_sqrt_function(); 549 init_fast_sqrt_function();
548 } 550 }
549 551
550 552
551 // ---------------------------------------------------------------------------- 553 // ----------------------------------------------------------------------------
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 793
792 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { 794 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
793 pthread_key_t pthread_key = LocalKeyToPthreadKey(key); 795 pthread_key_t pthread_key = LocalKeyToPthreadKey(key);
794 int result = pthread_setspecific(pthread_key, value); 796 int result = pthread_setspecific(pthread_key, value);
795 ASSERT_EQ(0, result); 797 ASSERT_EQ(0, result);
796 USE(result); 798 USE(result);
797 } 799 }
798 800
799 801
800 } } // namespace v8::internal 802 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698