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

Side by Side Diff: src/execution.h

Issue 368053002: Stack overflow checkers are now compatible with ASAN's detect_stack_use_after_return mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/base/macros.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 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/handles.h" 8 #include "src/handles.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // one without the real_ prefix. 254 // one without the real_ prefix.
255 uintptr_t real_jslimit_; // Actual JavaScript stack limit set for the VM. 255 uintptr_t real_jslimit_; // Actual JavaScript stack limit set for the VM.
256 uintptr_t jslimit_; 256 uintptr_t jslimit_;
257 uintptr_t real_climit_; // Actual C++ stack limit set for the VM. 257 uintptr_t real_climit_; // Actual C++ stack limit set for the VM.
258 uintptr_t climit_; 258 uintptr_t climit_;
259 259
260 PostponeInterruptsScope* postpone_interrupts_; 260 PostponeInterruptsScope* postpone_interrupts_;
261 int interrupt_flags_; 261 int interrupt_flags_;
262 }; 262 };
263 263
264 class StackPointer {
265 public:
266 inline uintptr_t address() { return reinterpret_cast<uintptr_t>(this); }
267 };
268
269 // TODO(isolates): Technically this could be calculated directly from a 264 // TODO(isolates): Technically this could be calculated directly from a
270 // pointer to StackGuard. 265 // pointer to StackGuard.
271 Isolate* isolate_; 266 Isolate* isolate_;
272 ThreadLocal thread_local_; 267 ThreadLocal thread_local_;
273 268
274 friend class Isolate; 269 friend class Isolate;
275 friend class StackLimitCheck; 270 friend class StackLimitCheck;
276 friend class PostponeInterruptsScope; 271 friend class PostponeInterruptsScope;
277 272
278 DISALLOW_COPY_AND_ASSIGN(StackGuard); 273 DISALLOW_COPY_AND_ASSIGN(StackGuard);
279 }; 274 };
280 275
281 } } // namespace v8::internal 276 } } // namespace v8::internal
282 277
283 #endif // V8_EXECUTION_H_ 278 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/base/macros.h ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698