| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); | 326 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); |
| 327 } | 327 } |
| 328 | 328 |
| 329 | 329 |
| 330 Handle<Object> GetProperty(Handle<Object> obj, | 330 Handle<Object> GetProperty(Handle<Object> obj, |
| 331 Handle<Object> key) { | 331 Handle<Object> key) { |
| 332 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object); | 332 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object); |
| 333 } | 333 } |
| 334 | 334 |
| 335 | 335 |
| 336 Handle<Object> GetProperty(Handle<JSObject> obj, |
| 337 Handle<String> name, |
| 338 LookupResult* result) { |
| 339 PropertyAttributes attributes; |
| 340 CALL_HEAP_FUNCTION(obj->GetProperty(*obj, result, *name, &attributes), |
| 341 Object); |
| 342 } |
| 343 |
| 344 |
| 336 Handle<Object> GetElement(Handle<Object> obj, | 345 Handle<Object> GetElement(Handle<Object> obj, |
| 337 uint32_t index) { | 346 uint32_t index) { |
| 338 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object); | 347 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object); |
| 339 } | 348 } |
| 340 | 349 |
| 341 | 350 |
| 342 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, | 351 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, |
| 343 Handle<JSObject> holder, | 352 Handle<JSObject> holder, |
| 344 Handle<String> name, | 353 Handle<String> name, |
| 345 PropertyAttributes* attributes) { | 354 PropertyAttributes* attributes) { |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 | 919 |
| 911 OptimizedObjectForAddingMultipleProperties:: | 920 OptimizedObjectForAddingMultipleProperties:: |
| 912 ~OptimizedObjectForAddingMultipleProperties() { | 921 ~OptimizedObjectForAddingMultipleProperties() { |
| 913 // Reoptimize the object to allow fast property access. | 922 // Reoptimize the object to allow fast property access. |
| 914 if (has_been_transformed_) { | 923 if (has_been_transformed_) { |
| 915 TransformToFastProperties(object_, unused_property_fields_); | 924 TransformToFastProperties(object_, unused_property_fields_); |
| 916 } | 925 } |
| 917 } | 926 } |
| 918 | 927 |
| 919 } } // namespace v8::internal | 928 } } // namespace v8::internal |
| OLD | NEW |