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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // Flattens a string. | 239 // Flattens a string. |
240 void FlattenString(Handle<String> str); | 240 void FlattenString(Handle<String> str); |
241 | 241 |
242 // Flattens a string and returns the underlying external or sequential | 242 // Flattens a string and returns the underlying external or sequential |
243 // string. | 243 // string. |
244 Handle<String> FlattenGetString(Handle<String> str); | 244 Handle<String> FlattenGetString(Handle<String> str); |
245 | 245 |
246 Handle<Object> SetProperty(Handle<JSObject> object, | 246 Handle<Object> SetProperty(Handle<JSObject> object, |
247 Handle<String> key, | 247 Handle<String> key, |
248 Handle<Object> value, | 248 Handle<Object> value, |
249 PropertyAttributes attributes); | 249 PropertyAttributes attributes, |
| 250 StrictModeFlag strict); |
250 | 251 |
251 Handle<Object> SetProperty(Handle<Object> object, | 252 Handle<Object> SetProperty(Handle<Object> object, |
252 Handle<Object> key, | 253 Handle<Object> key, |
253 Handle<Object> value, | 254 Handle<Object> value, |
254 PropertyAttributes attributes); | 255 PropertyAttributes attributes, |
| 256 StrictModeFlag strict); |
255 | 257 |
256 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 258 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
257 Handle<Object> key, | 259 Handle<Object> key, |
258 Handle<Object> value, | 260 Handle<Object> value, |
259 PropertyAttributes attributes); | 261 PropertyAttributes attributes); |
260 | 262 |
261 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, | 263 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, |
262 Handle<String> key, | 264 Handle<String> key, |
263 Handle<Object> value, | 265 Handle<Object> value, |
264 PropertyDetails details); | 266 PropertyDetails details); |
(...skipping 10 matching lines...) Expand all Loading... |
275 // Used to set local properties on the object we totally control | 277 // Used to set local properties on the object we totally control |
276 // and which therefore has no accessors and alikes. | 278 // and which therefore has no accessors and alikes. |
277 void SetLocalPropertyNoThrow(Handle<JSObject> object, | 279 void SetLocalPropertyNoThrow(Handle<JSObject> object, |
278 Handle<String> key, | 280 Handle<String> key, |
279 Handle<Object> value, | 281 Handle<Object> value, |
280 PropertyAttributes attributes = NONE); | 282 PropertyAttributes attributes = NONE); |
281 | 283 |
282 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, | 284 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, |
283 Handle<String> key, | 285 Handle<String> key, |
284 Handle<Object> value, | 286 Handle<Object> value, |
285 PropertyAttributes attributes); | 287 PropertyAttributes attributes, |
| 288 StrictModeFlag strict); |
286 | 289 |
287 Handle<Object> SetElement(Handle<JSObject> object, | 290 Handle<Object> SetElement(Handle<JSObject> object, |
288 uint32_t index, | 291 uint32_t index, |
289 Handle<Object> value); | 292 Handle<Object> value); |
290 | 293 |
291 Handle<Object> SetOwnElement(Handle<JSObject> object, | 294 Handle<Object> SetOwnElement(Handle<JSObject> object, |
292 uint32_t index, | 295 uint32_t index, |
293 Handle<Object> value); | 296 Handle<Object> value); |
294 | 297 |
295 Handle<Object> GetProperty(Handle<JSObject> obj, | 298 Handle<Object> GetProperty(Handle<JSObject> obj, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 private: | 438 private: |
436 bool has_been_transformed_; // Tells whether the object has been transformed. | 439 bool has_been_transformed_; // Tells whether the object has been transformed. |
437 int unused_property_fields_; // Captures the unused number of field. | 440 int unused_property_fields_; // Captures the unused number of field. |
438 Handle<JSObject> object_; // The object being optimized. | 441 Handle<JSObject> object_; // The object being optimized. |
439 }; | 442 }; |
440 | 443 |
441 | 444 |
442 } } // namespace v8::internal | 445 } } // namespace v8::internal |
443 | 446 |
444 #endif // V8_HANDLES_H_ | 447 #endif // V8_HANDLES_H_ |
OLD | NEW |