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

Side by Side Diff: src/hydrogen.cc

Issue 18749004: Rename AllocationSite::payload to AllocationSite::transition_info (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 4632 matching lines...) Expand 10 before | Expand all | Expand 10 after
4643 Handle<Object> raw_boilerplate; 4643 Handle<Object> raw_boilerplate;
4644 if (literals_cell->IsUndefined()) { 4644 if (literals_cell->IsUndefined()) {
4645 uninitialized = true; 4645 uninitialized = true;
4646 raw_boilerplate = Runtime::CreateArrayLiteralBoilerplate( 4646 raw_boilerplate = Runtime::CreateArrayLiteralBoilerplate(
4647 isolate(), literals, expr->constant_elements()); 4647 isolate(), literals, expr->constant_elements());
4648 if (raw_boilerplate.is_null()) { 4648 if (raw_boilerplate.is_null()) {
4649 return Bailout("array boilerplate creation failed"); 4649 return Bailout("array boilerplate creation failed");
4650 } 4650 }
4651 4651
4652 site = isolate()->factory()->NewAllocationSite(); 4652 site = isolate()->factory()->NewAllocationSite();
4653 site->set_payload(*raw_boilerplate); 4653 site->set_transition_info(*raw_boilerplate);
4654 literals->set(expr->literal_index(), *site); 4654 literals->set(expr->literal_index(), *site);
4655 4655
4656 if (JSObject::cast(*raw_boilerplate)->elements()->map() == 4656 if (JSObject::cast(*raw_boilerplate)->elements()->map() ==
4657 isolate()->heap()->fixed_cow_array_map()) { 4657 isolate()->heap()->fixed_cow_array_map()) {
4658 isolate()->counters()->cow_arrays_created_runtime()->Increment(); 4658 isolate()->counters()->cow_arrays_created_runtime()->Increment();
4659 } 4659 }
4660 } else { 4660 } else {
4661 ASSERT(literals_cell->IsAllocationSite()); 4661 ASSERT(literals_cell->IsAllocationSite());
4662 site = Handle<AllocationSite>::cast(literals_cell); 4662 site = Handle<AllocationSite>::cast(literals_cell);
4663 raw_boilerplate = Handle<Object>(site->payload(), isolate()); 4663 raw_boilerplate = Handle<Object>(site->transition_info(), isolate());
4664 } 4664 }
4665 4665
4666 ASSERT(!raw_boilerplate.is_null()); 4666 ASSERT(!raw_boilerplate.is_null());
4667 ASSERT(site->IsLiteralSite()); 4667 ASSERT(site->IsLiteralSite());
4668 4668
4669 Handle<JSObject> original_boilerplate_object = 4669 Handle<JSObject> original_boilerplate_object =
4670 Handle<JSObject>::cast(raw_boilerplate); 4670 Handle<JSObject>::cast(raw_boilerplate);
4671 ElementsKind boilerplate_elements_kind = 4671 ElementsKind boilerplate_elements_kind =
4672 Handle<JSObject>::cast(original_boilerplate_object)->GetElementsKind(); 4672 Handle<JSObject>::cast(original_boilerplate_object)->GetElementsKind();
4673 4673
(...skipping 5469 matching lines...) Expand 10 before | Expand all | Expand 10 after
10143 if (ShouldProduceTraceOutput()) { 10143 if (ShouldProduceTraceOutput()) {
10144 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 10144 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
10145 } 10145 }
10146 10146
10147 #ifdef DEBUG 10147 #ifdef DEBUG
10148 graph_->Verify(false); // No full verify. 10148 graph_->Verify(false); // No full verify.
10149 #endif 10149 #endif
10150 } 10150 }
10151 10151
10152 } } // namespace v8::internal 10152 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698