| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 298 |
| 299 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, Handle<Object> key); | 299 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, Handle<Object> key); |
| 300 | 300 |
| 301 Handle<Object> HasProperty(Handle<JSReceiver> obj, Handle<Object> key); | 301 Handle<Object> HasProperty(Handle<JSReceiver> obj, Handle<Object> key); |
| 302 | 302 |
| 303 Handle<Object> GetProperty(Handle<JSReceiver> obj, const char* name); | 303 Handle<Object> GetProperty(Handle<JSReceiver> obj, const char* name); |
| 304 | 304 |
| 305 Handle<String> LookupSingleCharacterStringFromCode(Isolate* isolate, | 305 Handle<String> LookupSingleCharacterStringFromCode(Isolate* isolate, |
| 306 uint32_t index); | 306 uint32_t index); |
| 307 | 307 |
| 308 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, | |
| 309 Handle<JSArray> array); | |
| 310 | |
| 311 // Get the JS object corresponding to the given script; create it | 308 // Get the JS object corresponding to the given script; create it |
| 312 // if none exists. | 309 // if none exists. |
| 313 Handle<JSValue> GetScriptWrapper(Handle<Script> script); | 310 Handle<JSValue> GetScriptWrapper(Handle<Script> script); |
| 314 | 311 |
| 315 // Script line number computations. Note that the line number is zero-based. | 312 // Script line number computations. Note that the line number is zero-based. |
| 316 void InitScriptLineEnds(Handle<Script> script); | 313 void InitScriptLineEnds(Handle<Script> script); |
| 317 // For string calculates an array of line end positions. If the string | 314 // For string calculates an array of line end positions. If the string |
| 318 // does not end with a new line character, this character may optionally be | 315 // does not end with a new line character, this character may optionally be |
| 319 // imagined. | 316 // imagined. |
| 320 Handle<FixedArray> CalculateLineEnds(Handle<String> string, | 317 Handle<FixedArray> CalculateLineEnds(Handle<String> string, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 337 // Computes the enumerable keys for a JSObject. Used for implementing | 334 // Computes the enumerable keys for a JSObject. Used for implementing |
| 338 // "for (n in object) { }". | 335 // "for (n in object) { }". |
| 339 Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object, | 336 Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object, |
| 340 KeyCollectionType type, | 337 KeyCollectionType type, |
| 341 bool* threw); | 338 bool* threw); |
| 342 Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw); | 339 Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw); |
| 343 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); | 340 Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); |
| 344 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, | 341 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
| 345 bool cache_result); | 342 bool cache_result); |
| 346 | 343 |
| 347 // Computes the union of keys and return the result. | |
| 348 // Used for implementing "for (n in object) { }" | |
| 349 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, | |
| 350 Handle<FixedArray> second); | |
| 351 | |
| 352 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 344 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
| 353 Handle<JSFunction> constructor, | 345 Handle<JSFunction> constructor, |
| 354 Handle<JSGlobalProxy> global); | 346 Handle<JSGlobalProxy> global); |
| 355 | 347 |
| 356 void AddWeakObjectToCodeDependency(Heap* heap, | 348 void AddWeakObjectToCodeDependency(Heap* heap, |
| 357 Handle<Object> object, | 349 Handle<Object> object, |
| 358 Handle<Code> code); | 350 Handle<Code> code); |
| 359 | 351 |
| 360 // Seal off the current HandleScope so that new handles can only be created | 352 // Seal off the current HandleScope so that new handles can only be created |
| 361 // if a new HandleScope is entered. | 353 // if a new HandleScope is entered. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 381 | 373 |
| 382 void Initialize() { | 374 void Initialize() { |
| 383 next = limit = NULL; | 375 next = limit = NULL; |
| 384 level = 0; | 376 level = 0; |
| 385 } | 377 } |
| 386 }; | 378 }; |
| 387 | 379 |
| 388 } } // namespace v8::internal | 380 } } // namespace v8::internal |
| 389 | 381 |
| 390 #endif // V8_HANDLES_H_ | 382 #endif // V8_HANDLES_H_ |
| OLD | NEW |