| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |