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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); | 276 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); |
277 } | 277 } |
278 | 278 |
279 | 279 |
280 Handle<Object> GetProperty(Handle<Object> obj, | 280 Handle<Object> GetProperty(Handle<Object> obj, |
281 Handle<Object> key) { | 281 Handle<Object> key) { |
282 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object); | 282 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object); |
283 } | 283 } |
284 | 284 |
285 | 285 |
| 286 Handle<Object> GetElement(Handle<Object> obj, |
| 287 uint32_t index) { |
| 288 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object); |
| 289 } |
| 290 |
| 291 |
286 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, | 292 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, |
287 Handle<JSObject> holder, | 293 Handle<JSObject> holder, |
288 Handle<String> name, | 294 Handle<String> name, |
289 PropertyAttributes* attributes) { | 295 PropertyAttributes* attributes) { |
290 CALL_HEAP_FUNCTION(holder->GetPropertyWithInterceptor(*receiver, | 296 CALL_HEAP_FUNCTION(holder->GetPropertyWithInterceptor(*receiver, |
291 *name, | 297 *name, |
292 attributes), | 298 attributes), |
293 Object); | 299 Object); |
294 } | 300 } |
295 | 301 |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); | 838 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); |
833 obj->set_map(*new_map); | 839 obj->set_map(*new_map); |
834 new_map->set_needs_loading(true); | 840 new_map->set_needs_loading(true); |
835 // Store the lazy loading info in the constructor field. We'll | 841 // Store the lazy loading info in the constructor field. We'll |
836 // reestablish the constructor from the fixed array after loading. | 842 // reestablish the constructor from the fixed array after loading. |
837 new_map->set_constructor(*arr); | 843 new_map->set_constructor(*arr); |
838 ASSERT(!obj->IsLoaded()); | 844 ASSERT(!obj->IsLoaded()); |
839 } | 845 } |
840 | 846 |
841 } } // namespace v8::internal | 847 } } // namespace v8::internal |
OLD | NEW |