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

Side by Side Diff: src/execution.h

Issue 171107: X64: Implement debugger hooks. (Closed)
Patch Set: Created 11 years, 4 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
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 thread_local_.jslimit_ = thread_local_.initial_jslimit_; 199 thread_local_.jslimit_ = thread_local_.initial_jslimit_;
200 thread_local_.climit_ = thread_local_.initial_climit_; 200 thread_local_.climit_ = thread_local_.initial_climit_;
201 } 201 }
202 } 202 }
203 203
204 // Enable or disable interrupts. 204 // Enable or disable interrupts.
205 static void EnableInterrupts(); 205 static void EnableInterrupts();
206 static void DisableInterrupts(); 206 static void DisableInterrupts();
207 207
208 static const uintptr_t kLimitSize = kPointerSize * 128 * KB; 208 static const uintptr_t kLimitSize = kPointerSize * 128 * KB;
209 #ifdef V8_TARGET_ARCH_X64
210 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe);
211 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xffffffffffffffff);
212 #else
209 static const uintptr_t kInterruptLimit = 0xfffffffe; 213 static const uintptr_t kInterruptLimit = 0xfffffffe;
210 static const uintptr_t kIllegalLimit = 0xffffffff; 214 static const uintptr_t kIllegalLimit = 0xffffffff;
215 #endif
211 216
212 class ThreadLocal { 217 class ThreadLocal {
213 public: 218 public:
214 ThreadLocal() 219 ThreadLocal()
215 : initial_jslimit_(kIllegalLimit), 220 : initial_jslimit_(kIllegalLimit),
216 jslimit_(kIllegalLimit), 221 jslimit_(kIllegalLimit),
217 initial_climit_(kIllegalLimit), 222 initial_climit_(kIllegalLimit),
218 climit_(kIllegalLimit), 223 climit_(kIllegalLimit),
219 nesting_(0), 224 nesting_(0),
220 postpone_interrupts_nesting_(0), 225 postpone_interrupts_nesting_(0),
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 v8::Handle<v8::String> name); 280 v8::Handle<v8::String> name);
276 static v8::Handle<v8::Value> GC(const v8::Arguments& args); 281 static v8::Handle<v8::Value> GC(const v8::Arguments& args);
277 private: 282 private:
278 static const char* kSource; 283 static const char* kSource;
279 }; 284 };
280 285
281 286
282 } } // namespace v8::internal 287 } } // namespace v8::internal
283 288
284 #endif // V8_EXECUTION_H_ 289 #endif // V8_EXECUTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698