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

Side by Side Diff: src/execution.h

Issue 177493002: Introduce SynchronizedScope to allow heap access from compiler thread. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 9 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/compiler.h ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 27 matching lines...) Expand all
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 GC_REQUEST = 1 << 5, 44 GC_REQUEST = 1 << 5,
45 FULL_DEOPT = 1 << 6, 45 FULL_DEOPT = 1 << 6,
46 INSTALL_CODE = 1 << 7, 46 INSTALL_CODE = 1 << 7,
47 API_INTERRUPT = 1 << 8, 47 API_INTERRUPT = 1 << 8,
48 DEOPT_MARKED_ALLOCATION_SITES = 1 << 9 48 DEOPT_MARKED_ALLOCATION_SITES = 1 << 9,
49 COMPILER_SYNC = 1 << 10
49 }; 50 };
50 51
51 52
52 class Isolate; 53 class Isolate;
53 54
54 55
55 class Execution : public AllStatic { 56 class Execution : public AllStatic {
56 public: 57 public:
57 // Call a function, the caller supplies a receiver and an array 58 // Call a function, the caller supplies a receiver and an array
58 // of arguments. Arguments are Object* type. After function returns, 59 // of arguments. Arguments are Object* type. After function returns,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #ifdef ENABLE_DEBUGGER_SUPPORT 215 #ifdef ENABLE_DEBUGGER_SUPPORT
215 bool IsDebugBreak(); 216 bool IsDebugBreak();
216 void DebugBreak(); 217 void DebugBreak();
217 bool IsDebugCommand(); 218 bool IsDebugCommand();
218 void DebugCommand(); 219 void DebugCommand();
219 #endif 220 #endif
220 bool IsGCRequest(); 221 bool IsGCRequest();
221 void RequestGC(); 222 void RequestGC();
222 bool IsInstallCodeRequest(); 223 bool IsInstallCodeRequest();
223 void RequestInstallCode(); 224 void RequestInstallCode();
225 bool IsCompilerSyncRequest();
226 void RequestCompilerSync();
224 bool IsFullDeopt(); 227 bool IsFullDeopt();
225 void FullDeopt(); 228 void FullDeopt();
226 bool IsDeoptMarkedAllocationSites(); 229 bool IsDeoptMarkedAllocationSites();
227 void DeoptMarkedAllocationSites(); 230 void DeoptMarkedAllocationSites();
228 void Continue(InterruptFlag after_what); 231 void Continue(InterruptFlag after_what);
229 232
230 void RequestInterrupt(InterruptCallback callback, void* data); 233 void RequestInterrupt(InterruptCallback callback, void* data);
231 void ClearInterrupt(); 234 void ClearInterrupt();
232 bool IsAPIInterrupt(); 235 bool IsAPIInterrupt();
233 void InvokeInterruptCallback(); 236 void InvokeInterruptCallback();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 friend class StackLimitCheck; 334 friend class StackLimitCheck;
332 friend class PostponeInterruptsScope; 335 friend class PostponeInterruptsScope;
333 336
334 DISALLOW_COPY_AND_ASSIGN(StackGuard); 337 DISALLOW_COPY_AND_ASSIGN(StackGuard);
335 }; 338 };
336 339
337 340
338 } } // namespace v8::internal 341 } } // namespace v8::internal
339 342
340 #endif // V8_EXECUTION_H_ 343 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698