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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, | 257 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, |
258 Handle<JSObject> holder, | 258 Handle<JSObject> holder, |
259 Handle<String> name, | 259 Handle<String> name, |
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 create_if_needed is true, then a new hidden property object | 267 // properties and HiddenPropertiesFlag::ALLOW_CREATION is passed, then a new |
268 // will be allocated. Otherwise the Heap::undefined_value is returned. | 268 // hidden property object will be allocated. Otherwise Heap::undefined_value |
269 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, bool create_if_needed); | 269 // is returned. |
| 270 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, |
| 271 JSObject::HiddenPropertiesFlag flag); |
| 272 |
| 273 int GetIdentityHash(Handle<JSObject> obj); |
270 | 274 |
271 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); | 275 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); |
272 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); | 276 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); |
273 | 277 |
274 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); | 278 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); |
275 | 279 |
276 Handle<JSObject> Copy(Handle<JSObject> obj); | 280 Handle<JSObject> Copy(Handle<JSObject> obj); |
277 | 281 |
278 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); | 282 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); |
279 | 283 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 | 340 |
337 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 341 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
338 Handle<JSFunction> constructor, | 342 Handle<JSFunction> constructor, |
339 Handle<JSGlobalProxy> global); | 343 Handle<JSGlobalProxy> global); |
340 | 344 |
341 Handle<Object> SetPrototype(Handle<JSFunction> function, | 345 Handle<Object> SetPrototype(Handle<JSFunction> function, |
342 Handle<Object> prototype); | 346 Handle<Object> prototype); |
343 | 347 |
344 Handle<Object> PreventExtensions(Handle<JSObject> object); | 348 Handle<Object> PreventExtensions(Handle<JSObject> object); |
345 | 349 |
| 350 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, |
| 351 Handle<JSObject> key, |
| 352 Handle<Object> value); |
| 353 |
346 // Does lazy compilation of the given function. Returns true on success and | 354 // Does lazy compilation of the given function. Returns true on success and |
347 // false if the compilation resulted in a stack overflow. | 355 // false if the compilation resulted in a stack overflow. |
348 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; | 356 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; |
349 | 357 |
350 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, | 358 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, |
351 ClearExceptionFlag flag); | 359 ClearExceptionFlag flag); |
352 | 360 |
353 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, | 361 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, |
354 ClearExceptionFlag flag); | 362 ClearExceptionFlag flag); |
355 | 363 |
(...skipping 14 matching lines...) Expand all Loading... |
370 inline NoHandleAllocation(); | 378 inline NoHandleAllocation(); |
371 inline ~NoHandleAllocation(); | 379 inline ~NoHandleAllocation(); |
372 private: | 380 private: |
373 int level_; | 381 int level_; |
374 #endif | 382 #endif |
375 }; | 383 }; |
376 | 384 |
377 } } // namespace v8::internal | 385 } } // namespace v8::internal |
378 | 386 |
379 #endif // V8_HANDLES_H_ | 387 #endif // V8_HANDLES_H_ |
OLD | NEW |