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

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

Issue 9104036: Merged r10556 into 3.7 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.7
Patch Set: Created 8 years, 10 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 | « no previous file | src/version.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
ulan 2012/01/31 09:59:35 2011 -> 2012
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
11 // with the distribution. 11 // with the distribution.
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 typedef struct sigcontext mcontext_t; 944 typedef struct sigcontext mcontext_t;
945 typedef struct ucontext { 945 typedef struct ucontext {
946 uint32_t uc_flags; 946 uint32_t uc_flags;
947 struct ucontext* uc_link; 947 struct ucontext* uc_link;
948 stack_t uc_stack; 948 stack_t uc_stack;
949 mcontext_t uc_mcontext; 949 mcontext_t uc_mcontext;
950 __sigset_t uc_sigmask; 950 __sigset_t uc_sigmask;
951 } ucontext_t; 951 } ucontext_t;
952 enum ArmRegisters {R15 = 15, R13 = 13, R11 = 11}; 952 enum ArmRegisters {R15 = 15, R13 = 13, R11 = 11};
953 953
954 #elif !defined(__GLIBC__) && defined(__mips__)
955 // MIPS version of sigcontext, for Android bionic.
956 struct sigcontext {
957 uint32_t regmask;
958 uint32_t status;
959 uint64_t pc;
960 uint64_t gregs[32];
961 uint64_t fpregs[32];
962 uint32_t acx;
963 uint32_t fpc_csr;
964 uint32_t fpc_eir;
965 uint32_t used_math;
966 uint32_t dsp;
967 uint64_t mdhi;
968 uint64_t mdlo;
969 uint32_t hi1;
970 uint32_t lo1;
971 uint32_t hi2;
972 uint32_t lo2;
973 uint32_t hi3;
974 uint32_t lo3;
975 };
976 typedef uint32_t __sigset_t;
977 typedef struct sigcontext mcontext_t;
978 typedef struct ucontext {
979 uint32_t uc_flags;
980 struct ucontext* uc_link;
981 stack_t uc_stack;
982 mcontext_t uc_mcontext;
983 __sigset_t uc_sigmask;
984 } ucontext_t;
985
954 #endif 986 #endif
955 987
956 988
957 static int GetThreadID() { 989 static int GetThreadID() {
958 // Glibc doesn't provide a wrapper for gettid(2). 990 // Glibc doesn't provide a wrapper for gettid(2).
959 #if defined(ANDROID) 991 #if defined(ANDROID)
960 return syscall(__NR_gettid); 992 return syscall(__NR_gettid);
961 #else 993 #else
962 return syscall(SYS_gettid); 994 return syscall(SYS_gettid);
963 #endif 995 #endif
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 1240
1209 1241
1210 void Sampler::Stop() { 1242 void Sampler::Stop() {
1211 ASSERT(IsActive()); 1243 ASSERT(IsActive());
1212 SignalSender::RemoveActiveSampler(this); 1244 SignalSender::RemoveActiveSampler(this);
1213 SetActive(false); 1245 SetActive(false);
1214 } 1246 }
1215 1247
1216 1248
1217 } } // namespace v8::internal 1249 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698