OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 PropertyAttributes* attributes); | 260 PropertyAttributes* attributes); |
261 | 261 |
262 Handle<Object> GetPrototype(Handle<Object> obj); | 262 Handle<Object> GetPrototype(Handle<Object> obj); |
263 | 263 |
264 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); | 264 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); |
265 | 265 |
266 // Return the object's hidden properties object. If the object has no hidden | 266 // Return the object's hidden properties object. If the object has no hidden |
267 // properties and HiddenPropertiesFlag::ALLOW_CREATION is passed, then a new | 267 // properties and HiddenPropertiesFlag::ALLOW_CREATION is passed, then a new |
268 // hidden property object will be allocated. Otherwise Heap::undefined_value | 268 // hidden property object will be allocated. Otherwise Heap::undefined_value |
269 // is returned. | 269 // is returned. |
270 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, | 270 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, CreationFlag flag); |
271 JSObject::HiddenPropertiesFlag flag); | |
272 | 271 |
273 int GetIdentityHash(Handle<JSObject> obj); | 272 int GetIdentityHash(Handle<JSReceiver> obj); |
274 | 273 |
275 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); | 274 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); |
276 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); | 275 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); |
277 | 276 |
278 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); | 277 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); |
279 | 278 |
280 Handle<JSObject> Copy(Handle<JSObject> obj); | 279 Handle<JSObject> Copy(Handle<JSObject> obj); |
281 | 280 |
282 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); | 281 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); |
283 | 282 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 340 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
342 Handle<JSFunction> constructor, | 341 Handle<JSFunction> constructor, |
343 Handle<JSGlobalProxy> global); | 342 Handle<JSGlobalProxy> global); |
344 | 343 |
345 Handle<Object> SetPrototype(Handle<JSFunction> function, | 344 Handle<Object> SetPrototype(Handle<JSFunction> function, |
346 Handle<Object> prototype); | 345 Handle<Object> prototype); |
347 | 346 |
348 Handle<Object> PreventExtensions(Handle<JSObject> object); | 347 Handle<Object> PreventExtensions(Handle<JSObject> object); |
349 | 348 |
350 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, | 349 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, |
351 Handle<JSObject> key, | 350 Handle<JSReceiver> key, |
352 Handle<Object> value); | 351 Handle<Object> value); |
353 | 352 |
354 // Does lazy compilation of the given function. Returns true on success and | 353 // Does lazy compilation of the given function. Returns true on success and |
355 // false if the compilation resulted in a stack overflow. | 354 // false if the compilation resulted in a stack overflow. |
356 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; | 355 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; |
357 | 356 |
358 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, | 357 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, |
359 ClearExceptionFlag flag); | 358 ClearExceptionFlag flag); |
360 | 359 |
361 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, | 360 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, |
(...skipping 16 matching lines...) Expand all Loading... |
378 inline NoHandleAllocation(); | 377 inline NoHandleAllocation(); |
379 inline ~NoHandleAllocation(); | 378 inline ~NoHandleAllocation(); |
380 private: | 379 private: |
381 int level_; | 380 int level_; |
382 #endif | 381 #endif |
383 }; | 382 }; |
384 | 383 |
385 } } // namespace v8::internal | 384 } } // namespace v8::internal |
386 | 385 |
387 #endif // V8_HANDLES_H_ | 386 #endif // V8_HANDLES_H_ |
OLD | NEW |