| 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/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/base/atomicops.h" | 9 #include "src/base/atomicops.h" |
| 10 #include "src/handles.h" | |
| 11 #include "src/utils.h" | 10 #include "src/utils.h" |
| 12 | 11 |
| 13 namespace v8 { | 12 namespace v8 { |
| 14 namespace internal { | 13 namespace internal { |
| 15 | 14 |
| 15 template <typename T> |
| 16 class Handle; |
| 17 |
| 16 class Execution final : public AllStatic { | 18 class Execution final : public AllStatic { |
| 17 public: | 19 public: |
| 18 // Whether to report pending messages, or keep them pending on the isolate. | 20 // Whether to report pending messages, or keep them pending on the isolate. |
| 19 enum class MessageHandling { kReport, kKeepPending }; | 21 enum class MessageHandling { kReport, kKeepPending }; |
| 20 | 22 |
| 21 // Call a function, the caller supplies a receiver and an array | 23 // Call a function, the caller supplies a receiver and an array |
| 22 // of arguments. | 24 // of arguments. |
| 23 // | 25 // |
| 24 // When the function called is not in strict mode, receiver is | 26 // When the function called is not in strict mode, receiver is |
| 25 // converted to an object. | 27 // converted to an object. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 friend class StackLimitCheck; | 224 friend class StackLimitCheck; |
| 223 friend class PostponeInterruptsScope; | 225 friend class PostponeInterruptsScope; |
| 224 | 226 |
| 225 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 227 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 226 }; | 228 }; |
| 227 | 229 |
| 228 } // namespace internal | 230 } // namespace internal |
| 229 } // namespace v8 | 231 } // namespace v8 |
| 230 | 232 |
| 231 #endif // V8_EXECUTION_H_ | 233 #endif // V8_EXECUTION_H_ |
| OLD | NEW |