| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 Handle<Object> value, | 250 Handle<Object> value, |
| 251 PropertyAttributes attributes) { | 251 PropertyAttributes attributes) { |
| 252 CALL_HEAP_FUNCTION(object->SetProperty(*key, *value, attributes), Object); | 252 CALL_HEAP_FUNCTION(object->SetProperty(*key, *value, attributes), Object); |
| 253 } | 253 } |
| 254 | 254 |
| 255 | 255 |
| 256 Handle<Object> SetProperty(Handle<Object> object, | 256 Handle<Object> SetProperty(Handle<Object> object, |
| 257 Handle<Object> key, | 257 Handle<Object> key, |
| 258 Handle<Object> value, | 258 Handle<Object> value, |
| 259 PropertyAttributes attributes) { | 259 PropertyAttributes attributes) { |
| 260 Heap* heap = HEAP; | 260 Isolate* isolate = Isolate::Current(); |
| 261 CALL_HEAP_FUNCTION( | 261 CALL_HEAP_FUNCTION( |
| 262 Runtime::SetObjectProperty(heap, object, key, value, attributes), Object); | 262 Runtime::SetObjectProperty(isolate, object, key, value, attributes), |
| 263 Object); |
| 263 } | 264 } |
| 264 | 265 |
| 265 | 266 |
| 266 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 267 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
| 267 Handle<Object> key, | 268 Handle<Object> key, |
| 268 Handle<Object> value, | 269 Handle<Object> value, |
| 269 PropertyAttributes attributes) { | 270 PropertyAttributes attributes) { |
| 271 Isolate* isolate = object->GetIsolate(); |
| 270 CALL_HEAP_FUNCTION( | 272 CALL_HEAP_FUNCTION( |
| 271 Runtime::ForceSetObjectProperty(object, key, value, attributes), Object); | 273 Runtime::ForceSetObjectProperty(isolate, object, key, value, attributes), |
| 274 Object); |
| 272 } | 275 } |
| 273 | 276 |
| 274 | 277 |
| 275 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, | 278 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, |
| 276 Handle<String> key, | 279 Handle<String> key, |
| 277 Handle<Object> value, | 280 Handle<Object> value, |
| 278 PropertyDetails details) { | 281 PropertyDetails details) { |
| 279 CALL_HEAP_FUNCTION(object->SetNormalizedProperty(*key, *value, details), | 282 CALL_HEAP_FUNCTION(object->SetNormalizedProperty(*key, *value, details), |
| 280 Object); | 283 Object); |
| 281 } | 284 } |
| 282 | 285 |
| 283 | 286 |
| 284 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, | 287 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, |
| 285 Handle<Object> key) { | 288 Handle<Object> key) { |
| 286 Heap* heap = HEAP; | 289 Isolate* isolate = object->GetIsolate(); |
| 287 CALL_HEAP_FUNCTION(Runtime::ForceDeleteObjectProperty(heap, object, key), | 290 CALL_HEAP_FUNCTION(Runtime::ForceDeleteObjectProperty(isolate, object, key), |
| 288 Object); | 291 Object); |
| 289 } | 292 } |
| 290 | 293 |
| 291 | 294 |
| 292 Handle<Object> IgnoreAttributesAndSetLocalProperty( | 295 Handle<Object> IgnoreAttributesAndSetLocalProperty( |
| 293 Handle<JSObject> object, | 296 Handle<JSObject> object, |
| 294 Handle<String> key, | 297 Handle<String> key, |
| 295 Handle<Object> value, | 298 Handle<Object> value, |
| 296 PropertyAttributes attributes) { | 299 PropertyAttributes attributes) { |
| 297 CALL_HEAP_FUNCTION(object-> | 300 CALL_HEAP_FUNCTION(object-> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 312 | 315 |
| 313 Handle<Object> GetProperty(Handle<JSObject> obj, | 316 Handle<Object> GetProperty(Handle<JSObject> obj, |
| 314 const char* name) { | 317 const char* name) { |
| 315 Handle<String> str = Factory::LookupAsciiSymbol(name); | 318 Handle<String> str = Factory::LookupAsciiSymbol(name); |
| 316 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); | 319 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); |
| 317 } | 320 } |
| 318 | 321 |
| 319 | 322 |
| 320 Handle<Object> GetProperty(Handle<Object> obj, | 323 Handle<Object> GetProperty(Handle<Object> obj, |
| 321 Handle<Object> key) { | 324 Handle<Object> key) { |
| 322 Heap* heap = HEAP; | 325 Isolate* isolate = Isolate::Current(); |
| 323 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(heap, obj, key), Object); | 326 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(isolate, obj, key), Object); |
| 324 } | 327 } |
| 325 | 328 |
| 326 | 329 |
| 327 Handle<Object> GetElement(Handle<Object> obj, | 330 Handle<Object> GetElement(Handle<Object> obj, |
| 328 uint32_t index) { | 331 uint32_t index) { |
| 329 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object); | 332 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object); |
| 330 } | 333 } |
| 331 | 334 |
| 332 | 335 |
| 333 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, | 336 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 | 863 |
| 861 OptimizedObjectForAddingMultipleProperties:: | 864 OptimizedObjectForAddingMultipleProperties:: |
| 862 ~OptimizedObjectForAddingMultipleProperties() { | 865 ~OptimizedObjectForAddingMultipleProperties() { |
| 863 // Reoptimize the object to allow fast property access. | 866 // Reoptimize the object to allow fast property access. |
| 864 if (has_been_transformed_) { | 867 if (has_been_transformed_) { |
| 865 TransformToFastProperties(object_, unused_property_fields_); | 868 TransformToFastProperties(object_, unused_property_fields_); |
| 866 } | 869 } |
| 867 } | 870 } |
| 868 | 871 |
| 869 } } // namespace v8::internal | 872 } } // namespace v8::internal |
| OLD | NEW |