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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 #undef MAP_TYPE | 60 #undef MAP_TYPE |
61 | 61 |
62 #if defined(ANDROID) && !defined(V8_ANDROID_LOG_STDOUT) | 62 #if defined(ANDROID) && !defined(V8_ANDROID_LOG_STDOUT) |
63 #define LOG_TAG "v8" | 63 #define LOG_TAG "v8" |
64 #include <android/log.h> | 64 #include <android/log.h> |
65 #endif | 65 #endif |
66 | 66 |
67 #include "v8.h" | 67 #include "v8.h" |
68 | 68 |
69 #include "codegen.h" | |
70 #include "isolate-inl.h" | 69 #include "isolate-inl.h" |
71 #include "platform.h" | 70 #include "platform.h" |
72 | 71 |
73 namespace v8 { | 72 namespace v8 { |
74 namespace internal { | 73 namespace internal { |
75 | 74 |
76 // 0 is never a valid thread id. | 75 // 0 is never a valid thread id. |
77 static const pthread_t kNoThread = (pthread_t) 0; | 76 static const pthread_t kNoThread = (pthread_t) 0; |
78 | 77 |
79 | 78 |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 | 811 |
813 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { | 812 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { |
814 pthread_key_t pthread_key = LocalKeyToPthreadKey(key); | 813 pthread_key_t pthread_key = LocalKeyToPthreadKey(key); |
815 int result = pthread_setspecific(pthread_key, value); | 814 int result = pthread_setspecific(pthread_key, value); |
816 ASSERT_EQ(0, result); | 815 ASSERT_EQ(0, result); |
817 USE(result); | 816 USE(result); |
818 } | 817 } |
819 | 818 |
820 | 819 |
821 } } // namespace v8::internal | 820 } } // namespace v8::internal |
OLD | NEW |