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

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

Issue 2916143003: handle WASM trap in the instruction scheduler. (Closed)
Patch Set: Created 3 years, 6 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/instruction-scheduler.cc ('k') | 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 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 case kX64S128Zero: 182 case kX64S128Zero:
183 return (instr->addressing_mode() == kMode_None) 183 return (instr->addressing_mode() == kMode_None)
184 ? kNoOpcodeFlags 184 ? kNoOpcodeFlags
185 : kIsLoadOperation | kHasSideEffect; 185 : kIsLoadOperation | kHasSideEffect;
186 186
187 case kX64Idiv: 187 case kX64Idiv:
188 case kX64Idiv32: 188 case kX64Idiv32:
189 case kX64Udiv: 189 case kX64Udiv:
190 case kX64Udiv32: 190 case kX64Udiv32:
191 return (instr->addressing_mode() == kMode_None) 191 return (instr->addressing_mode() == kMode_None)
192 ? kMayNeedDeoptCheck 192 ? kMayNeedDeoptOrTrapCheck
193 : kMayNeedDeoptCheck | kIsLoadOperation | kHasSideEffect; 193 : kMayNeedDeoptOrTrapCheck | kIsLoadOperation | kHasSideEffect;
194 194
195 case kX64Movsxbl: 195 case kX64Movsxbl:
196 case kX64Movzxbl: 196 case kX64Movzxbl:
197 case kX64Movsxbq: 197 case kX64Movsxbq:
198 case kX64Movzxbq: 198 case kX64Movzxbq:
199 case kX64Movsxwl: 199 case kX64Movsxwl:
200 case kX64Movzxwl: 200 case kX64Movzxwl:
201 case kX64Movsxwq: 201 case kX64Movsxwq:
202 case kX64Movzxwq: 202 case kX64Movzxwq:
203 case kX64Movsxlq: 203 case kX64Movsxlq:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 case kArchTruncateDoubleToI: 312 case kArchTruncateDoubleToI:
313 return 6; 313 return 6;
314 default: 314 default:
315 return 1; 315 return 1;
316 } 316 }
317 } 317 }
318 318
319 } // namespace compiler 319 } // namespace compiler
320 } // namespace internal 320 } // namespace internal
321 } // namespace v8 321 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction-scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698