Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: src/factory.cc

Issue 1148007: Merge bleeding_edge from version 2.1.3 up to revision 4205... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/factory.h ('k') | src/fast-codegen.cc » ('j') | src/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 Handle<Object> self_ref) { 553 Handle<Object> self_ref) {
554 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); 554 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code);
555 } 555 }
556 556
557 557
558 Handle<Code> Factory::CopyCode(Handle<Code> code) { 558 Handle<Code> Factory::CopyCode(Handle<Code> code) {
559 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); 559 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code);
560 } 560 }
561 561
562 562
563 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) {
564 CALL_HEAP_FUNCTION(Heap::CopyCode(*code, reloc_info), Code);
565 }
566
567
563 static inline Object* DoCopyInsert(DescriptorArray* array, 568 static inline Object* DoCopyInsert(DescriptorArray* array,
564 String* key, 569 String* key,
565 Object* value, 570 Object* value,
566 PropertyAttributes attributes) { 571 PropertyAttributes attributes) {
567 CallbacksDescriptor desc(key, value, attributes); 572 CallbacksDescriptor desc(key, value, attributes);
568 Object* obj = array->CopyInsert(&desc, REMOVE_TRANSITIONS); 573 Object* obj = array->CopyInsert(&desc, REMOVE_TRANSITIONS);
569 return obj; 574 return obj;
570 } 575 }
571 576
572 577
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 array = Factory::CopyAppendCallbackDescriptors(array, props); 864 array = Factory::CopyAppendCallbackDescriptors(array, props);
860 } 865 }
861 Handle<Object> parent = Handle<Object>(obj->parent_template()); 866 Handle<Object> parent = Handle<Object>(obj->parent_template());
862 if (parent->IsUndefined()) break; 867 if (parent->IsUndefined()) break;
863 obj = Handle<FunctionTemplateInfo>::cast(parent); 868 obj = Handle<FunctionTemplateInfo>::cast(parent);
864 } 869 }
865 if (!array->IsEmpty()) { 870 if (!array->IsEmpty()) {
866 map->set_instance_descriptors(*array); 871 map->set_instance_descriptors(*array);
867 } 872 }
868 873
874 ASSERT(result->shared()->IsApiFunction());
869 return result; 875 return result;
870 } 876 }
871 877
872 878
873 Handle<MapCache> Factory::NewMapCache(int at_least_space_for) { 879 Handle<MapCache> Factory::NewMapCache(int at_least_space_for) {
874 CALL_HEAP_FUNCTION(MapCache::Allocate(at_least_space_for), MapCache); 880 CALL_HEAP_FUNCTION(MapCache::Allocate(at_least_space_for), MapCache);
875 } 881 }
876 882
877 883
878 static Object* UpdateMapCacheWith(Context* context, 884 static Object* UpdateMapCacheWith(Context* context,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 Execution::ConfigureInstance(instance, 962 Execution::ConfigureInstance(instance,
957 instance_template, 963 instance_template,
958 pending_exception); 964 pending_exception);
959 } else { 965 } else {
960 *pending_exception = false; 966 *pending_exception = false;
961 } 967 }
962 } 968 }
963 969
964 970
965 } } // namespace v8::internal 971 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/fast-codegen.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698