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

Side by Side Diff: src/hydrogen.h

Issue 40153003: AllocationProfiler: Inital version of RecordObjectAllocation for hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips, ia32 and arm platforms were added Created 7 years, 2 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-profiler.cc ('k') | src/hydrogen.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 HGraph* graph() { return builder_->graph(); } 1560 HGraph* graph() { return builder_->graph(); }
1561 int initial_capacity() { 1561 int initial_capacity() {
1562 STATIC_ASSERT(JSArray::kPreallocatedArrayElements > 0); 1562 STATIC_ASSERT(JSArray::kPreallocatedArrayElements > 0);
1563 return JSArray::kPreallocatedArrayElements; 1563 return JSArray::kPreallocatedArrayElements;
1564 } 1564 }
1565 1565
1566 HValue* EmitMapCode(); 1566 HValue* EmitMapCode();
1567 HValue* EmitInternalMapCode(); 1567 HValue* EmitInternalMapCode();
1568 HValue* EstablishEmptyArrayAllocationSize(); 1568 HValue* EstablishEmptyArrayAllocationSize();
1569 HValue* EstablishAllocationSize(HValue* length_node); 1569 HValue* EstablishAllocationSize(HValue* length_node);
1570 HInstruction* EstablishTotalSize(int base_size, HValue* length_node);
1571
1570 HValue* AllocateArray(HValue* size_in_bytes, HValue* capacity, 1572 HValue* AllocateArray(HValue* size_in_bytes, HValue* capacity,
1571 HValue* length_field, bool fill_with_hole); 1573 HValue* length_field, bool fill_with_hole);
1572 1574
1573 HGraphBuilder* builder_; 1575 HGraphBuilder* builder_;
1574 ElementsKind kind_; 1576 ElementsKind kind_;
1575 AllocationSiteMode mode_; 1577 AllocationSiteMode mode_;
1576 HValue* allocation_site_payload_; 1578 HValue* allocation_site_payload_;
1577 HValue* constructor_function_; 1579 HValue* constructor_function_;
1578 HInnerAllocatedObject* elements_location_; 1580 HInnerAllocatedObject* elements_location_;
1579 }; 1581 };
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 ASSERT(position != RelocInfo::kNoPosition); 1648 ASSERT(position != RelocInfo::kNoPosition);
1647 position_ = position; 1649 position_ = position;
1648 } 1650 }
1649 1651
1650 private: 1652 private:
1651 HGraphBuilder(); 1653 HGraphBuilder();
1652 1654
1653 void PadEnvironmentForContinuation(HBasicBlock* from, 1655 void PadEnvironmentForContinuation(HBasicBlock* from,
1654 HBasicBlock* continuation); 1656 HBasicBlock* continuation);
1655 1657
1658 void RecordObjectAllocation(HValue* object, HValue* size);
1659
1660
1656 CompilationInfo* info_; 1661 CompilationInfo* info_;
1657 HGraph* graph_; 1662 HGraph* graph_;
1658 HBasicBlock* current_block_; 1663 HBasicBlock* current_block_;
1659 int position_; 1664 int position_;
1660 }; 1665 };
1661 1666
1662 1667
1663 template<> 1668 template<>
1664 inline HInstruction* HGraphBuilder::AddUncasted<HDeoptimize>( 1669 inline HInstruction* HGraphBuilder::AddUncasted<HDeoptimize>(
1665 const char* reason, Deoptimizer::BailoutType type) { 1670 const char* reason, Deoptimizer::BailoutType type) {
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 } 2488 }
2484 2489
2485 private: 2490 private:
2486 HGraphBuilder* builder_; 2491 HGraphBuilder* builder_;
2487 }; 2492 };
2488 2493
2489 2494
2490 } } // namespace v8::internal 2495 } } // namespace v8::internal
2491 2496
2492 #endif // V8_HYDROGEN_H_ 2497 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap-profiler.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698