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

Side by Side Diff: src/compiler/register-allocator.h

Issue 683133005: [turbofan] initial framework for unittesting of register allocator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 1 month 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/compiler/pipeline.cc ('k') | test/cctest/compiler/test-codegen-deopt.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_REGISTER_ALLOCATOR_H_ 5 #ifndef V8_REGISTER_ALLOCATOR_H_
6 #define V8_REGISTER_ALLOCATOR_H_ 6 #define V8_REGISTER_ALLOCATOR_H_
7 7
8 #include "src/compiler/instruction.h" 8 #include "src/compiler/instruction.h"
9 #include "src/zone-containers.h" 9 #include "src/zone-containers.h"
10 10
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 InstructionOperand* current_hint_operand_; 310 InstructionOperand* current_hint_operand_;
311 InstructionOperand* spill_operand_; 311 InstructionOperand* spill_operand_;
312 int spill_start_index_; 312 int spill_start_index_;
313 313
314 friend class RegisterAllocator; // Assigns to kind_. 314 friend class RegisterAllocator; // Assigns to kind_.
315 315
316 DISALLOW_COPY_AND_ASSIGN(LiveRange); 316 DISALLOW_COPY_AND_ASSIGN(LiveRange);
317 }; 317 };
318 318
319 319
320 class RegisterAllocator BASE_EMBEDDED { 320 class RegisterAllocator FINAL {
321 public: 321 public:
322 class Config { 322 class Config {
323 public: 323 public:
324 int num_general_registers_; 324 int num_general_registers_;
325 int num_double_registers_; 325 int num_double_registers_;
326 int num_aliased_double_registers_; 326 int num_aliased_double_registers_;
327 const char* (*GeneralRegisterName)(int allocation_index); 327 const char* (*GeneralRegisterName)(int allocation_index);
328 const char* (*DoubleRegisterName)(int allocation_index); 328 const char* (*DoubleRegisterName)(int allocation_index);
329 }; 329 };
330 330
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 #endif 540 #endif
541 541
542 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); 542 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator);
543 }; 543 };
544 544
545 } 545 }
546 } 546 }
547 } // namespace v8::internal::compiler 547 } // namespace v8::internal::compiler
548 548
549 #endif // V8_REGISTER_ALLOCATOR_H_ 549 #endif // V8_REGISTER_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | test/cctest/compiler/test-codegen-deopt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698