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

Unified Diff: src/compiler/register-allocator.h

Issue 664123002: [turbofan] cleanup InstructionSequence (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/register-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/register-allocator.h
diff --git a/src/compiler/register-allocator.h b/src/compiler/register-allocator.h
index 5498aba0e41a87af6335532901c35b4a2f8b0f05..adcc9043dadca1140aea97de742de49f8a72c328 100644
--- a/src/compiler/register-allocator.h
+++ b/src/compiler/register-allocator.h
@@ -317,7 +317,9 @@ class LiveRange : public ZoneObject {
class RegisterAllocator BASE_EMBEDDED {
public:
- explicit RegisterAllocator(InstructionSequence* code);
+ // TODO(dcarney): remove info
+ explicit RegisterAllocator(Frame* frame, CompilationInfo* info,
+ InstructionSequence* code);
static void TraceAlloc(const char* msg, ...);
@@ -338,6 +340,7 @@ class RegisterAllocator BASE_EMBEDDED {
return &fixed_double_live_ranges_;
}
+ CompilationInfo* info() const { return info_; }
inline InstructionSequence* code() const { return code_; }
// This zone is for datastructures only needed during register allocation.
@@ -492,8 +495,12 @@ class RegisterAllocator BASE_EMBEDDED {
return code()->InstructionAt(index);
}
+ Frame* frame() const { return frame_; }
+
Zone zone_;
- InstructionSequence* code_;
+ Frame* const frame_;
+ CompilationInfo* const info_;
+ InstructionSequence* const code_;
// During liveness analysis keep a mapping from block id to live_in sets
// for blocks already analyzed.
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698