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

Side by Side Diff: src/execution.h

Issue 7945009: Merge experimental/gc branch to the bleeding_edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 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/disassembler.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 23 matching lines...) Expand all
34 namespace internal { 34 namespace internal {
35 35
36 36
37 // Flag used to set the interrupt causes. 37 // Flag used to set the interrupt causes.
38 enum InterruptFlag { 38 enum InterruptFlag {
39 INTERRUPT = 1 << 0, 39 INTERRUPT = 1 << 0,
40 DEBUGBREAK = 1 << 1, 40 DEBUGBREAK = 1 << 1,
41 DEBUGCOMMAND = 1 << 2, 41 DEBUGCOMMAND = 1 << 2,
42 PREEMPT = 1 << 3, 42 PREEMPT = 1 << 3,
43 TERMINATE = 1 << 4, 43 TERMINATE = 1 << 4,
44 RUNTIME_PROFILER_TICK = 1 << 5 44 RUNTIME_PROFILER_TICK = 1 << 5,
45 GC_REQUEST = 1 << 6
45 }; 46 };
46 47
47 class Execution : public AllStatic { 48 class Execution : public AllStatic {
48 public: 49 public:
49 // Call a function, the caller supplies a receiver and an array 50 // Call a function, the caller supplies a receiver and an array
50 // of arguments. Arguments are Object* type. After function returns, 51 // of arguments. Arguments are Object* type. After function returns,
51 // pointers in 'args' might be invalid. 52 // pointers in 'args' might be invalid.
52 // 53 //
53 // *pending_exception tells whether the invoke resulted in 54 // *pending_exception tells whether the invoke resulted in
54 // a pending exception. 55 // a pending exception.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 bool IsTerminateExecution(); 190 bool IsTerminateExecution();
190 void TerminateExecution(); 191 void TerminateExecution();
191 bool IsRuntimeProfilerTick(); 192 bool IsRuntimeProfilerTick();
192 void RequestRuntimeProfilerTick(); 193 void RequestRuntimeProfilerTick();
193 #ifdef ENABLE_DEBUGGER_SUPPORT 194 #ifdef ENABLE_DEBUGGER_SUPPORT
194 bool IsDebugBreak(); 195 bool IsDebugBreak();
195 void DebugBreak(); 196 void DebugBreak();
196 bool IsDebugCommand(); 197 bool IsDebugCommand();
197 void DebugCommand(); 198 void DebugCommand();
198 #endif 199 #endif
200 bool IsGCRequest();
201 void RequestGC();
199 void Continue(InterruptFlag after_what); 202 void Continue(InterruptFlag after_what);
200 203
201 // This provides an asynchronous read of the stack limits for the current 204 // This provides an asynchronous read of the stack limits for the current
202 // thread. There are no locks protecting this, but it is assumed that you 205 // thread. There are no locks protecting this, but it is assumed that you
203 // have the global V8 lock if you are using multiple V8 threads. 206 // have the global V8 lock if you are using multiple V8 threads.
204 uintptr_t climit() { 207 uintptr_t climit() {
205 return thread_local_.climit_; 208 return thread_local_.climit_;
206 } 209 }
207 uintptr_t real_climit() { 210 uintptr_t real_climit() {
208 return thread_local_.real_climit_; 211 return thread_local_.real_climit_;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 friend class StackLimitCheck; 296 friend class StackLimitCheck;
294 friend class PostponeInterruptsScope; 297 friend class PostponeInterruptsScope;
295 298
296 DISALLOW_COPY_AND_ASSIGN(StackGuard); 299 DISALLOW_COPY_AND_ASSIGN(StackGuard);
297 }; 300 };
298 301
299 302
300 } } // namespace v8::internal 303 } } // namespace v8::internal
301 304
302 #endif // V8_EXECUTION_H_ 305 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/disassembler.cc ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698