| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 if (!obj->indexed_property_handler()->IsUndefined()) { | 720 if (!obj->indexed_property_handler()->IsUndefined()) { |
| 721 map->set_has_indexed_interceptor(); | 721 map->set_has_indexed_interceptor(); |
| 722 } | 722 } |
| 723 | 723 |
| 724 // Set instance call-as-function information in the map. | 724 // Set instance call-as-function information in the map. |
| 725 if (!obj->instance_call_handler()->IsUndefined()) { | 725 if (!obj->instance_call_handler()->IsUndefined()) { |
| 726 map->set_has_instance_call_handler(); | 726 map->set_has_instance_call_handler(); |
| 727 } | 727 } |
| 728 | 728 |
| 729 result->shared()->set_function_data(*obj); | 729 result->shared()->set_function_data(*obj); |
| 730 result->shared()->DontAdaptArguments(); |
| 730 | 731 |
| 731 // Recursively copy parent templates' accessors, 'data' may be modified. | 732 // Recursively copy parent templates' accessors, 'data' may be modified. |
| 732 Handle<DescriptorArray> array = | 733 Handle<DescriptorArray> array = |
| 733 Handle<DescriptorArray>(map->instance_descriptors()); | 734 Handle<DescriptorArray>(map->instance_descriptors()); |
| 734 while (true) { | 735 while (true) { |
| 735 Handle<Object> props = Handle<Object>(obj->property_accessors()); | 736 Handle<Object> props = Handle<Object>(obj->property_accessors()); |
| 736 if (!props->IsUndefined()) { | 737 if (!props->IsUndefined()) { |
| 737 array = Factory::CopyAppendCallbackDescriptors(array, props); | 738 array = Factory::CopyAppendCallbackDescriptors(array, props); |
| 738 } | 739 } |
| 739 Handle<Object> parent = Handle<Object>(obj->parent_template()); | 740 Handle<Object> parent = Handle<Object>(obj->parent_template()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 758 Execution::ConfigureInstance(instance, | 759 Execution::ConfigureInstance(instance, |
| 759 instance_template, | 760 instance_template, |
| 760 pending_exception); | 761 pending_exception); |
| 761 } else { | 762 } else { |
| 762 *pending_exception = false; | 763 *pending_exception = false; |
| 763 } | 764 } |
| 764 } | 765 } |
| 765 | 766 |
| 766 | 767 |
| 767 } } // namespace v8::internal | 768 } } // namespace v8::internal |
| OLD | NEW |