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

Side by Side Diff: src/execution.h

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port 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
« 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 20 matching lines...) Expand all
31 namespace v8 { 31 namespace v8 {
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 }; 43 };
43 44
44 class Execution : public AllStatic { 45 class Execution : public AllStatic {
45 public: 46 public:
46 // Call a function, the caller supplies a receiver and an array 47 // Call a function, the caller supplies a receiver and an array
47 // of arguments. Arguments are Object* type. After function returns, 48 // of arguments. Arguments are Object* type. After function returns,
48 // pointers in 'args' might be invalid. 49 // pointers in 'args' might be invalid.
49 // 50 //
50 // *pending_exception tells whether the invoke resulted in 51 // *pending_exception tells whether the invoke resulted in
51 // a pending exception. 52 // a pending exception.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // it has been set up. 170 // it has been set up.
170 void ClearThread(const ExecutionAccess& lock); 171 void ClearThread(const ExecutionAccess& lock);
171 172
172 bool IsStackOverflow(); 173 bool IsStackOverflow();
173 bool IsPreempted(); 174 bool IsPreempted();
174 void Preempt(); 175 void Preempt();
175 bool IsInterrupted(); 176 bool IsInterrupted();
176 void Interrupt(); 177 void Interrupt();
177 bool IsTerminateExecution(); 178 bool IsTerminateExecution();
178 void TerminateExecution(); 179 void TerminateExecution();
180 bool IsRuntimeProfilerTick();
181 void RequestRuntimeProfilerTick();
179 #ifdef ENABLE_DEBUGGER_SUPPORT 182 #ifdef ENABLE_DEBUGGER_SUPPORT
180 bool IsDebugBreak(); 183 bool IsDebugBreak();
181 void DebugBreak(); 184 void DebugBreak();
182 bool IsDebugCommand(); 185 bool IsDebugCommand();
183 void DebugCommand(); 186 void DebugCommand();
184 #endif 187 #endif
185 void Continue(InterruptFlag after_what); 188 void Continue(InterruptFlag after_what);
186 189
187 // This provides an asynchronous read of the stack limits for the current 190 // This provides an asynchronous read of the stack limits for the current
188 // thread. There are no locks protecting this, but it is assumed that you 191 // thread. There are no locks protecting this, but it is assumed that you
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 friend class StackLimitCheck; 284 friend class StackLimitCheck;
282 friend class PostponeInterruptsScope; 285 friend class PostponeInterruptsScope;
283 286
284 DISALLOW_COPY_AND_ASSIGN(StackGuard); 287 DISALLOW_COPY_AND_ASSIGN(StackGuard);
285 }; 288 };
286 289
287 290
288 } } // namespace v8::internal 291 } } // namespace v8::internal
289 292
290 #endif // V8_EXECUTION_H_ 293 #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