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/arm64/frames-arm64.h" | 5 #include "src/arm64/frames-arm64.h" |
6 #include "src/arm64/lithium-codegen-arm64.h" | 6 #include "src/arm64/lithium-codegen-arm64.h" |
7 #include "src/arm64/lithium-gap-resolver-arm64.h" | 7 #include "src/arm64/lithium-gap-resolver-arm64.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4188 __ Bind(&done); | 4188 __ Bind(&done); |
4189 } | 4189 } |
4190 | 4190 |
4191 | 4191 |
4192 void LCodeGen::DoMulConstIS(LMulConstIS* instr) { | 4192 void LCodeGen::DoMulConstIS(LMulConstIS* instr) { |
4193 DCHECK(instr->hydrogen()->representation().IsSmiOrInteger32()); | 4193 DCHECK(instr->hydrogen()->representation().IsSmiOrInteger32()); |
4194 bool is_smi = instr->hydrogen()->representation().IsSmi(); | 4194 bool is_smi = instr->hydrogen()->representation().IsSmi(); |
4195 Register result = | 4195 Register result = |
4196 is_smi ? ToRegister(instr->result()) : ToRegister32(instr->result()); | 4196 is_smi ? ToRegister(instr->result()) : ToRegister32(instr->result()); |
4197 Register left = | 4197 Register left = |
4198 is_smi ? ToRegister(instr->left()) : ToRegister32(instr->left()) ; | 4198 is_smi ? ToRegister(instr->left()) : ToRegister32(instr->left()); |
4199 int32_t right = ToInteger32(instr->right()); | 4199 int32_t right = ToInteger32(instr->right()); |
4200 DCHECK((right > -kMaxInt) && (right < kMaxInt)); | 4200 DCHECK((right > -kMaxInt) && (right < kMaxInt)); |
4201 | 4201 |
4202 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); | 4202 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); |
4203 bool bailout_on_minus_zero = | 4203 bool bailout_on_minus_zero = |
4204 instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero); | 4204 instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero); |
4205 | 4205 |
4206 if (bailout_on_minus_zero) { | 4206 if (bailout_on_minus_zero) { |
4207 if (right < 0) { | 4207 if (right < 0) { |
4208 // The result is -0 if right is negative and left is zero. | 4208 // The result is -0 if right is negative and left is zero. |
(...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6012 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6012 Handle<ScopeInfo> scope_info = instr->scope_info(); |
6013 __ Push(scope_info); | 6013 __ Push(scope_info); |
6014 __ Push(ToRegister(instr->function())); | 6014 __ Push(ToRegister(instr->function())); |
6015 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6015 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6016 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6016 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6017 } | 6017 } |
6018 | 6018 |
6019 | 6019 |
6020 } // namespace internal | 6020 } // namespace internal |
6021 } // namespace v8 | 6021 } // namespace v8 |
OLD | NEW |