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

Unified Diff: src/factory.cc

Issue 10816005: Swapped transition array and descriptor array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: u Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index df72da50fb4851c6517eb30cab44d52cb25a8d6f..8703d15cc84d005a29ae9e6df49a859fdc30102d 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -115,12 +115,17 @@ Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) {
Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) {
ASSERT(0 <= number_of_descriptors);
CALL_HEAP_FUNCTION(isolate(),
- DescriptorArray::Allocate(number_of_descriptors,
- DescriptorArray::MAY_BE_SHARED),
+ DescriptorArray::Allocate(number_of_descriptors),
DescriptorArray);
}
+void Factory::SetDescriptors(Handle<Map> map,
Michael Starzinger 2012/08/06 14:15:52 This method should definitely be moved into the "M
Toon Verwaest 2012/08/07 08:33:04 Done.
+ Handle<DescriptorArray> descriptors) {
+ CALL_HEAP_FUNCTION_VOID(isolate(), map->SetDescriptors(*descriptors));
+}
+
+
Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData(
int deopt_entry_count,
PretenureFlag pretenure) {
@@ -497,7 +502,7 @@ Handle<Map> Factory::CopyMap(Handle<Map> src,
Handle<Map> Factory::CopyMap(Handle<Map> src) {
- CALL_HEAP_FUNCTION(isolate(), src->Copy(DescriptorArray::MAY_BE_SHARED), Map);
+ CALL_HEAP_FUNCTION(isolate(), src->Copy(), Map);
}

Powered by Google App Engine
This is Rietveld 408576698