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

Side by Side Diff: runtime/vm/isolate.h

Issue 12207142: - Make size of the stack red zone depend on word size. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/thread.h" 10 #include "platform/thread.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // The current stack limit. This may be overwritten with a special 198 // The current stack limit. This may be overwritten with a special
199 // value to trigger interrupts. 199 // value to trigger interrupts.
200 uword stack_limit() const { return stack_limit_; } 200 uword stack_limit() const { return stack_limit_; }
201 201
202 // The true stack limit for this isolate. 202 // The true stack limit for this isolate.
203 uword saved_stack_limit() const { return saved_stack_limit_; } 203 uword saved_stack_limit() const { return saved_stack_limit_; }
204 204
205 static uword GetSpecifiedStackSize(); 205 static uword GetSpecifiedStackSize();
206 206
207 static const intptr_t kStackSizeBuffer = (16 * KB); 207 static const intptr_t kStackSizeBuffer = (4 * KB * kWordSize);
208 208
209 enum { 209 enum {
210 kApiInterrupt = 0x1, // An interrupt from Dart_InterruptIsolate. 210 kApiInterrupt = 0x1, // An interrupt from Dart_InterruptIsolate.
211 kMessageInterrupt = 0x2, // An interrupt to process an out of band message. 211 kMessageInterrupt = 0x2, // An interrupt to process an out of band message.
212 kStoreBufferInterrupt = 0x4, // An interrupt to process the store buffer. 212 kStoreBufferInterrupt = 0x4, // An interrupt to process the store buffer.
213 213
214 kInterruptsMask = 214 kInterruptsMask =
215 kApiInterrupt | 215 kApiInterrupt |
216 kMessageInterrupt | 216 kMessageInterrupt |
217 kStoreBufferInterrupt, 217 kStoreBufferInterrupt,
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 Isolate* new_isolate_; 460 Isolate* new_isolate_;
461 Isolate* saved_isolate_; 461 Isolate* saved_isolate_;
462 uword saved_stack_limit_; 462 uword saved_stack_limit_;
463 463
464 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); 464 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope);
465 }; 465 };
466 466
467 } // namespace dart 467 } // namespace dart
468 468
469 #endif // VM_ISOLATE_H_ 469 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698