| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 void FlattenString(Handle<String> str); | 217 void FlattenString(Handle<String> str); |
| 218 | 218 |
| 219 // Flattens a string and returns the underlying external or sequential | 219 // Flattens a string and returns the underlying external or sequential |
| 220 // string. | 220 // string. |
| 221 Handle<String> FlattenGetString(Handle<String> str); | 221 Handle<String> FlattenGetString(Handle<String> str); |
| 222 | 222 |
| 223 Handle<Object> SetProperty(Handle<JSObject> object, | 223 Handle<Object> SetProperty(Handle<JSObject> object, |
| 224 Handle<String> key, | 224 Handle<String> key, |
| 225 Handle<Object> value, | 225 Handle<Object> value, |
| 226 PropertyAttributes attributes, | 226 PropertyAttributes attributes, |
| 227 StrictModeFlag strict); | 227 StrictModeFlag strict_mode); |
| 228 | 228 |
| 229 Handle<Object> SetProperty(Handle<Object> object, | 229 Handle<Object> SetProperty(Handle<Object> object, |
| 230 Handle<Object> key, | 230 Handle<Object> key, |
| 231 Handle<Object> value, | 231 Handle<Object> value, |
| 232 PropertyAttributes attributes, | 232 PropertyAttributes attributes, |
| 233 StrictModeFlag strict); | 233 StrictModeFlag strict_mode); |
| 234 | 234 |
| 235 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 235 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
| 236 Handle<Object> key, | 236 Handle<Object> key, |
| 237 Handle<Object> value, | 237 Handle<Object> value, |
| 238 PropertyAttributes attributes); | 238 PropertyAttributes attributes); |
| 239 | 239 |
| 240 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, | 240 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, |
| 241 Handle<String> key, | 241 Handle<String> key, |
| 242 Handle<Object> value, | 242 Handle<Object> value, |
| 243 PropertyDetails details); | 243 PropertyDetails details); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 255 // and which therefore has no accessors and alikes. | 255 // and which therefore has no accessors and alikes. |
| 256 void SetLocalPropertyNoThrow(Handle<JSObject> object, | 256 void SetLocalPropertyNoThrow(Handle<JSObject> object, |
| 257 Handle<String> key, | 257 Handle<String> key, |
| 258 Handle<Object> value, | 258 Handle<Object> value, |
| 259 PropertyAttributes attributes = NONE); | 259 PropertyAttributes attributes = NONE); |
| 260 | 260 |
| 261 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, | 261 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, |
| 262 Handle<String> key, | 262 Handle<String> key, |
| 263 Handle<Object> value, | 263 Handle<Object> value, |
| 264 PropertyAttributes attributes, | 264 PropertyAttributes attributes, |
| 265 StrictModeFlag strict); | 265 StrictModeFlag strict_mode); |
| 266 | 266 |
| 267 Handle<Object> SetElement(Handle<JSObject> object, | 267 Handle<Object> SetElement(Handle<JSObject> object, |
| 268 uint32_t index, | 268 uint32_t index, |
| 269 Handle<Object> value); | 269 Handle<Object> value); |
| 270 | 270 |
| 271 Handle<Object> SetOwnElement(Handle<JSObject> object, | 271 Handle<Object> SetOwnElement(Handle<JSObject> object, |
| 272 uint32_t index, | 272 uint32_t index, |
| 273 Handle<Object> value); | 273 Handle<Object> value); |
| 274 | 274 |
| 275 Handle<Object> GetProperty(Handle<JSObject> obj, | 275 Handle<Object> GetProperty(Handle<JSObject> obj, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 private: | 415 private: |
| 416 bool has_been_transformed_; // Tells whether the object has been transformed. | 416 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 417 int unused_property_fields_; // Captures the unused number of field. | 417 int unused_property_fields_; // Captures the unused number of field. |
| 418 Handle<JSObject> object_; // The object being optimized. | 418 Handle<JSObject> object_; // The object being optimized. |
| 419 }; | 419 }; |
| 420 | 420 |
| 421 | 421 |
| 422 } } // namespace v8::internal | 422 } } // namespace v8::internal |
| 423 | 423 |
| 424 #endif // V8_HANDLES_H_ | 424 #endif // V8_HANDLES_H_ |
| OLD | NEW |