OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4708 | 4708 |
4709 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 4709 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
4710 Register map = ToRegister(instr->map()); | 4710 Register map = ToRegister(instr->map()); |
4711 Register result = ToRegister(instr->result()); | 4711 Register result = ToRegister(instr->result()); |
4712 __ LoadInstanceDescriptors(map, result); | 4712 __ LoadInstanceDescriptors(map, result); |
4713 __ movq(result, | 4713 __ movq(result, |
4714 FieldOperand(result, DescriptorArray::kEnumerationIndexOffset)); | 4714 FieldOperand(result, DescriptorArray::kEnumerationIndexOffset)); |
4715 __ movq(result, | 4715 __ movq(result, |
4716 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); | 4716 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); |
4717 Condition cc = masm()->CheckSmi(result); | 4717 Condition cc = masm()->CheckSmi(result); |
4718 DeoptimizeIf(NegateCondition(cc), instr->environment()); | 4718 DeoptimizeIf(cc, instr->environment()); |
4719 } | 4719 } |
4720 | 4720 |
4721 | 4721 |
4722 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { | 4722 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { |
4723 Register object = ToRegister(instr->value()); | 4723 Register object = ToRegister(instr->value()); |
4724 __ cmpq(ToRegister(instr->map()), | 4724 __ cmpq(ToRegister(instr->map()), |
4725 FieldOperand(object, HeapObject::kMapOffset)); | 4725 FieldOperand(object, HeapObject::kMapOffset)); |
4726 DeoptimizeIf(not_equal, instr->environment()); | 4726 DeoptimizeIf(not_equal, instr->environment()); |
4727 } | 4727 } |
4728 | 4728 |
(...skipping 22 matching lines...) Expand all Loading... |
4751 FixedArray::kHeaderSize - kPointerSize)); | 4751 FixedArray::kHeaderSize - kPointerSize)); |
4752 __ bind(&done); | 4752 __ bind(&done); |
4753 } | 4753 } |
4754 | 4754 |
4755 | 4755 |
4756 #undef __ | 4756 #undef __ |
4757 | 4757 |
4758 } } // namespace v8::internal | 4758 } } // namespace v8::internal |
4759 | 4759 |
4760 #endif // V8_TARGET_ARCH_X64 | 4760 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |