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

Side by Side Diff: src/execution.h

Issue 77035: Add ENABLE_DEBUGGER_SUPPORT macro.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 Handle<FunctionTemplateInfo> data, bool* exc); 111 Handle<FunctionTemplateInfo> data, bool* exc);
112 static Handle<JSObject> InstantiateObject(Handle<ObjectTemplateInfo> data, 112 static Handle<JSObject> InstantiateObject(Handle<ObjectTemplateInfo> data,
113 bool* exc); 113 bool* exc);
114 static void ConfigureInstance(Handle<Object> instance, 114 static void ConfigureInstance(Handle<Object> instance,
115 Handle<Object> data, 115 Handle<Object> data,
116 bool* exc); 116 bool* exc);
117 static Handle<String> GetStackTraceLine(Handle<Object> recv, 117 static Handle<String> GetStackTraceLine(Handle<Object> recv,
118 Handle<JSFunction> fun, 118 Handle<JSFunction> fun,
119 Handle<Object> pos, 119 Handle<Object> pos,
120 Handle<Object> is_global); 120 Handle<Object> is_global);
121 121 #ifdef ENABLE_DEBUGGER_SUPPORT
122 static Object* DebugBreakHelper(); 122 static Object* DebugBreakHelper();
123 #endif
123 124
124 // If the stack guard is triggered, but it is not an actual 125 // If the stack guard is triggered, but it is not an actual
125 // stack overflow, then handle the interruption accordingly. 126 // stack overflow, then handle the interruption accordingly.
126 static Object* HandleStackGuardInterrupt(); 127 static Object* HandleStackGuardInterrupt();
127 128
128 // Get a function delegate (or undefined) for the given non-function 129 // Get a function delegate (or undefined) for the given non-function
129 // object. Used for support calling objects as functions. 130 // object. Used for support calling objects as functions.
130 static Handle<Object> GetFunctionDelegate(Handle<Object> object); 131 static Handle<Object> GetFunctionDelegate(Handle<Object> object);
131 }; 132 };
132 133
(...skipping 18 matching lines...) Expand all
151 // Threading support. 152 // Threading support.
152 static char* ArchiveStackGuard(char* to); 153 static char* ArchiveStackGuard(char* to);
153 static char* RestoreStackGuard(char* from); 154 static char* RestoreStackGuard(char* from);
154 static int ArchiveSpacePerThread(); 155 static int ArchiveSpacePerThread();
155 156
156 static bool IsStackOverflow(); 157 static bool IsStackOverflow();
157 static bool IsPreempted(); 158 static bool IsPreempted();
158 static void Preempt(); 159 static void Preempt();
159 static bool IsInterrupted(); 160 static bool IsInterrupted();
160 static void Interrupt(); 161 static void Interrupt();
162 static void Continue(InterruptFlag after_what);
163 #ifdef ENABLE_DEBUGGER_SUPPORT
164 static void DebugBreak();
165 static void DebugCommand();
161 static bool IsDebugBreak(); 166 static bool IsDebugBreak();
162 static void DebugBreak();
163 static bool IsDebugCommand(); 167 static bool IsDebugCommand();
164 static void DebugCommand(); 168 #endif
165 static void Continue(InterruptFlag after_what);
166 169
167 private: 170 private:
168 // You should hold the ExecutionAccess lock when calling this method. 171 // You should hold the ExecutionAccess lock when calling this method.
169 static bool IsSet(const ExecutionAccess& lock); 172 static bool IsSet(const ExecutionAccess& lock);
170 173
171 // This provides an asynchronous read of the stack limit for the current 174 // This provides an asynchronous read of the stack limit for the current
172 // thread. There are no locks protecting this, but it is assumed that you 175 // thread. There are no locks protecting this, but it is assumed that you
173 // have the global V8 lock if you are using multiple V8 threads. 176 // have the global V8 lock if you are using multiple V8 threads.
174 static uintptr_t climit() { 177 static uintptr_t climit() {
175 return thread_local_.climit_; 178 return thread_local_.climit_;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 v8::Handle<v8::String> name); 270 v8::Handle<v8::String> name);
268 static v8::Handle<v8::Value> GC(const v8::Arguments& args); 271 static v8::Handle<v8::Value> GC(const v8::Arguments& args);
269 private: 272 private:
270 static const char* kSource; 273 static const char* kSource;
271 }; 274 };
272 275
273 276
274 } } // namespace v8::internal 277 } } // namespace v8::internal
275 278
276 #endif // V8_EXECUTION_H_ 279 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/debug-ia32.cc ('k') | src/execution.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698