OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // will be allocated. Otherwise the Heap::undefined_value is returned. | 255 // will be allocated. Otherwise the Heap::undefined_value is returned. |
256 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, bool create_if_needed); | 256 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, bool create_if_needed); |
257 | 257 |
258 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); | 258 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); |
259 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); | 259 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); |
260 | 260 |
261 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); | 261 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); |
262 | 262 |
263 Handle<JSObject> Copy(Handle<JSObject> obj); | 263 Handle<JSObject> Copy(Handle<JSObject> obj); |
264 | 264 |
| 265 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); |
| 266 |
265 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, | 267 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, |
266 Handle<JSArray> array); | 268 Handle<JSArray> array); |
267 | 269 |
268 // Get the JS object corresponding to the given script; create it | 270 // Get the JS object corresponding to the given script; create it |
269 // if none exists. | 271 // if none exists. |
270 Handle<JSValue> GetScriptWrapper(Handle<Script> script); | 272 Handle<JSValue> GetScriptWrapper(Handle<Script> script); |
271 | 273 |
272 // Script line number computations. | 274 // Script line number computations. |
273 void InitScriptLineEnds(Handle<Script> script); | 275 void InitScriptLineEnds(Handle<Script> script); |
274 // For string calculates an array of line end positions. If the string | 276 // For string calculates an array of line end positions. If the string |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 private: | 378 private: |
377 bool has_been_transformed_; // Tells whether the object has been transformed. | 379 bool has_been_transformed_; // Tells whether the object has been transformed. |
378 int unused_property_fields_; // Captures the unused number of field. | 380 int unused_property_fields_; // Captures the unused number of field. |
379 Handle<JSObject> object_; // The object being optimized. | 381 Handle<JSObject> object_; // The object being optimized. |
380 }; | 382 }; |
381 | 383 |
382 | 384 |
383 } } // namespace v8::internal | 385 } } // namespace v8::internal |
384 | 386 |
385 #endif // V8_HANDLES_H_ | 387 #endif // V8_HANDLES_H_ |
OLD | NEW |