| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 *prototype, | 236 *prototype, |
| 237 NULL), | 237 NULL), |
| 238 Object); | 238 Object); |
| 239 } | 239 } |
| 240 | 240 |
| 241 | 241 |
| 242 Handle<Object> SetProperty(Handle<JSObject> object, | 242 Handle<Object> SetProperty(Handle<JSObject> object, |
| 243 Handle<String> key, | 243 Handle<String> key, |
| 244 Handle<Object> value, | 244 Handle<Object> value, |
| 245 PropertyAttributes attributes, | 245 PropertyAttributes attributes, |
| 246 StrictModeFlag strict) { | 246 StrictModeFlag strict_mode) { |
| 247 CALL_HEAP_FUNCTION(object->SetProperty(*key, *value, attributes, strict), | 247 CALL_HEAP_FUNCTION(object->SetProperty(*key, *value, attributes, strict_mode), |
| 248 Object); | 248 Object); |
| 249 } | 249 } |
| 250 | 250 |
| 251 | 251 |
| 252 Handle<Object> SetProperty(Handle<Object> object, | 252 Handle<Object> SetProperty(Handle<Object> object, |
| 253 Handle<Object> key, | 253 Handle<Object> key, |
| 254 Handle<Object> value, | 254 Handle<Object> value, |
| 255 PropertyAttributes attributes, | 255 PropertyAttributes attributes, |
| 256 StrictModeFlag strict) { | 256 StrictModeFlag strict_mode) { |
| 257 CALL_HEAP_FUNCTION( | 257 CALL_HEAP_FUNCTION( |
| 258 Runtime::SetObjectProperty(object, key, value, attributes, strict), | 258 Runtime::SetObjectProperty(object, key, value, attributes, strict_mode), |
| 259 Object); | 259 Object); |
| 260 } | 260 } |
| 261 | 261 |
| 262 | 262 |
| 263 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 263 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
| 264 Handle<Object> key, | 264 Handle<Object> key, |
| 265 Handle<Object> value, | 265 Handle<Object> value, |
| 266 PropertyAttributes attributes) { | 266 PropertyAttributes attributes) { |
| 267 CALL_HEAP_FUNCTION( | 267 CALL_HEAP_FUNCTION( |
| 268 Runtime::ForceSetObjectProperty(object, key, value, attributes), Object); | 268 Runtime::ForceSetObjectProperty(object, key, value, attributes), Object); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 CHECK(!SetLocalPropertyIgnoreAttributes( | 302 CHECK(!SetLocalPropertyIgnoreAttributes( |
| 303 object, key, value, attributes).is_null()); | 303 object, key, value, attributes).is_null()); |
| 304 CHECK(!Top::has_pending_exception()); | 304 CHECK(!Top::has_pending_exception()); |
| 305 } | 305 } |
| 306 | 306 |
| 307 | 307 |
| 308 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, | 308 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, |
| 309 Handle<String> key, | 309 Handle<String> key, |
| 310 Handle<Object> value, | 310 Handle<Object> value, |
| 311 PropertyAttributes attributes, | 311 PropertyAttributes attributes, |
| 312 StrictModeFlag strict) { | 312 StrictModeFlag strict_mode) { |
| 313 CALL_HEAP_FUNCTION(object->SetPropertyWithInterceptor(*key, | 313 CALL_HEAP_FUNCTION(object->SetPropertyWithInterceptor(*key, |
| 314 *value, | 314 *value, |
| 315 attributes, | 315 attributes, |
| 316 strict), | 316 strict_mode), |
| 317 Object); | 317 Object); |
| 318 } | 318 } |
| 319 | 319 |
| 320 | 320 |
| 321 Handle<Object> GetProperty(Handle<JSObject> obj, | 321 Handle<Object> GetProperty(Handle<JSObject> obj, |
| 322 const char* name) { | 322 const char* name) { |
| 323 Handle<String> str = Factory::LookupAsciiSymbol(name); | 323 Handle<String> str = Factory::LookupAsciiSymbol(name); |
| 324 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); | 324 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); |
| 325 } | 325 } |
| 326 | 326 |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 | 901 |
| 902 OptimizedObjectForAddingMultipleProperties:: | 902 OptimizedObjectForAddingMultipleProperties:: |
| 903 ~OptimizedObjectForAddingMultipleProperties() { | 903 ~OptimizedObjectForAddingMultipleProperties() { |
| 904 // Reoptimize the object to allow fast property access. | 904 // Reoptimize the object to allow fast property access. |
| 905 if (has_been_transformed_) { | 905 if (has_been_transformed_) { |
| 906 TransformToFastProperties(object_, unused_property_fields_); | 906 TransformToFastProperties(object_, unused_property_fields_); |
| 907 } | 907 } |
| 908 } | 908 } |
| 909 | 909 |
| 910 } } // namespace v8::internal | 910 } } // namespace v8::internal |
| OLD | NEW |