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

Side by Side Diff: src/execution.h

Issue 251014: * Fix memory leaks caused by thread local data being lost.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 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/debug.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 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 static void SetStackLimit(uintptr_t limit); 152 static void SetStackLimit(uintptr_t limit);
153 153
154 static Address address_of_jslimit() { 154 static Address address_of_jslimit() {
155 return reinterpret_cast<Address>(&thread_local_.jslimit_); 155 return reinterpret_cast<Address>(&thread_local_.jslimit_);
156 } 156 }
157 157
158 // Threading support. 158 // Threading support.
159 static char* ArchiveStackGuard(char* to); 159 static char* ArchiveStackGuard(char* to);
160 static char* RestoreStackGuard(char* from); 160 static char* RestoreStackGuard(char* from);
161 static int ArchiveSpacePerThread(); 161 static int ArchiveSpacePerThread();
162 static void FreeThreadResources();
162 163
163 static bool IsStackOverflow(); 164 static bool IsStackOverflow();
164 static bool IsPreempted(); 165 static bool IsPreempted();
165 static void Preempt(); 166 static void Preempt();
166 static bool IsInterrupted(); 167 static bool IsInterrupted();
167 static void Interrupt(); 168 static void Interrupt();
168 static bool IsTerminateExecution(); 169 static bool IsTerminateExecution();
169 static void TerminateExecution(); 170 static void TerminateExecution();
170 #ifdef ENABLE_DEBUGGER_SUPPORT 171 #ifdef ENABLE_DEBUGGER_SUPPORT
171 static bool IsDebugBreak(); 172 static bool IsDebugBreak();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 v8::Handle<v8::String> name); 292 v8::Handle<v8::String> name);
292 static v8::Handle<v8::Value> GC(const v8::Arguments& args); 293 static v8::Handle<v8::Value> GC(const v8::Arguments& args);
293 private: 294 private:
294 static const char* kSource; 295 static const char* kSource;
295 }; 296 };
296 297
297 298
298 } } // namespace v8::internal 299 } } // namespace v8::internal
299 300
300 #endif // V8_EXECUTION_H_ 301 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698