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

Side by Side Diff: src/execution.h

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/deoptimizer.cc ('k') | src/execution.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 inline void set_interrupt_limits(const ExecutionAccess& lock); 229 inline void set_interrupt_limits(const ExecutionAccess& lock);
230 230
231 // Reset limits to actual values. For example after handling interrupt. 231 // Reset limits to actual values. For example after handling interrupt.
232 // You should hold the ExecutionAccess lock when calling this method. 232 // You should hold the ExecutionAccess lock when calling this method.
233 inline void reset_limits(const ExecutionAccess& lock); 233 inline void reset_limits(const ExecutionAccess& lock);
234 234
235 // Enable or disable interrupts. 235 // Enable or disable interrupts.
236 void EnableInterrupts(); 236 void EnableInterrupts();
237 void DisableInterrupts(); 237 void DisableInterrupts();
238 238
239 static const uintptr_t kLimitSize = kPointerSize * 128 * KB;
240
241 #ifdef V8_TARGET_ARCH_X64 239 #ifdef V8_TARGET_ARCH_X64
242 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); 240 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe);
243 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); 241 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8);
244 #else 242 #else
245 static const uintptr_t kInterruptLimit = 0xfffffffe; 243 static const uintptr_t kInterruptLimit = 0xfffffffe;
246 static const uintptr_t kIllegalLimit = 0xfffffff8; 244 static const uintptr_t kIllegalLimit = 0xfffffff8;
247 #endif 245 #endif
248 246
249 class ThreadLocal { 247 class ThreadLocal {
250 public: 248 public:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 friend class StackLimitCheck; 282 friend class StackLimitCheck;
285 friend class PostponeInterruptsScope; 283 friend class PostponeInterruptsScope;
286 284
287 DISALLOW_COPY_AND_ASSIGN(StackGuard); 285 DISALLOW_COPY_AND_ASSIGN(StackGuard);
288 }; 286 };
289 287
290 288
291 } } // namespace v8::internal 289 } } // namespace v8::internal
292 290
293 #endif // V8_EXECUTION_H_ 291 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698