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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw); | 292 Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw); |
293 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); | 293 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); |
294 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, | 294 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
295 bool cache_result); | 295 bool cache_result); |
296 | 296 |
297 // Computes the union of keys and return the result. | 297 // Computes the union of keys and return the result. |
298 // Used for implementing "for (n in object) { }" | 298 // Used for implementing "for (n in object) { }" |
299 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, | 299 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, |
300 Handle<FixedArray> second); | 300 Handle<FixedArray> second); |
301 | 301 |
302 // Sets the expected number of properties for the function's instances. | |
303 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); | |
304 | |
305 // Sets the expected number of properties based on estimate from compiler. | |
306 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, | |
307 int estimate); | |
308 | |
309 | |
310 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 302 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
311 Handle<JSFunction> constructor, | 303 Handle<JSFunction> constructor, |
312 Handle<JSGlobalProxy> global); | 304 Handle<JSGlobalProxy> global); |
313 | 305 |
314 Handle<ObjectHashSet> ObjectHashSetAdd(Handle<ObjectHashSet> table, | 306 Handle<ObjectHashSet> ObjectHashSetAdd(Handle<ObjectHashSet> table, |
315 Handle<Object> key); | 307 Handle<Object> key); |
316 | 308 |
317 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, | 309 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, |
318 Handle<Object> key); | 310 Handle<Object> key); |
319 | 311 |
(...skipping 18 matching lines...) Expand all Loading... |
338 private: | 330 private: |
339 Isolate* isolate_; | 331 Isolate* isolate_; |
340 Object** limit_; | 332 Object** limit_; |
341 int level_; | 333 int level_; |
342 #endif | 334 #endif |
343 }; | 335 }; |
344 | 336 |
345 } } // namespace v8::internal | 337 } } // namespace v8::internal |
346 | 338 |
347 #endif // V8_HANDLES_H_ | 339 #endif // V8_HANDLES_H_ |
OLD | NEW |