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

Side by Side Diff: src/compiler/x64/instruction-scheduler-x64.cc

Issue 2516413003: [wasm] Add ProtectedStore instruction (Closed)
Patch Set: Merging with master Created 4 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
« no previous file with comments | « src/compiler/x64/instruction-codes-x64.h ('k') | src/compiler/x64/instruction-selector-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/instruction-scheduler.h" 5 #include "src/compiler/instruction-scheduler.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 case kX64Movsxlq: 148 case kX64Movsxlq:
149 DCHECK(instr->InputCount() >= 1); 149 DCHECK(instr->InputCount() >= 1);
150 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags 150 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags
151 : kIsLoadOperation; 151 : kIsLoadOperation;
152 152
153 case kX64Movb: 153 case kX64Movb:
154 case kX64Movw: 154 case kX64Movw:
155 return kHasSideEffect; 155 return kHasSideEffect;
156 156
157 case kX64Movl: 157 case kX64Movl:
158 case kX64TrapMovl:
159 if (instr->HasOutput()) { 158 if (instr->HasOutput()) {
160 DCHECK(instr->InputCount() >= 1); 159 DCHECK(instr->InputCount() >= 1);
161 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags 160 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags
162 : kIsLoadOperation; 161 : kIsLoadOperation;
163 } else { 162 } else {
164 return kHasSideEffect; 163 return kHasSideEffect;
165 } 164 }
166 165
167 case kX64Movq: 166 case kX64Movq:
168 case kX64Movsd: 167 case kX64Movsd:
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 case kArchTruncateDoubleToI: 262 case kArchTruncateDoubleToI:
264 return 6; 263 return 6;
265 default: 264 default:
266 return 1; 265 return 1;
267 } 266 }
268 } 267 }
269 268
270 } // namespace compiler 269 } // namespace compiler
271 } // namespace internal 270 } // namespace internal
272 } // namespace v8 271 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-codes-x64.h ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698