| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); | 307 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); |
| 308 } | 308 } |
| 309 | 309 |
| 310 | 310 |
| 311 Handle<Object> GetProperty(Handle<Object> obj, | 311 Handle<Object> GetProperty(Handle<Object> obj, |
| 312 Handle<Object> key) { | 312 Handle<Object> key) { |
| 313 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object); | 313 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object); |
| 314 } | 314 } |
| 315 | 315 |
| 316 | 316 |
| 317 Handle<Object> GetProperty(Handle<JSObject> obj, |
| 318 Handle<String> name, |
| 319 LookupResult* result) { |
| 320 PropertyAttributes attributes; |
| 321 CALL_HEAP_FUNCTION(obj->GetProperty(*obj, result, *name, &attributes), |
| 322 Object); |
| 323 } |
| 324 |
| 325 |
| 317 Handle<Object> GetElement(Handle<Object> obj, | 326 Handle<Object> GetElement(Handle<Object> obj, |
| 318 uint32_t index) { | 327 uint32_t index) { |
| 319 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object); | 328 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object); |
| 320 } | 329 } |
| 321 | 330 |
| 322 | 331 |
| 323 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, | 332 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, |
| 324 Handle<JSObject> holder, | 333 Handle<JSObject> holder, |
| 325 Handle<String> name, | 334 Handle<String> name, |
| 326 PropertyAttributes* attributes) { | 335 PropertyAttributes* attributes) { |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 | 900 |
| 892 OptimizedObjectForAddingMultipleProperties:: | 901 OptimizedObjectForAddingMultipleProperties:: |
| 893 ~OptimizedObjectForAddingMultipleProperties() { | 902 ~OptimizedObjectForAddingMultipleProperties() { |
| 894 // Reoptimize the object to allow fast property access. | 903 // Reoptimize the object to allow fast property access. |
| 895 if (has_been_transformed_) { | 904 if (has_been_transformed_) { |
| 896 TransformToFastProperties(object_, unused_property_fields_); | 905 TransformToFastProperties(object_, unused_property_fields_); |
| 897 } | 906 } |
| 898 } | 907 } |
| 899 | 908 |
| 900 } } // namespace v8::internal | 909 } } // namespace v8::internal |
| OLD | NEW |