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

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

Issue 2453813002: [Turbofan] Add USE for local used only by DCHECK. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | 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 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 case MachineRepresentation::kSimd128: 1929 case MachineRepresentation::kSimd128:
1930 num_regs = config()->num_simd128_registers(); 1930 num_regs = config()->num_simd128_registers();
1931 live_ranges = &data()->fixed_simd128_live_ranges(); 1931 live_ranges = &data()->fixed_simd128_live_ranges();
1932 break; 1932 break;
1933 default: 1933 default:
1934 UNREACHABLE(); 1934 UNREACHABLE();
1935 break; 1935 break;
1936 } 1936 }
1937 1937
1938 DCHECK(index < num_regs); 1938 DCHECK(index < num_regs);
1939 USE(num_regs);
1939 TopLevelLiveRange* result = (*live_ranges)[index]; 1940 TopLevelLiveRange* result = (*live_ranges)[index];
1940 if (result == nullptr) { 1941 if (result == nullptr) {
1941 result = data()->NewLiveRange(FixedFPLiveRangeID(index, rep), rep); 1942 result = data()->NewLiveRange(FixedFPLiveRangeID(index, rep), rep);
1942 DCHECK(result->IsFixed()); 1943 DCHECK(result->IsFixed());
1943 result->set_assigned_register(index); 1944 result->set_assigned_register(index);
1944 data()->MarkAllocated(rep, index); 1945 data()->MarkAllocated(rep, index);
1945 (*live_ranges)[index] = result; 1946 (*live_ranges)[index] = result;
1946 } 1947 }
1947 return result; 1948 return result;
1948 } 1949 }
(...skipping 2001 matching lines...) Expand 10 before | Expand all | Expand 10 after
3950 } 3951 }
3951 } 3952 }
3952 } 3953 }
3953 } 3954 }
3954 } 3955 }
3955 3956
3956 3957
3957 } // namespace compiler 3958 } // namespace compiler
3958 } // namespace internal 3959 } // namespace internal
3959 } // namespace v8 3960 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698