Lines Matching refs:internal
35 explicit NeanderObject(v8::internal::Isolate* isolate, int size);
36 explicit inline NeanderObject(v8::internal::Handle<v8::internal::Object> obj);
37 explicit inline NeanderObject(v8::internal::Object* obj);
38 inline v8::internal::Object* get(int index);
39 inline void set(int index, v8::internal::Object* value);
40 inline v8::internal::Handle<v8::internal::JSObject> value() { return value_; } in value()
43 v8::internal::Handle<v8::internal::JSObject> value_;
51 explicit NeanderArray(v8::internal::Isolate* isolate);
52 explicit inline NeanderArray(v8::internal::Handle<v8::internal::Object> obj);
53 inline v8::internal::Handle<v8::internal::JSObject> value() { in value()
57 void add(v8::internal::Handle<v8::internal::Object> value);
61 v8::internal::Object* get(int index);
64 void set(int index, v8::internal::Object* value);
70 NeanderObject::NeanderObject(v8::internal::Handle<v8::internal::Object> obj) in NeanderObject()
71 : value_(v8::internal::Handle<v8::internal::JSObject>::cast(obj)) { } in NeanderObject()
74 NeanderObject::NeanderObject(v8::internal::Object* obj) in NeanderObject()
75 : value_(v8::internal::Handle<v8::internal::JSObject>( in NeanderObject()
76 v8::internal::JSObject::cast(obj))) { } in NeanderObject()
79 NeanderArray::NeanderArray(v8::internal::Handle<v8::internal::Object> obj) in NeanderArray()
83 v8::internal::Object* NeanderObject::get(int offset) { in get()
85 return v8::internal::FixedArray::cast(value()->elements())->get(offset); in get()
89 void NeanderObject::set(int offset, v8::internal::Object* value) { in set()
91 v8::internal::FixedArray::cast(value_->elements())->set(offset, value); in set()
95 template <typename T> inline T ToCData(v8::internal::Object* obj) { in ToCData()
96 STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address)); in ToCData()
99 v8::internal::Foreign::cast(obj)->foreign_address())); in ToCData()
104 inline v8::internal::Handle<v8::internal::Object> FromCData( in FromCData()
105 v8::internal::Isolate* isolate, T obj) { in FromCData()
106 STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address)); in FromCData()
108 reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(obj))); in FromCData()
114 explicit ApiFunction(v8::internal::Address addr) : addr_(addr) { } in ApiFunction()
115 v8::internal::Address address() { return addr_; } in address()
117 v8::internal::Address addr_;
188 v8::internal::Handle<v8::internal::Context> obj);
190 v8::internal::Handle<v8::internal::Object> obj);
192 v8::internal::Handle<v8::internal::JSFunction> obj);
194 v8::internal::Handle<v8::internal::Name> obj);
196 v8::internal::Handle<v8::internal::String> obj);
198 v8::internal::Handle<v8::internal::Symbol> obj);
200 v8::internal::Handle<v8::internal::JSRegExp> obj);
202 v8::internal::Handle<v8::internal::JSObject> obj);
204 v8::internal::Handle<v8::internal::JSArray> obj);
206 v8::internal::Handle<v8::internal::JSArrayBuffer> obj);
208 v8::internal::Handle<v8::internal::JSArrayBufferView> obj);
210 v8::internal::Handle<v8::internal::JSDataView> obj);
213 v8::internal::Handle<v8::internal::JSTypedArray> obj);
215 v8::internal::Handle<v8::internal::JSTypedArray> obj);
217 v8::internal::Handle<v8::internal::JSTypedArray> obj);
219 v8::internal::Handle<v8::internal::JSTypedArray> obj);
221 v8::internal::Handle<v8::internal::JSTypedArray> obj);
223 v8::internal::Handle<v8::internal::JSTypedArray> obj);
225 v8::internal::Handle<v8::internal::JSTypedArray> obj);
227 v8::internal::Handle<v8::internal::JSTypedArray> obj);
229 v8::internal::Handle<v8::internal::JSTypedArray> obj);
231 v8::internal::Handle<v8::internal::JSTypedArray> obj);
234 v8::internal::Handle<v8::internal::Object> obj);
236 v8::internal::Handle<v8::internal::JSArray> obj);
238 v8::internal::Handle<v8::internal::JSObject> obj);
240 v8::internal::Handle<v8::internal::Object> obj);
242 v8::internal::Handle<v8::internal::Object> obj);
244 v8::internal::Handle<v8::internal::Object> obj);
246 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj);
248 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj);
250 v8::internal::Handle<v8::internal::SignatureInfo> obj);
252 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj);
254 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj);
256 v8::internal::Handle<v8::internal::JSObject> obj);
258 v8::internal::Handle<v8::internal::DeclaredAccessorDescriptor> obj);
261 static inline v8::internal::Handle<v8::internal::To> \
269 static inline Local<To> Convert(v8::internal::Handle<From> obj) { in OPEN_HANDLE_LIST()
275 static inline v8::internal::Handle<v8::internal::Object> OpenPersistent( in OpenPersistent()
277 return v8::internal::Handle<v8::internal::Object>( in OpenPersistent()
278 reinterpret_cast<v8::internal::Object**>(persistent.val_)); in OpenPersistent()
282 static inline v8::internal::Handle<v8::internal::Object> OpenPersistent( in OpenPersistent()
288 static inline v8::internal::Handle<To> OpenHandle(v8::Local<From> handle) { in OpenHandle()
298 v8::internal::Handle<T> v8::internal::Handle<T>::EscapeFrom( in EscapeFrom()
300 v8::internal::Handle<T> handle; in EscapeFrom()
309 inline T* ToApi(v8::internal::Handle<v8::internal::Object> obj) { in ToApi()
315 v8::internal::Handle<v8::internal::Object> obj) { in ToApiHandle()
316 return Utils::Convert<v8::internal::Object, T>(obj); in ToApiHandle()
323 Local<v8::To> Utils::Name(v8::internal::Handle<v8::internal::From> obj) { \
324 return Convert<v8::internal::From, v8::To>(obj); \
330 v8::internal::Handle<v8::internal::JSTypedArray> obj) { \
332 return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \
373 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \ in MAKE_TO_LOCAL()
377 (*reinterpret_cast<v8::internal::Object* const*>(that))->Is##To()); \ in MAKE_TO_LOCAL()
378 return v8::internal::Handle<v8::internal::To>( \ in MAKE_TO_LOCAL()
379 reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \ in MAKE_TO_LOCAL()
388 namespace internal {
514 void Iterate(v8::internal::ObjectVisitor* v);
515 static char* Iterate(v8::internal::ObjectVisitor* v, char* data);
518 inline internal::Object** GetSpareOrNewBlock();
519 inline void DeleteExtensions(internal::Object** prev_limit);
537 inline List<internal::Object**>* blocks() { return &blocks_; }
574 List<internal::Object**> blocks_;
596 const int kHandleBlockSize = v8::internal::KB - 2; // fit in one page
636 internal::Object** HandleScopeImplementer::GetSpareOrNewBlock() {
637 internal::Object** block = (spare_ != NULL) ?
639 NewArray<internal::Object*>(kHandleBlockSize);
645 void HandleScopeImplementer::DeleteExtensions(internal::Object** prev_limit) {
647 internal::Object** block_start = blocks_.last();
648 internal::Object** block_limit = block_start + kHandleBlockSize;
653 internal::HandleScope::ZapRange(prev_limit, block_limit);
663 internal::HandleScope::ZapRange(block_start, block_limit);