| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, | 312 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, |
| 313 Handle<JSObject> object); | 313 Handle<JSObject> object); |
| 314 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, | 314 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, |
| 315 Handle<JSObject> object); | 315 Handle<JSObject> object); |
| 316 | 316 |
| 317 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; | 317 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; |
| 318 | 318 |
| 319 // Computes the enumerable keys for a JSObject. Used for implementing | 319 // Computes the enumerable keys for a JSObject. Used for implementing |
| 320 // "for (n in object) { }". | 320 // "for (n in object) { }". |
| 321 MUST_USE_RESULT MaybeHandle<FixedArray> GetKeysInFixedArrayFor( | 321 MUST_USE_RESULT MaybeHandle<FixedArray> GetKeysInFixedArrayFor( |
| 322 Handle<JSReceiver> object, | 322 Handle<JSReceiver> object, KeyCollectionType type); |
| 323 KeyCollectionType type); | |
| 324 MUST_USE_RESULT MaybeHandle<JSArray> GetKeysFor(Handle<JSReceiver> object); | |
| 325 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); | 323 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); |
| 326 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, | 324 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
| 327 bool cache_result); | 325 bool cache_result); |
| 328 | 326 |
| 329 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 327 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
| 330 Handle<JSFunction> constructor, | 328 Handle<JSFunction> constructor, |
| 331 Handle<JSGlobalProxy> global); | 329 Handle<JSGlobalProxy> global); |
| 332 | 330 |
| 333 void AddWeakObjectToCodeDependency(Heap* heap, | 331 void AddWeakObjectToCodeDependency(Heap* heap, |
| 334 Handle<Object> object, | 332 Handle<Object> object, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 358 | 356 |
| 359 void Initialize() { | 357 void Initialize() { |
| 360 next = limit = NULL; | 358 next = limit = NULL; |
| 361 level = 0; | 359 level = 0; |
| 362 } | 360 } |
| 363 }; | 361 }; |
| 364 | 362 |
| 365 } } // namespace v8::internal | 363 } } // namespace v8::internal |
| 366 | 364 |
| 367 #endif // V8_HANDLES_H_ | 365 #endif // V8_HANDLES_H_ |
| OLD | NEW |