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

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

Issue 9296004: Merge 10525 into 3.7 branch. MIPS: Add signal context definitions for use with Android. (Closed) Base URL: http://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.
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 933 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 struct sigcontext {
956 unsigned int regmask;
957 unsigned int status;
958 unsigned long long pc;
959 unsigned long long gregs[32];
960 unsigned long long fpregs[32];
961 unsigned int acx;
962 unsigned int fpc_csr;
963 unsigned int fpc_eir;
964 unsigned int used_math;
965 unsigned int dsp;
966 unsigned long long mdhi;
967 unsigned long long mdlo;
968 unsigned long hi1;
969 unsigned long lo1;
970 unsigned long hi2;
971 unsigned long lo2;
972 unsigned long hi3;
973 unsigned long lo3;
974 };
975 typedef uint32_t __sigset_t;
976 typedef struct sigcontext mcontext_t;
977 typedef struct ucontext {
978 uint32_t uc_flags;
979 struct ucontext* uc_link;
980 stack_t uc_stack;
981 mcontext_t uc_mcontext;
982 __sigset_t uc_sigmask;
983 } ucontext_t;
984
954 #endif 985 #endif
955 986
956 987
957 static int GetThreadID() { 988 static int GetThreadID() {
958 // Glibc doesn't provide a wrapper for gettid(2). 989 // Glibc doesn't provide a wrapper for gettid(2).
959 #if defined(ANDROID) 990 #if defined(ANDROID)
960 return syscall(__NR_gettid); 991 return syscall(__NR_gettid);
961 #else 992 #else
962 return syscall(SYS_gettid); 993 return syscall(SYS_gettid);
963 #endif 994 #endif
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 1239
1209 1240
1210 void Sampler::Stop() { 1241 void Sampler::Stop() {
1211 ASSERT(IsActive()); 1242 ASSERT(IsActive());
1212 SignalSender::RemoveActiveSampler(this); 1243 SignalSender::RemoveActiveSampler(this);
1213 SetActive(false); 1244 SetActive(false);
1214 } 1245 }
1215 1246
1216 1247
1217 } } // namespace v8::internal 1248 } } // 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