| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, KeyCollectionType type); | 322 Handle<JSReceiver> object, KeyCollectionType type); |
| 323 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); | 323 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); |
| 324 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, | 324 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
| 325 bool cache_result); | 325 bool cache_result); |
| 326 | 326 |
| 327 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | |
| 328 Handle<JSFunction> constructor, | |
| 329 Handle<JSGlobalProxy> global); | |
| 330 | |
| 331 void AddWeakObjectToCodeDependency(Heap* heap, | 327 void AddWeakObjectToCodeDependency(Heap* heap, |
| 332 Handle<Object> object, | 328 Handle<Object> object, |
| 333 Handle<Code> code); | 329 Handle<Code> code); |
| 334 | 330 |
| 335 // Seal off the current HandleScope so that new handles can only be created | 331 // Seal off the current HandleScope so that new handles can only be created |
| 336 // if a new HandleScope is entered. | 332 // if a new HandleScope is entered. |
| 337 class SealHandleScope BASE_EMBEDDED { | 333 class SealHandleScope BASE_EMBEDDED { |
| 338 public: | 334 public: |
| 339 #ifndef DEBUG | 335 #ifndef DEBUG |
| 340 explicit SealHandleScope(Isolate* isolate) {} | 336 explicit SealHandleScope(Isolate* isolate) {} |
| (...skipping 15 matching lines...) Expand all Loading... |
| 356 | 352 |
| 357 void Initialize() { | 353 void Initialize() { |
| 358 next = limit = NULL; | 354 next = limit = NULL; |
| 359 level = 0; | 355 level = 0; |
| 360 } | 356 } |
| 361 }; | 357 }; |
| 362 | 358 |
| 363 } } // namespace v8::internal | 359 } } // namespace v8::internal |
| 364 | 360 |
| 365 #endif // V8_HANDLES_H_ | 361 #endif // V8_HANDLES_H_ |
| OLD | NEW |