| 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 4716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4727 __ Mov(result, 0); | 4727 __ Mov(result, 0); |
| 4728 | 4728 |
| 4729 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); | 4729 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); |
| 4730 __ SmiTag(char_code); | 4730 __ SmiTag(char_code); |
| 4731 __ Push(char_code); | 4731 __ Push(char_code); |
| 4732 CallRuntimeFromDeferred(Runtime::kCharFromCode, 1, instr); | 4732 CallRuntimeFromDeferred(Runtime::kCharFromCode, 1, instr); |
| 4733 __ StoreToSafepointRegisterSlot(x0, result); | 4733 __ StoreToSafepointRegisterSlot(x0, result); |
| 4734 } | 4734 } |
| 4735 | 4735 |
| 4736 | 4736 |
| 4737 void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { |
| 4738 Token::Value op = instr->op(); |
| 4739 |
| 4740 Handle<Code> ic = CompareIC::GetUninitialized(isolate(), op); |
| 4741 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 4742 InlineSmiCheckInfo::EmitNotInlined(masm()); |
| 4743 |
| 4744 Condition condition = TokenToCondition(op, false); |
| 4745 |
| 4746 EmitBranch(instr, condition); |
| 4747 } |
| 4748 |
| 4749 |
| 4737 void LCodeGen::DoStringLength(LStringLength* instr) { | 4750 void LCodeGen::DoStringLength(LStringLength* instr) { |
| 4738 Register string = ToRegister(instr->string()); | 4751 Register string = ToRegister(instr->string()); |
| 4739 Register result = ToRegister(instr->result()); | 4752 Register result = ToRegister(instr->result()); |
| 4740 __ Ldr(result, FieldMemOperand(string, String::kLengthOffset)); | 4753 __ Ldr(result, FieldMemOperand(string, String::kLengthOffset)); |
| 4741 } | 4754 } |
| 4742 | 4755 |
| 4743 | 4756 |
| 4744 void LCodeGen::DoSubI(LSubI* instr) { | 4757 void LCodeGen::DoSubI(LSubI* instr) { |
| 4745 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); | 4758 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); |
| 4746 Register result = ToRegister32(instr->result()); | 4759 Register result = ToRegister32(instr->result()); |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5138 __ Bind(&out_of_object); | 5151 __ Bind(&out_of_object); |
| 5139 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5152 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
| 5140 // Index is equal to negated out of object property index plus 1. | 5153 // Index is equal to negated out of object property index plus 1. |
| 5141 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5154 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5142 __ Ldr(result, FieldMemOperand(result, | 5155 __ Ldr(result, FieldMemOperand(result, |
| 5143 FixedArray::kHeaderSize - kPointerSize)); | 5156 FixedArray::kHeaderSize - kPointerSize)); |
| 5144 __ Bind(&done); | 5157 __ Bind(&done); |
| 5145 } | 5158 } |
| 5146 | 5159 |
| 5147 } } // namespace v8::internal | 5160 } } // namespace v8::internal |
| OLD | NEW |