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

Side by Side Diff: src/execution.h

Issue 6542047: Basic implementation of incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: 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
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 21 matching lines...) Expand all
32 namespace internal { 32 namespace internal {
33 33
34 34
35 // Flag used to set the interrupt causes. 35 // Flag used to set the interrupt causes.
36 enum InterruptFlag { 36 enum InterruptFlag {
37 INTERRUPT = 1 << 0, 37 INTERRUPT = 1 << 0,
38 DEBUGBREAK = 1 << 1, 38 DEBUGBREAK = 1 << 1,
39 DEBUGCOMMAND = 1 << 2, 39 DEBUGCOMMAND = 1 << 2,
40 PREEMPT = 1 << 3, 40 PREEMPT = 1 << 3,
41 TERMINATE = 1 << 4, 41 TERMINATE = 1 << 4,
42 RUNTIME_PROFILER_TICK = 1 << 5 42 RUNTIME_PROFILER_TICK = 1 << 5,
43 GC_REQUEST = 1 << 6
43 }; 44 };
44 45
45 class Execution : public AllStatic { 46 class Execution : public AllStatic {
46 public: 47 public:
47 // Call a function, the caller supplies a receiver and an array 48 // Call a function, the caller supplies a receiver and an array
48 // of arguments. Arguments are Object* type. After function returns, 49 // of arguments. Arguments are Object* type. After function returns,
49 // pointers in 'args' might be invalid. 50 // pointers in 'args' might be invalid.
50 // 51 //
51 // *pending_exception tells whether the invoke resulted in 52 // *pending_exception tells whether the invoke resulted in
52 // a pending exception. 53 // a pending exception.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 static bool IsTerminateExecution(); 178 static bool IsTerminateExecution();
178 static void TerminateExecution(); 179 static void TerminateExecution();
179 static bool IsRuntimeProfilerTick(); 180 static bool IsRuntimeProfilerTick();
180 static void RequestRuntimeProfilerTick(); 181 static void RequestRuntimeProfilerTick();
181 #ifdef ENABLE_DEBUGGER_SUPPORT 182 #ifdef ENABLE_DEBUGGER_SUPPORT
182 static bool IsDebugBreak(); 183 static bool IsDebugBreak();
183 static void DebugBreak(); 184 static void DebugBreak();
184 static bool IsDebugCommand(); 185 static bool IsDebugCommand();
185 static void DebugCommand(); 186 static void DebugCommand();
186 #endif 187 #endif
188 static bool IsGCRequest();
189 static void RequestGC();
187 static void Continue(InterruptFlag after_what); 190 static void Continue(InterruptFlag after_what);
188 191
189 // This provides an asynchronous read of the stack limits for the current 192 // This provides an asynchronous read of the stack limits for the current
190 // thread. There are no locks protecting this, but it is assumed that you 193 // thread. There are no locks protecting this, but it is assumed that you
191 // have the global V8 lock if you are using multiple V8 threads. 194 // have the global V8 lock if you are using multiple V8 threads.
192 static uintptr_t climit() { 195 static uintptr_t climit() {
193 return thread_local_.climit_; 196 return thread_local_.climit_;
194 } 197 }
195 static uintptr_t real_climit() { 198 static uintptr_t real_climit() {
196 return thread_local_.real_climit_; 199 return thread_local_.real_climit_;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 ~PostponeInterruptsScope() { 316 ~PostponeInterruptsScope() {
314 if (--StackGuard::thread_local_.postpone_interrupts_nesting_ == 0) { 317 if (--StackGuard::thread_local_.postpone_interrupts_nesting_ == 0) {
315 StackGuard::EnableInterrupts(); 318 StackGuard::EnableInterrupts();
316 } 319 }
317 } 320 }
318 }; 321 };
319 322
320 } } // namespace v8::internal 323 } } // namespace v8::internal
321 324
322 #endif // V8_EXECUTION_H_ 325 #endif // V8_EXECUTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698