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

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

Issue 2027043002: [Turbofan] Add ia32 support for 4 and 16 byte moves and swaps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disassembler and test. Created 4 years, 5 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
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/ia32/assembler-ia32.h » ('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 #include "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/linkage.h" 6 #include "src/compiler/linkage.h"
7 #include "src/compiler/register-allocator.h" 7 #include "src/compiler/register-allocator.h"
8 #include "src/string-stream.h" 8 #include "src/string-stream.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 // TODO(dcarney): fix frame to allow frame accesses to half size location. 67 // TODO(dcarney): fix frame to allow frame accesses to half size location.
68 int GetByteWidth(MachineRepresentation rep) { 68 int GetByteWidth(MachineRepresentation rep) {
69 switch (rep) { 69 switch (rep) {
70 case MachineRepresentation::kBit: 70 case MachineRepresentation::kBit:
71 case MachineRepresentation::kWord8: 71 case MachineRepresentation::kWord8:
72 case MachineRepresentation::kWord16: 72 case MachineRepresentation::kWord16:
73 case MachineRepresentation::kWord32: 73 case MachineRepresentation::kWord32:
74 case MachineRepresentation::kTagged: 74 case MachineRepresentation::kTagged:
75 case MachineRepresentation::kFloat32:
75 return kPointerSize; 76 return kPointerSize;
76 case MachineRepresentation::kFloat32:
77 case MachineRepresentation::kWord64: 77 case MachineRepresentation::kWord64:
78 case MachineRepresentation::kFloat64: 78 case MachineRepresentation::kFloat64:
79 return 8; 79 return 8;
80 case MachineRepresentation::kSimd128: 80 case MachineRepresentation::kSimd128:
81 return 16; 81 return 16;
82 case MachineRepresentation::kNone: 82 case MachineRepresentation::kNone:
83 break; 83 break;
84 } 84 }
85 UNREACHABLE(); 85 UNREACHABLE();
86 return 0; 86 return 0;
(...skipping 3693 matching lines...) Expand 10 before | Expand all | Expand 10 after
3780 } 3780 }
3781 } 3781 }
3782 } 3782 }
3783 } 3783 }
3784 } 3784 }
3785 3785
3786 3786
3787 } // namespace compiler 3787 } // namespace compiler
3788 } // namespace internal 3788 } // namespace internal
3789 } // namespace v8 3789 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698