OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_HANDLES_H_ | 5 #ifndef V8_HANDLES_H_ |
6 #define V8_HANDLES_H_ | 6 #define V8_HANDLES_H_ |
7 | 7 |
8 #include "objects.h" | 8 #include "src/objects.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 // A Handle can be converted into a MaybeHandle. Converting a MaybeHandle | 13 // A Handle can be converted into a MaybeHandle. Converting a MaybeHandle |
14 // into a Handle requires checking that it does not point to NULL. This | 14 // into a Handle requires checking that it does not point to NULL. This |
15 // ensures NULL checks before use. | 15 // ensures NULL checks before use. |
16 // Do not use MaybeHandle as argument type. | 16 // Do not use MaybeHandle as argument type. |
17 | 17 |
18 template<typename T> | 18 template<typename T> |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 288 |
289 void Initialize() { | 289 void Initialize() { |
290 next = limit = NULL; | 290 next = limit = NULL; |
291 level = 0; | 291 level = 0; |
292 } | 292 } |
293 }; | 293 }; |
294 | 294 |
295 } } // namespace v8::internal | 295 } } // namespace v8::internal |
296 | 296 |
297 #endif // V8_HANDLES_H_ | 297 #endif // V8_HANDLES_H_ |
OLD | NEW |