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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 Handle<JSObject> object); | 269 Handle<JSObject> object); |
270 | 270 |
271 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; | 271 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; |
272 | 272 |
273 // Computes the enumerable keys for a JSObject. Used for implementing | 273 // Computes the enumerable keys for a JSObject. Used for implementing |
274 // "for (n in object) { }". | 274 // "for (n in object) { }". |
275 Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object, | 275 Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object, |
276 KeyCollectionType type, | 276 KeyCollectionType type, |
277 bool* threw); | 277 bool* threw); |
278 Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw); | 278 Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw); |
| 279 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); |
279 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, | 280 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
280 bool cache_result); | 281 bool cache_result); |
281 | 282 |
282 // Computes the union of keys and return the result. | 283 // Computes the union of keys and return the result. |
283 // Used for implementing "for (n in object) { }" | 284 // Used for implementing "for (n in object) { }" |
284 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, | 285 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, |
285 Handle<FixedArray> second); | 286 Handle<FixedArray> second); |
286 | 287 |
287 Handle<String> SubString(Handle<String> str, | 288 Handle<String> SubString(Handle<String> str, |
288 int start, | 289 int start, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 inline ~NoHandleAllocation(); | 328 inline ~NoHandleAllocation(); |
328 private: | 329 private: |
329 int level_; | 330 int level_; |
330 bool active_; | 331 bool active_; |
331 #endif | 332 #endif |
332 }; | 333 }; |
333 | 334 |
334 } } // namespace v8::internal | 335 } } // namespace v8::internal |
335 | 336 |
336 #endif // V8_HANDLES_H_ | 337 #endif // V8_HANDLES_H_ |
OLD | NEW |