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

Side by Side Diff: src/execution.h

Issue 2550643002: [debug] Reland debug API removal (Closed)
Patch Set: Created 4 years 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/debug/debug.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_EXECUTION_H_ 5 #ifndef V8_EXECUTION_H_
6 #define V8_EXECUTION_H_ 6 #define V8_EXECUTION_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/atomicops.h" 9 #include "src/base/atomicops.h"
10 #include "src/handles.h" 10 #include "src/handles.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void FreeThreadResources(); 74 void FreeThreadResources();
75 // Sets up the default stack guard for this thread if it has not 75 // Sets up the default stack guard for this thread if it has not
76 // already been set up. 76 // already been set up.
77 void InitThread(const ExecutionAccess& lock); 77 void InitThread(const ExecutionAccess& lock);
78 // Clears the stack guard for this thread so it does not look as if 78 // Clears the stack guard for this thread so it does not look as if
79 // it has been set up. 79 // it has been set up.
80 void ClearThread(const ExecutionAccess& lock); 80 void ClearThread(const ExecutionAccess& lock);
81 81
82 #define INTERRUPT_LIST(V) \ 82 #define INTERRUPT_LIST(V) \
83 V(DEBUGBREAK, DebugBreak, 0) \ 83 V(DEBUGBREAK, DebugBreak, 0) \
84 V(DEBUGCOMMAND, DebugCommand, 1) \ 84 V(TERMINATE_EXECUTION, TerminateExecution, 1) \
85 V(TERMINATE_EXECUTION, TerminateExecution, 2) \ 85 V(GC_REQUEST, GC, 2) \
86 V(GC_REQUEST, GC, 3) \ 86 V(INSTALL_CODE, InstallCode, 3) \
87 V(INSTALL_CODE, InstallCode, 4) \ 87 V(API_INTERRUPT, ApiInterrupt, 4) \
88 V(API_INTERRUPT, ApiInterrupt, 5) \ 88 V(DEOPT_MARKED_ALLOCATION_SITES, DeoptMarkedAllocationSites, 5)
89 V(DEOPT_MARKED_ALLOCATION_SITES, DeoptMarkedAllocationSites, 6)
90 89
91 #define V(NAME, Name, id) \ 90 #define V(NAME, Name, id) \
92 inline bool Check##Name() { return CheckInterrupt(NAME); } \ 91 inline bool Check##Name() { return CheckInterrupt(NAME); } \
93 inline void Request##Name() { RequestInterrupt(NAME); } \ 92 inline void Request##Name() { RequestInterrupt(NAME); } \
94 inline void Clear##Name() { ClearInterrupt(NAME); } 93 inline void Clear##Name() { ClearInterrupt(NAME); }
95 INTERRUPT_LIST(V) 94 INTERRUPT_LIST(V)
96 #undef V 95 #undef V
97 96
98 // Flag used to set the interrupt causes. 97 // Flag used to set the interrupt causes.
99 enum InterruptFlag { 98 enum InterruptFlag {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 friend class StackLimitCheck; 217 friend class StackLimitCheck;
219 friend class PostponeInterruptsScope; 218 friend class PostponeInterruptsScope;
220 219
221 DISALLOW_COPY_AND_ASSIGN(StackGuard); 220 DISALLOW_COPY_AND_ASSIGN(StackGuard);
222 }; 221 };
223 222
224 } // namespace internal 223 } // namespace internal
225 } // namespace v8 224 } // namespace v8
226 225
227 #endif // V8_EXECUTION_H_ 226 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/debug/debug.cc ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698