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

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

Issue 750813004: [turbofan] add initial move optimizer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 6 years 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
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 #include "src/compiler/linkage.h" 5 #include "src/compiler/linkage.h"
6 #include "src/compiler/register-allocator.h" 6 #include "src/compiler/register-allocator.h"
7 #include "src/string-stream.h" 7 #include "src/string-stream.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 int reg) { 2476 int reg) {
2477 if (range->Kind() == DOUBLE_REGISTERS) { 2477 if (range->Kind() == DOUBLE_REGISTERS) {
2478 assigned_double_registers_->Add(reg); 2478 assigned_double_registers_->Add(reg);
2479 } else { 2479 } else {
2480 DCHECK(range->Kind() == GENERAL_REGISTERS); 2480 DCHECK(range->Kind() == GENERAL_REGISTERS);
2481 assigned_registers_->Add(reg); 2481 assigned_registers_->Add(reg);
2482 } 2482 }
2483 range->set_assigned_register(reg, code_zone()); 2483 range->set_assigned_register(reg, code_zone());
2484 } 2484 }
2485 2485
2486 } 2486 } // namespace compiler
2487 } 2487 } // namespace internal
2488 } // namespace v8::internal::compiler 2488 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.h ('k') | test/unittests/compiler/instruction-sequence-unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698