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); | |
280 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, | 279 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
281 bool cache_result); | 280 bool cache_result); |
282 | 281 |
283 // Computes the union of keys and return the result. | 282 // Computes the union of keys and return the result. |
284 // Used for implementing "for (n in object) { }" | 283 // Used for implementing "for (n in object) { }" |
285 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, | 284 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, |
286 Handle<FixedArray> second); | 285 Handle<FixedArray> second); |
287 | 286 |
288 Handle<String> SubString(Handle<String> str, | 287 Handle<String> SubString(Handle<String> str, |
289 int start, | 288 int start, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 inline ~NoHandleAllocation(); | 327 inline ~NoHandleAllocation(); |
329 private: | 328 private: |
330 int level_; | 329 int level_; |
331 bool active_; | 330 bool active_; |
332 #endif | 331 #endif |
333 }; | 332 }; |
334 | 333 |
335 } } // namespace v8::internal | 334 } } // namespace v8::internal |
336 | 335 |
337 #endif // V8_HANDLES_H_ | 336 #endif // V8_HANDLES_H_ |
OLD | NEW |