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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 array = Factory::CopyAppendCallbackDescriptors(array, props); | 859 array = Factory::CopyAppendCallbackDescriptors(array, props); |
860 } | 860 } |
861 Handle<Object> parent = Handle<Object>(obj->parent_template()); | 861 Handle<Object> parent = Handle<Object>(obj->parent_template()); |
862 if (parent->IsUndefined()) break; | 862 if (parent->IsUndefined()) break; |
863 obj = Handle<FunctionTemplateInfo>::cast(parent); | 863 obj = Handle<FunctionTemplateInfo>::cast(parent); |
864 } | 864 } |
865 if (!array->IsEmpty()) { | 865 if (!array->IsEmpty()) { |
866 map->set_instance_descriptors(*array); | 866 map->set_instance_descriptors(*array); |
867 } | 867 } |
868 | 868 |
| 869 ASSERT(result->shared()->IsApiFunction()); |
869 return result; | 870 return result; |
870 } | 871 } |
871 | 872 |
872 | 873 |
873 Handle<MapCache> Factory::NewMapCache(int at_least_space_for) { | 874 Handle<MapCache> Factory::NewMapCache(int at_least_space_for) { |
874 CALL_HEAP_FUNCTION(MapCache::Allocate(at_least_space_for), MapCache); | 875 CALL_HEAP_FUNCTION(MapCache::Allocate(at_least_space_for), MapCache); |
875 } | 876 } |
876 | 877 |
877 | 878 |
878 static Object* UpdateMapCacheWith(Context* context, | 879 static Object* UpdateMapCacheWith(Context* context, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 Execution::ConfigureInstance(instance, | 957 Execution::ConfigureInstance(instance, |
957 instance_template, | 958 instance_template, |
958 pending_exception); | 959 pending_exception); |
959 } else { | 960 } else { |
960 *pending_exception = false; | 961 *pending_exception = false; |
961 } | 962 } |
962 } | 963 } |
963 | 964 |
964 | 965 |
965 } } // namespace v8::internal | 966 } } // namespace v8::internal |
OLD | NEW |