Chromium Code Reviews| Index: sandbox/linux/seccomp-bpf/syscall_iterator.h |
| diff --git a/sandbox/linux/seccomp-bpf/syscall_iterator.h b/sandbox/linux/seccomp-bpf/syscall_iterator.h |
| index ea4273f76456953791ec740805b74432fd108aab..6acfff4cbd3b5396a7ac70f5fd3bc21900d30608 100644 |
| --- a/sandbox/linux/seccomp-bpf/syscall_iterator.h |
| +++ b/sandbox/linux/seccomp-bpf/syscall_iterator.h |
| @@ -35,8 +35,11 @@ namespace sandbox { |
| class SANDBOX_EXPORT SyscallIterator { |
| public: |
| explicit SyscallIterator(bool invalid_only) |
| +#if defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI32) |
| + : invalid_only_(invalid_only), done_(false), num_(4000) {} |
|
jln (very slow on Chromium)
2014/05/02 20:42:04
Is there a defined symbol instad of "4000"?
nedeljko
2014/05/07 15:40:05
__NR_Linux can be used, although I need to include
|
| +#else |
| : invalid_only_(invalid_only), done_(false), num_(0) {} |
| - |
| +#endif |
| bool Done() const { return done_; } |
| uint32_t Next(); |
| static bool IsValid(uint32_t num); |