| 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_RUNTIME_UTILS_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_UTILS_H_ |
| 6 #define V8_RUNTIME_UTILS_H_ | 6 #define V8_RUNTIME_RUNTIME_UTILS_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| 11 | 11 |
| 12 #define RUNTIME_ASSERT(value) \ | 12 #define RUNTIME_ASSERT(value) \ |
| 13 if (!(value)) return isolate->ThrowIllegalOperation(); | 13 if (!(value)) return isolate->ThrowIllegalOperation(); |
| 14 | 14 |
| 15 #define RUNTIME_ASSERT_HANDLIFIED(value, T) \ | 15 #define RUNTIME_ASSERT_HANDLIFIED(value, T) \ |
| 16 if (!(value)) { \ | 16 if (!(value)) { \ |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 (reinterpret_cast<ObjectPair>(y) << 32); | 134 (reinterpret_cast<ObjectPair>(y) << 32); |
| 135 #elif defined(V8_TARGET_BIG_ENDIAN) | 135 #elif defined(V8_TARGET_BIG_ENDIAN) |
| 136 return reinterpret_cast<uint32_t>(y) | | 136 return reinterpret_cast<uint32_t>(y) | |
| 137 (reinterpret_cast<ObjectPair>(x) << 32); | 137 (reinterpret_cast<ObjectPair>(x) << 32); |
| 138 #else | 138 #else |
| 139 #error Unknown endianness | 139 #error Unknown endianness |
| 140 #endif | 140 #endif |
| 141 } | 141 } |
| 142 #endif | 142 #endif |
| 143 | 143 |
| 144 class JavaScriptFrameIterator; | |
| 145 | |
| 146 int FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index); | |
| 147 } | 144 } |
| 148 } // namespace v8::internal | 145 } // namespace v8::internal |
| 149 | 146 |
| 150 #endif // V8_RUNTIME_UTILS_H_ | 147 #endif // V8_RUNTIME_RUNTIME_UTILS_H_ |
| OLD | NEW |