OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
8 #include "src/hydrogen-osr.h" | 8 #include "src/hydrogen-osr.h" |
9 #include "src/lithium-inl.h" | 9 #include "src/lithium-inl.h" |
10 | 10 |
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 Representation input_rep = value->representation(); | 1245 Representation input_rep = value->representation(); |
1246 LOperand* reg = UseRegister(value); | 1246 LOperand* reg = UseRegister(value); |
1247 if (input_rep.IsDouble()) { | 1247 if (input_rep.IsDouble()) { |
1248 return DefineAsRegister(new(zone()) LClampDToUint8(reg)); | 1248 return DefineAsRegister(new(zone()) LClampDToUint8(reg)); |
1249 } else if (input_rep.IsInteger32()) { | 1249 } else if (input_rep.IsInteger32()) { |
1250 return DefineAsRegister(new(zone()) LClampIToUint8(reg)); | 1250 return DefineAsRegister(new(zone()) LClampIToUint8(reg)); |
1251 } else { | 1251 } else { |
1252 DCHECK(input_rep.IsSmiOrTagged()); | 1252 DCHECK(input_rep.IsSmiOrTagged()); |
1253 return AssignEnvironment( | 1253 return AssignEnvironment( |
1254 DefineAsRegister(new(zone()) LClampTToUint8(reg, | 1254 DefineAsRegister(new(zone()) LClampTToUint8(reg, |
1255 TempRegister(), | |
1256 TempDoubleRegister()))); | 1255 TempDoubleRegister()))); |
1257 } | 1256 } |
1258 } | 1257 } |
1259 | 1258 |
1260 | 1259 |
1261 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1260 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
1262 HClassOfTestAndBranch* instr) { | 1261 HClassOfTestAndBranch* instr) { |
1263 DCHECK(instr->value()->representation().IsTagged()); | 1262 DCHECK(instr->value()->representation().IsTagged()); |
1264 LOperand* value = UseRegisterAtStart(instr->value()); | 1263 LOperand* value = UseRegisterAtStart(instr->value()); |
1265 return new(zone()) LClassOfTestAndBranch(value, | 1264 return new(zone()) LClassOfTestAndBranch(value, |
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2753 HAllocateBlockContext* instr) { | 2752 HAllocateBlockContext* instr) { |
2754 LOperand* context = UseFixed(instr->context(), cp); | 2753 LOperand* context = UseFixed(instr->context(), cp); |
2755 LOperand* function = UseRegisterAtStart(instr->function()); | 2754 LOperand* function = UseRegisterAtStart(instr->function()); |
2756 LAllocateBlockContext* result = | 2755 LAllocateBlockContext* result = |
2757 new(zone()) LAllocateBlockContext(context, function); | 2756 new(zone()) LAllocateBlockContext(context, function); |
2758 return MarkAsCall(DefineFixed(result, cp), instr); | 2757 return MarkAsCall(DefineFixed(result, cp), instr); |
2759 } | 2758 } |
2760 | 2759 |
2761 | 2760 |
2762 } } // namespace v8::internal | 2761 } } // namespace v8::internal |
OLD | NEW |