OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "arm/lithium-codegen-arm.h" | 7 #include "arm/lithium-codegen-arm.h" |
8 #include "arm/lithium-gap-resolver-arm.h" | 8 #include "arm/lithium-gap-resolver-arm.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 2350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2361 default: | 2361 default: |
2362 UNREACHABLE(); | 2362 UNREACHABLE(); |
2363 } | 2363 } |
2364 return cond; | 2364 return cond; |
2365 } | 2365 } |
2366 | 2366 |
2367 | 2367 |
2368 void LCodeGen::DoCompareNumericAndBranch(LCompareNumericAndBranch* instr) { | 2368 void LCodeGen::DoCompareNumericAndBranch(LCompareNumericAndBranch* instr) { |
2369 LOperand* left = instr->left(); | 2369 LOperand* left = instr->left(); |
2370 LOperand* right = instr->right(); | 2370 LOperand* right = instr->right(); |
2371 Condition cond = TokenToCondition(instr->op(), false); | 2371 bool is_unsigned = instr->hydrogen()->CheckFlag(HInstruction::kUint32); |
| 2372 Condition cond = TokenToCondition(instr->op(), is_unsigned); |
2372 | 2373 |
2373 if (left->IsConstantOperand() && right->IsConstantOperand()) { | 2374 if (left->IsConstantOperand() && right->IsConstantOperand()) { |
2374 // We can statically evaluate the comparison. | 2375 // We can statically evaluate the comparison. |
2375 double left_val = ToDouble(LConstantOperand::cast(left)); | 2376 double left_val = ToDouble(LConstantOperand::cast(left)); |
2376 double right_val = ToDouble(LConstantOperand::cast(right)); | 2377 double right_val = ToDouble(LConstantOperand::cast(right)); |
2377 int next_block = EvalComparison(instr->op(), left_val, right_val) ? | 2378 int next_block = EvalComparison(instr->op(), left_val, right_val) ? |
2378 instr->TrueDestination(chunk_) : instr->FalseDestination(chunk_); | 2379 instr->TrueDestination(chunk_) : instr->FalseDestination(chunk_); |
2379 EmitGoto(next_block); | 2380 EmitGoto(next_block); |
2380 } else { | 2381 } else { |
2381 if (instr->is_double()) { | 2382 if (instr->is_double()) { |
(...skipping 3480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5862 __ ldr(result, FieldMemOperand(scratch, | 5863 __ ldr(result, FieldMemOperand(scratch, |
5863 FixedArray::kHeaderSize - kPointerSize)); | 5864 FixedArray::kHeaderSize - kPointerSize)); |
5864 __ bind(deferred->exit()); | 5865 __ bind(deferred->exit()); |
5865 __ bind(&done); | 5866 __ bind(&done); |
5866 } | 5867 } |
5867 | 5868 |
5868 | 5869 |
5869 #undef __ | 5870 #undef __ |
5870 | 5871 |
5871 } } // namespace v8::internal | 5872 } } // namespace v8::internal |
OLD | NEW |