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