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 Handle<String> SubString(Handle<String> str, | |
303 int start, | |
304 int end, | |
305 PretenureFlag pretenure = NOT_TENURED); | |
306 | |
307 // Sets the expected number of properties for the function's instances. | 302 // Sets the expected number of properties for the function's instances. |
308 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); | 303 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); |
309 | 304 |
310 // Sets the expected number of properties based on estimate from compiler. | 305 // Sets the expected number of properties based on estimate from compiler. |
311 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, | 306 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, |
312 int estimate); | 307 int estimate); |
313 | 308 |
314 | 309 |
315 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 310 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
316 Handle<JSFunction> constructor, | 311 Handle<JSFunction> constructor, |
(...skipping 23 matching lines...) Expand all Loading... |
340 private: | 335 private: |
341 Isolate* isolate_; | 336 Isolate* isolate_; |
342 Object** limit_; | 337 Object** limit_; |
343 int level_; | 338 int level_; |
344 #endif | 339 #endif |
345 }; | 340 }; |
346 | 341 |
347 } } // namespace v8::internal | 342 } } // namespace v8::internal |
348 | 343 |
349 #endif // V8_HANDLES_H_ | 344 #endif // V8_HANDLES_H_ |
OLD | NEW |