blob: 9bb3b1f1d5cac7fa2e7e13e896b41e557e07c0eb [file] [log] [blame]
jkummerow@chromium.orge297f592011-06-08 10:05:15 +00001// Copyright 2011 the V8 project authors. All rights reserved.
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +00002// Redistribution and use in source and binary forms, with or without
3// modification, are permitted provided that the following conditions are
4// met:
5//
6// * Redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer.
8// * Redistributions in binary form must reproduce the above
9// copyright notice, this list of conditions and the following
10// disclaimer in the documentation and/or other materials provided
11// with the distribution.
12// * Neither the name of Google Inc. nor the names of its
13// contributors may be used to endorse or promote products derived
14// from this software without specific prior written permission.
15//
16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28#ifndef V8_HANDLES_H_
29#define V8_HANDLES_H_
30
lrn@chromium.org1c092762011-05-09 09:42:16 +000031#include "allocation.h"
ager@chromium.orgddb913d2009-01-27 10:01:48 +000032#include "apiutils.h"
33
kasperl@chromium.org71affb52009-05-26 05:44:31 +000034namespace v8 {
35namespace internal {
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +000036
37// ----------------------------------------------------------------------------
38// A Handle provides a reference to an object that survives relocation by
39// the garbage collector.
ager@chromium.orgddb913d2009-01-27 10:01:48 +000040// Handles are only valid within a HandleScope.
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +000041// When a handle is created for an object a cell is allocated in the heap.
42
vegorov@chromium.org5d6c1f52011-02-28 13:13:38 +000043template<typename T>
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +000044class Handle {
45 public:
ager@chromium.orgac091b72010-05-05 07:34:42 +000046 INLINE(explicit Handle(T** location)) { location_ = location; }
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +000047 INLINE(explicit Handle(T* obj));
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +000048 INLINE(Handle(T* obj, Isolate* isolate));
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +000049
50 INLINE(Handle()) : location_(NULL) {}
51
52 // Constructor for handling automatic up casting.
53 // Ex. Handle<JSFunction> can be passed when Handle<Object> is expected.
54 template <class S> Handle(Handle<S> handle) {
55#ifdef DEBUG
56 T* a = NULL;
57 S* b = NULL;
58 a = b; // Fake assignment to enforce type checks.
59 USE(a);
60#endif
61 location_ = reinterpret_cast<T**>(handle.location());
62 }
63
kasperl@chromium.org68ac0092009-07-09 06:00:35 +000064 INLINE(T* operator ->() const) { return operator*(); }
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +000065
66 // Check if this handle refers to the exact same object as the other handle.
67 bool is_identical_to(const Handle<T> other) const {
68 return operator*() == *other;
69 }
70
71 // Provides the C++ dereference operator.
72 INLINE(T* operator*() const);
73
74 // Returns the address to where the raw pointer is stored.
75 T** location() const {
76 ASSERT(location_ == NULL ||
77 reinterpret_cast<Address>(*location_) != kZapValue);
78 return location_;
79 }
80
81 template <class S> static Handle<T> cast(Handle<S> that) {
82 T::cast(*that);
83 return Handle<T>(reinterpret_cast<T**>(that.location()));
84 }
85
86 static Handle<T> null() { return Handle<T>(); }
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +000087 bool is_null() const { return location_ == NULL; }
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +000088
89 // Closes the given scope, but lets this handle escape. See
90 // implementation in api.h.
ager@chromium.orgddb913d2009-01-27 10:01:48 +000091 inline Handle<T> EscapeFrom(v8::HandleScope* scope);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +000092
93 private:
94 T** location_;
95};
96
97
ager@chromium.orgddb913d2009-01-27 10:01:48 +000098// A stack-allocated class that governs a number of local handles.
99// After a handle scope has been created, all local handles will be
100// allocated within that handle scope until either the handle scope is
101// deleted or another handle scope is created. If there is already a
102// handle scope and a new one is created, all allocations will take
103// place in the new handle scope until it is deleted. After that,
104// new handles will again be allocated in the original handle scope.
105//
106// After the handle scope of a local handle has been deleted the
107// garbage collector will no longer track the object stored in the
108// handle and may deallocate it. The behavior of accessing a handle
109// for which the handle scope has been deleted is undefined.
110class HandleScope {
111 public:
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +0000112 inline HandleScope();
113 explicit inline HandleScope(Isolate* isolate);
ager@chromium.orgddb913d2009-01-27 10:01:48 +0000114
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +0000115 inline ~HandleScope();
ager@chromium.orgddb913d2009-01-27 10:01:48 +0000116
117 // Counts the number of allocated handles.
118 static int NumberOfHandles();
119
120 // Creates a new handle with the given value.
sgjesse@chromium.org911335c2009-08-19 12:59:44 +0000121 template <typename T>
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +0000122 static inline T** CreateHandle(T* value, Isolate* isolate);
ager@chromium.orgddb913d2009-01-27 10:01:48 +0000123
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000124 // Deallocates any extensions used by the current scope.
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +0000125 static void DeleteExtensions(Isolate* isolate);
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000126
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000127 static Address current_next_address();
128 static Address current_limit_address();
lrn@chromium.org303ada72010-10-27 09:33:13 +0000129 static Address current_level_address();
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000130
ager@chromium.org9ee27ae2011-03-02 13:43:26 +0000131 // Closes the HandleScope (invalidating all handles
132 // created in the scope of the HandleScope) and returns
133 // a Handle backed by the parent scope holding the
134 // value of the argument handle.
135 template <typename T>
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +0000136 Handle<T> CloseAndEscape(Handle<T> handle_value);
137
138 Isolate* isolate() { return isolate_; }
ager@chromium.org9ee27ae2011-03-02 13:43:26 +0000139
ager@chromium.orgddb913d2009-01-27 10:01:48 +0000140 private:
141 // Prevent heap allocation or illegal handle scopes.
142 HandleScope(const HandleScope&);
143 void operator=(const HandleScope&);
144 void* operator new(size_t size);
145 void operator delete(void* size_t);
146
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +0000147 inline void CloseScope();
ager@chromium.org9ee27ae2011-03-02 13:43:26 +0000148
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +0000149 Isolate* isolate_;
ager@chromium.org9ee27ae2011-03-02 13:43:26 +0000150 Object** prev_next_;
151 Object** prev_limit_;
ager@chromium.orgddb913d2009-01-27 10:01:48 +0000152
ager@chromium.org3b45ab52009-03-19 22:21:34 +0000153 // Extend the handle scope making room for more handles.
ager@chromium.org18ad94b2009-09-02 08:22:29 +0000154 static internal::Object** Extend();
ager@chromium.org3b45ab52009-03-19 22:21:34 +0000155
ager@chromium.orgddb913d2009-01-27 10:01:48 +0000156 // Zaps the handles in the half-open interval [start, end).
ager@chromium.org18ad94b2009-09-02 08:22:29 +0000157 static void ZapRange(internal::Object** start, internal::Object** end);
ager@chromium.orgddb913d2009-01-27 10:01:48 +0000158
159 friend class v8::HandleScope;
160 friend class v8::ImplementationUtilities;
161};
162
163
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000164// ----------------------------------------------------------------------------
165// Handle operations.
166// They might invoke garbage collection. The result is an handle to
167// an object of expected type, or the handle is an error if running out
ager@chromium.org32912102009-01-16 10:38:43 +0000168// of space or encountering an internal error.
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000169
ager@chromium.org32912102009-01-16 10:38:43 +0000170void NormalizeProperties(Handle<JSObject> object,
sgjesse@chromium.org0b6db592009-07-30 14:48:31 +0000171 PropertyNormalizationMode mode,
172 int expected_additional_properties);
ricow@chromium.org4f693d62011-07-04 14:01:31 +0000173Handle<NumberDictionary> NormalizeElements(Handle<JSObject> object);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000174void TransformToFastProperties(Handle<JSObject> object,
175 int unused_property_fields);
jkummerow@chromium.orge297f592011-06-08 10:05:15 +0000176MUST_USE_RESULT Handle<NumberDictionary> NumberDictionarySet(
177 Handle<NumberDictionary> dictionary,
178 uint32_t index,
179 Handle<Object> value,
180 PropertyDetails details);
lrn@chromium.org32d961d2010-06-30 09:09:34 +0000181
182// Flattens a string.
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000183void FlattenString(Handle<String> str);
184
lrn@chromium.org32d961d2010-06-30 09:09:34 +0000185// Flattens a string and returns the underlying external or sequential
186// string.
187Handle<String> FlattenGetString(Handle<String> str);
188
ricow@chromium.orgd2be9012011-06-01 06:00:58 +0000189Handle<Object> SetProperty(Handle<JSReceiver> object,
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000190 Handle<String> key,
191 Handle<Object> value,
ager@chromium.org9ee27ae2011-03-02 13:43:26 +0000192 PropertyAttributes attributes,
karlklose@chromium.org8f806e82011-03-07 14:06:08 +0000193 StrictModeFlag strict_mode);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000194
195Handle<Object> SetProperty(Handle<Object> object,
196 Handle<Object> key,
197 Handle<Object> value,
ager@chromium.org9ee27ae2011-03-02 13:43:26 +0000198 PropertyAttributes attributes,
karlklose@chromium.org8f806e82011-03-07 14:06:08 +0000199 StrictModeFlag strict_mode);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000200
ager@chromium.org65dad4b2009-04-23 08:48:43 +0000201Handle<Object> ForceSetProperty(Handle<JSObject> object,
202 Handle<Object> key,
203 Handle<Object> value,
204 PropertyAttributes attributes);
205
kmillikin@chromium.org5d8f0e62010-03-24 08:21:20 +0000206Handle<Object> SetNormalizedProperty(Handle<JSObject> object,
207 Handle<String> key,
208 Handle<Object> value,
209 PropertyDetails details);
210
ager@chromium.orge2902be2009-06-08 12:21:35 +0000211Handle<Object> ForceDeleteProperty(Handle<JSObject> object,
212 Handle<Object> key);
213
kmillikin@chromium.orgd2c22f02011-01-10 08:15:37 +0000214Handle<Object> SetLocalPropertyIgnoreAttributes(
215 Handle<JSObject> object,
216 Handle<String> key,
217 Handle<Object> value,
kasperl@chromium.org41044eb2008-10-06 08:24:46 +0000218 PropertyAttributes attributes);
219
sgjesse@chromium.org496c03a2011-02-14 12:05:43 +0000220// Used to set local properties on the object we totally control
221// and which therefore has no accessors and alikes.
222void SetLocalPropertyNoThrow(Handle<JSObject> object,
223 Handle<String> key,
224 Handle<Object> value,
225 PropertyAttributes attributes = NONE);
226
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000227Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object,
228 Handle<String> key,
229 Handle<Object> value,
ager@chromium.org9ee27ae2011-03-02 13:43:26 +0000230 PropertyAttributes attributes,
karlklose@chromium.org8f806e82011-03-07 14:06:08 +0000231 StrictModeFlag strict_mode);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000232
danno@chromium.org4d3fe4e2011-03-10 10:14:28 +0000233MUST_USE_RESULT Handle<Object> SetElement(Handle<JSObject> object,
234 uint32_t index,
235 Handle<Object> value,
236 StrictModeFlag strict_mode);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000237
kmillikin@chromium.orgd2c22f02011-01-10 08:15:37 +0000238Handle<Object> SetOwnElement(Handle<JSObject> object,
239 uint32_t index,
karlklose@chromium.org8f806e82011-03-07 14:06:08 +0000240 Handle<Object> value,
241 StrictModeFlag strict_mode);
kmillikin@chromium.orgd2c22f02011-01-10 08:15:37 +0000242
ricow@chromium.orgd2be9012011-06-01 06:00:58 +0000243Handle<Object> GetProperty(Handle<JSReceiver> obj,
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000244 const char* name);
245
246Handle<Object> GetProperty(Handle<Object> obj,
247 Handle<Object> key);
248
ricow@chromium.orgd2be9012011-06-01 06:00:58 +0000249Handle<Object> GetProperty(Handle<JSReceiver> obj,
karlklose@chromium.org44bc7082011-04-11 12:33:05 +0000250 Handle<String> name,
251 LookupResult* result);
252
253
ager@chromium.orgce5e87b2010-03-10 10:24:18 +0000254Handle<Object> GetElement(Handle<Object> obj,
255 uint32_t index);
256
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000257Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
258 Handle<JSObject> holder,
259 Handle<String> name,
260 PropertyAttributes* attributes);
261
262Handle<Object> GetPrototype(Handle<Object> obj);
263
ager@chromium.org5c838252010-02-19 08:53:10 +0000264Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value);
265
kasperl@chromium.orgb3284ad2009-05-18 06:12:45 +0000266// Return the object's hidden properties object. If the object has no hidden
vegorov@chromium.org7943d462011-08-01 11:41:52 +0000267// properties and HiddenPropertiesFlag::ALLOW_CREATION is passed, then a new
268// hidden property object will be allocated. Otherwise Heap::undefined_value
269// is returned.
270Handle<Object> GetHiddenProperties(Handle<JSObject> obj,
271 JSObject::HiddenPropertiesFlag flag);
272
273int GetIdentityHash(Handle<JSObject> obj);
ager@chromium.org3b45ab52009-03-19 22:21:34 +0000274
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000275Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index);
276Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop);
277
mads.s.ager@gmail.com9a4089a2008-09-01 08:55:01 +0000278Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
279
kasperl@chromium.org5a8ca6c2008-10-23 13:57:19 +0000280Handle<JSObject> Copy(Handle<JSObject> obj);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000281
kmillikin@chromium.org9155e252010-05-26 13:27:57 +0000282Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info);
283
iposva@chromium.org245aa852009-02-10 00:49:54 +0000284Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>,
285 Handle<JSArray> array);
286
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000287// Get the JS object corresponding to the given script; create it
288// if none exists.
289Handle<JSValue> GetScriptWrapper(Handle<Script> script);
290
kasperl@chromium.org7be3c992009-03-12 07:19:55 +0000291// Script line number computations.
292void InitScriptLineEnds(Handle<Script> script);
ricow@chromium.orgc9c80822010-04-21 08:22:37 +0000293// For string calculates an array of line end positions. If the string
294// does not end with a new line character, this character may optionally be
295// imagined.
296Handle<FixedArray> CalculateLineEnds(Handle<String> string,
297 bool with_imaginary_last_new_line);
kasperl@chromium.org7be3c992009-03-12 07:19:55 +0000298int GetScriptLineNumber(Handle<Script> script, int code_position);
whesse@chromium.orgcec079d2010-03-22 14:44:04 +0000299// The safe version does not make heap allocations but may work much slower.
300int GetScriptLineNumberSafe(Handle<Script> script, int code_position);
kasperl@chromium.org7be3c992009-03-12 07:19:55 +0000301
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000302// Computes the enumerable keys from interceptors. Used for debug mirrors and
303// by GetKeysInFixedArrayFor below.
304v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSObject> receiver,
305 Handle<JSObject> object);
306v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSObject> receiver,
307 Handle<JSObject> object);
christian.plesner.hansen@gmail.com2bc58ef2009-09-22 10:00:30 +0000308
309enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS };
310
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000311// Computes the enumerable keys for a JSObject. Used for implementing
312// "for (n in object) { }".
christian.plesner.hansen@gmail.com2bc58ef2009-09-22 10:00:30 +0000313Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSObject> object,
314 KeyCollectionType type);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000315Handle<JSArray> GetKeysFor(Handle<JSObject> object);
sgjesse@chromium.orgac6aa172009-12-04 12:29:05 +0000316Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object,
317 bool cache_result);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000318
319// Computes the union of keys and return the result.
320// Used for implementing "for (n in object) { }"
321Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first,
322 Handle<FixedArray> second);
323
ager@chromium.orgce5e87b2010-03-10 10:24:18 +0000324Handle<String> SubString(Handle<String> str,
325 int start,
326 int end,
327 PretenureFlag pretenure = NOT_TENURED);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000328
329
330// Sets the expected number of properties for the function's instances.
331void SetExpectedNofProperties(Handle<JSFunction> func, int nof);
332
333// Sets the prototype property for a function instance.
334void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value);
335
336// Sets the expected number of properties based on estimate from compiler.
337void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared,
338 int estimate);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000339
340
kasperl@chromium.org5a8ca6c2008-10-23 13:57:19 +0000341Handle<JSGlobalProxy> ReinitializeJSGlobalProxy(
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000342 Handle<JSFunction> constructor,
kasperl@chromium.org5a8ca6c2008-10-23 13:57:19 +0000343 Handle<JSGlobalProxy> global);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000344
345Handle<Object> SetPrototype(Handle<JSFunction> function,
346 Handle<Object> prototype);
347
sgjesse@chromium.orgea88ce92011-03-23 11:19:56 +0000348Handle<Object> PreventExtensions(Handle<JSObject> object);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000349
vegorov@chromium.org7943d462011-08-01 11:41:52 +0000350Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table,
351 Handle<JSObject> key,
352 Handle<Object> value);
353
ager@chromium.orgc4c92722009-11-18 14:12:51 +0000354// Does lazy compilation of the given function. Returns true on success and
355// false if the compilation resulted in a stack overflow.
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000356enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION };
ager@chromium.org3bf7b912008-11-17 09:09:45 +0000357
sgjesse@chromium.orgb302e562010-02-03 11:26:59 +0000358bool EnsureCompiled(Handle<SharedFunctionInfo> shared,
359 ClearExceptionFlag flag);
ager@chromium.org3bf7b912008-11-17 09:09:45 +0000360
sgjesse@chromium.orgb302e562010-02-03 11:26:59 +0000361bool CompileLazyShared(Handle<SharedFunctionInfo> shared,
362 ClearExceptionFlag flag);
363
kmillikin@chromium.orgf05f2912010-09-30 10:07:24 +0000364bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag);
sgjesse@chromium.orgb302e562010-02-03 11:26:59 +0000365
kmillikin@chromium.orgf05f2912010-09-30 10:07:24 +0000366bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag);
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000367
vegorov@chromium.org5d6c1f52011-02-28 13:13:38 +0000368bool CompileOptimized(Handle<JSFunction> function,
369 int osr_ast_id,
370 ClearExceptionFlag flag);
kasperl@chromium.orga5551262010-12-07 12:49:48 +0000371
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000372class NoHandleAllocation BASE_EMBEDDED {
373 public:
374#ifndef DEBUG
375 NoHandleAllocation() {}
376 ~NoHandleAllocation() {}
377#else
378 inline NoHandleAllocation();
379 inline ~NoHandleAllocation();
380 private:
lrn@chromium.org303ada72010-10-27 09:33:13 +0000381 int level_;
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000382#endif
383};
384
christian.plesner.hansen43d26ec2008-07-03 15:10:15 +0000385} } // namespace v8::internal
386
387#endif // V8_HANDLES_H_