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

Side by Side Diff: src/compiler/ia32/instruction-scheduler-ia32.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 | « no previous file | src/compiler/instruction.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 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 case kSSEI32x4Sub: 104 case kSSEI32x4Sub:
105 case kAVXI32x4Add: 105 case kAVXI32x4Add:
106 case kAVXI32x4Sub: 106 case kAVXI32x4Sub:
107 return (instr->addressing_mode() == kMode_None) 107 return (instr->addressing_mode() == kMode_None)
108 ? kNoOpcodeFlags 108 ? kNoOpcodeFlags
109 : kIsLoadOperation | kHasSideEffect; 109 : kIsLoadOperation | kHasSideEffect;
110 110
111 case kIA32Idiv: 111 case kIA32Idiv:
112 case kIA32Udiv: 112 case kIA32Udiv:
113 return (instr->addressing_mode() == kMode_None) 113 return (instr->addressing_mode() == kMode_None)
114 ? kMayNeedDeoptCheck 114 ? kMayNeedDeoptOrTrapCheck
115 : kMayNeedDeoptCheck | kIsLoadOperation | kHasSideEffect; 115 : kMayNeedDeoptOrTrapCheck | kIsLoadOperation | kHasSideEffect;
116 116
117 case kIA32Movsxbl: 117 case kIA32Movsxbl:
118 case kIA32Movzxbl: 118 case kIA32Movzxbl:
119 case kIA32Movb: 119 case kIA32Movb:
120 case kIA32Movsxwl: 120 case kIA32Movsxwl:
121 case kIA32Movzxwl: 121 case kIA32Movzxwl:
122 case kIA32Movw: 122 case kIA32Movw:
123 case kIA32Movl: 123 case kIA32Movl:
124 case kIA32Movss: 124 case kIA32Movss:
125 case kIA32Movsd: 125 case kIA32Movsd:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 case kArchTruncateDoubleToI: 211 case kArchTruncateDoubleToI:
212 return 9; 212 return 9;
213 default: 213 default:
214 return 1; 214 return 1;
215 } 215 }
216 } 216 }
217 217
218 } // namespace compiler 218 } // namespace compiler
219 } // namespace internal 219 } // namespace internal
220 } // namespace v8 220 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698