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

Side by Side Diff: src/execution.h

Issue 6487021: Properly treat exceptions thrown while compiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing Kevin's comments + disabling the regression test for ARM Created 9 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 | « src/compiler.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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 static void reset_limits(const ExecutionAccess& lock) { 236 static void reset_limits(const ExecutionAccess& lock) {
237 thread_local_.jslimit_ = thread_local_.real_jslimit_; 237 thread_local_.jslimit_ = thread_local_.real_jslimit_;
238 thread_local_.climit_ = thread_local_.real_climit_; 238 thread_local_.climit_ = thread_local_.real_climit_;
239 Heap::SetStackLimits(); 239 Heap::SetStackLimits();
240 } 240 }
241 241
242 // Enable or disable interrupts. 242 // Enable or disable interrupts.
243 static void EnableInterrupts(); 243 static void EnableInterrupts();
244 static void DisableInterrupts(); 244 static void DisableInterrupts();
245 245
246 static const uintptr_t kLimitSize = kPointerSize * 128 * KB;
247
248 #ifdef V8_TARGET_ARCH_X64 246 #ifdef V8_TARGET_ARCH_X64
249 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); 247 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe);
250 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); 248 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8);
251 #else 249 #else
252 static const uintptr_t kInterruptLimit = 0xfffffffe; 250 static const uintptr_t kInterruptLimit = 0xfffffffe;
253 static const uintptr_t kIllegalLimit = 0xfffffff8; 251 static const uintptr_t kIllegalLimit = 0xfffffff8;
254 #endif 252 #endif
255 253
256 class ThreadLocal { 254 class ThreadLocal {
257 public: 255 public:
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 ~PostponeInterruptsScope() { 313 ~PostponeInterruptsScope() {
316 if (--StackGuard::thread_local_.postpone_interrupts_nesting_ == 0) { 314 if (--StackGuard::thread_local_.postpone_interrupts_nesting_ == 0) {
317 StackGuard::EnableInterrupts(); 315 StackGuard::EnableInterrupts();
318 } 316 }
319 } 317 }
320 }; 318 };
321 319
322 } } // namespace v8::internal 320 } } // namespace v8::internal
323 321
324 #endif // V8_EXECUTION_H_ 322 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698