OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 | 5 |
6 #ifndef V8_HANDLES_INL_H_ | 6 #ifndef V8_HANDLES_INL_H_ |
7 #define V8_HANDLES_INL_H_ | 7 #define V8_HANDLES_INL_H_ |
8 | 8 |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/handles.h" | 10 #include "src/handles.h" |
11 #include "src/heap.h" | 11 #include "src/heap/heap.h" |
12 #include "src/isolate.h" | 12 #include "src/isolate.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 template<typename T> | 17 template<typename T> |
18 Handle<T>::Handle(T* obj) { | 18 Handle<T>::Handle(T* obj) { |
19 location_ = HandleScope::CreateHandle(obj->GetIsolate(), obj); | 19 location_ = HandleScope::CreateHandle(obj->GetIsolate(), obj); |
20 } | 20 } |
21 | 21 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 current->level = level_; | 174 current->level = level_; |
175 DCHECK_EQ(current->next, current->limit); | 175 DCHECK_EQ(current->next, current->limit); |
176 current->limit = limit_; | 176 current->limit = limit_; |
177 } | 177 } |
178 | 178 |
179 #endif | 179 #endif |
180 | 180 |
181 } } // namespace v8::internal | 181 } } // namespace v8::internal |
182 | 182 |
183 #endif // V8_HANDLES_INL_H_ | 183 #endif // V8_HANDLES_INL_H_ |
OLD | NEW |