OLD | NEW |
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 thread_local_.jslimit_ = thread_local_.initial_jslimit_; | 209 thread_local_.jslimit_ = thread_local_.initial_jslimit_; |
210 Heap::SetStackLimit(thread_local_.jslimit_); | 210 Heap::SetStackLimit(thread_local_.jslimit_); |
211 thread_local_.climit_ = thread_local_.initial_climit_; | 211 thread_local_.climit_ = thread_local_.initial_climit_; |
212 } | 212 } |
213 | 213 |
214 // Enable or disable interrupts. | 214 // Enable or disable interrupts. |
215 static void EnableInterrupts(); | 215 static void EnableInterrupts(); |
216 static void DisableInterrupts(); | 216 static void DisableInterrupts(); |
217 | 217 |
218 static const uintptr_t kLimitSize = kPointerSize * 128 * KB; | 218 static const uintptr_t kLimitSize = kPointerSize * 128 * KB; |
| 219 |
219 #ifdef V8_TARGET_ARCH_X64 | 220 #ifdef V8_TARGET_ARCH_X64 |
220 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); | 221 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); |
221 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); | 222 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); |
222 #else | 223 #else |
223 static const uintptr_t kInterruptLimit = 0xfffffffe; | 224 static const uintptr_t kInterruptLimit = 0xfffffffe; |
224 static const uintptr_t kIllegalLimit = 0xfffffff8; | 225 static const uintptr_t kIllegalLimit = 0xfffffff8; |
225 #endif | 226 #endif |
226 | 227 |
227 class ThreadLocal { | 228 class ThreadLocal { |
228 public: | 229 public: |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 v8::Handle<v8::String> name); | 288 v8::Handle<v8::String> name); |
288 static v8::Handle<v8::Value> GC(const v8::Arguments& args); | 289 static v8::Handle<v8::Value> GC(const v8::Arguments& args); |
289 private: | 290 private: |
290 static const char* kSource; | 291 static const char* kSource; |
291 }; | 292 }; |
292 | 293 |
293 | 294 |
294 } } // namespace v8::internal | 295 } } // namespace v8::internal |
295 | 296 |
296 #endif // V8_EXECUTION_H_ | 297 #endif // V8_EXECUTION_H_ |
OLD | NEW |