Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 5090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5101 | 5101 |
| 5102 void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { | 5102 void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { |
| 5103 Token::Value op = instr->op(); | 5103 Token::Value op = instr->op(); |
| 5104 | 5104 |
| 5105 Handle<Code> ic = CompareIC::GetUninitialized(isolate(), op); | 5105 Handle<Code> ic = CompareIC::GetUninitialized(isolate(), op); |
| 5106 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 5106 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 5107 InlineSmiCheckInfo::EmitNotInlined(masm()); | 5107 InlineSmiCheckInfo::EmitNotInlined(masm()); |
| 5108 | 5108 |
| 5109 Condition condition = TokenToCondition(op, false); | 5109 Condition condition = TokenToCondition(op, false); |
| 5110 | 5110 |
| 5111 __ Tst(x0, x0); | |
|
jbramley
2014/02/05 13:01:41
ARM (and AArch64) processors generally prefer "Cmp
ulan
2014/02/05 13:09:21
Done.
| |
| 5112 | |
| 5111 EmitBranch(instr, condition); | 5113 EmitBranch(instr, condition); |
| 5112 } | 5114 } |
| 5113 | 5115 |
| 5114 | 5116 |
| 5115 void LCodeGen::DoSubI(LSubI* instr) { | 5117 void LCodeGen::DoSubI(LSubI* instr) { |
| 5116 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); | 5118 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); |
| 5117 Register result = ToRegister32(instr->result()); | 5119 Register result = ToRegister32(instr->result()); |
| 5118 Register left = ToRegister32(instr->left()); | 5120 Register left = ToRegister32(instr->left()); |
| 5119 Operand right = ToOperand32I(instr->right()); | 5121 Operand right = ToOperand32I(instr->right()); |
| 5120 if (can_overflow) { | 5122 if (can_overflow) { |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5560 __ Bind(&out_of_object); | 5562 __ Bind(&out_of_object); |
| 5561 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5563 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
| 5562 // Index is equal to negated out of object property index plus 1. | 5564 // Index is equal to negated out of object property index plus 1. |
| 5563 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5565 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5564 __ Ldr(result, FieldMemOperand(result, | 5566 __ Ldr(result, FieldMemOperand(result, |
| 5565 FixedArray::kHeaderSize - kPointerSize)); | 5567 FixedArray::kHeaderSize - kPointerSize)); |
| 5566 __ Bind(&done); | 5568 __ Bind(&done); |
| 5567 } | 5569 } |
| 5568 | 5570 |
| 5569 } } // namespace v8::internal | 5571 } } // namespace v8::internal |
| OLD | NEW |