| 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_RUNTIME_UTILS_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_UTILS_H_ |
| 6 #define V8_RUNTIME_RUNTIME_UTILS_H_ | 6 #define V8_RUNTIME_RUNTIME_UTILS_H_ |
| 7 | 7 |
| 8 #include "src/base/logging.h" | 8 #include "src/base/logging.h" |
| 9 #include "src/globals.h" |
| 9 #include "src/runtime/runtime.h" | 10 #include "src/runtime/runtime.h" |
| 10 | 11 |
| 11 namespace v8 { | 12 namespace v8 { |
| 12 namespace internal { | 13 namespace internal { |
| 13 | 14 |
| 14 // Cast the given object to a value of the specified type and store | 15 // Cast the given object to a value of the specified type and store |
| 15 // it in a variable with the given name. If the object is not of the | 16 // it in a variable with the given name. If the object is not of the |
| 16 // expected type we crash safely. | 17 // expected type we crash safely. |
| 17 #define CONVERT_ARG_CHECKED(Type, name, index) \ | 18 #define CONVERT_ARG_CHECKED(Type, name, index) \ |
| 18 CHECK(args[index]->Is##Type()); \ | 19 CHECK(args[index]->Is##Type()); \ |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 static inline ObjectTriple MakeTriple(Object* x, Object* y, Object* z) { | 165 static inline ObjectTriple MakeTriple(Object* x, Object* y, Object* z) { |
| 165 ObjectTriple result = {x, y, z}; | 166 ObjectTriple result = {x, y, z}; |
| 166 // ObjectTriple is assigned to a hidden first argument. | 167 // ObjectTriple is assigned to a hidden first argument. |
| 167 return result; | 168 return result; |
| 168 } | 169 } |
| 169 | 170 |
| 170 } // namespace internal | 171 } // namespace internal |
| 171 } // namespace v8 | 172 } // namespace v8 |
| 172 | 173 |
| 173 #endif // V8_RUNTIME_RUNTIME_UTILS_H_ | 174 #endif // V8_RUNTIME_RUNTIME_UTILS_H_ |
| OLD | NEW |