diff options
| author | 2016-04-07 09:54:26 +0000 | |
|---|---|---|
| committer | 2016-04-07 16:03:16 +0000 | |
| commit | dee58d6bb6d567fcd0c4f39d8d690c3acaf0e432 (patch) | |
| tree | 5a2f20546ca3c1544c44bee560062580e22dc79c /compiler/optimizing/code_generator.h | |
| parent | 391e155a6936a05bd39b171031ec21d2dee62133 (diff) | |
Revert "Revert "Refactor HGraphBuilder and SsaBuilder to remove HLocals""
This patch merges the instruction-building phases from HGraphBuilder
and SsaBuilder into a single HInstructionBuilder class. As a result,
it is not necessary to generate HLocal, HLoadLocal and HStoreLocal
instructions any more, as the builder produces SSA form directly.
Saves 5-15% of arena-allocated memory (see bug for more data):
GMS 20.46MB => 19.26MB (-5.86%)
Maps 24.12MB => 21.47MB (-10.98%)
YouTube 28.60MB => 26.01MB (-9.05%)
This CL fixed an issue with parsing quickened instructions.
Bug: 27894376
Bug: 27998571
Bug: 27995065
Change-Id: I20dbe1bf2d0fe296377478db98cb86cba695e694
Diffstat (limited to 'compiler/optimizing/code_generator.h')
| -rw-r--r-- | compiler/optimizing/code_generator.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index cad55296bc..1a060b1f58 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -211,7 +211,6 @@ class CodeGenerator { size_t maximum_number_of_live_fpu_registers, size_t number_of_out_slots, const ArenaVector<HBasicBlock*>& block_order); - int32_t GetStackSlot(HLocal* local) const; uint32_t GetFrameSize() const { return frame_size_; } void SetFrameSize(uint32_t size) { frame_size_ = size; } @@ -525,8 +524,6 @@ class CodeGenerator { slow_paths_.reserve(8); } - virtual Location GetStackLocation(HLoadLocal* load) const = 0; - virtual HGraphVisitor* GetLocationBuilder() = 0; virtual HGraphVisitor* GetInstructionVisitor() = 0; |