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 4989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5000 DeoptimizeIf(not_equal, instr->environment()); | 5000 DeoptimizeIf(not_equal, instr->environment()); |
5001 __ bind(&use_cache); | 5001 __ bind(&use_cache); |
5002 } | 5002 } |
5003 | 5003 |
5004 | 5004 |
5005 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 5005 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
5006 Register map = ToRegister(instr->map()); | 5006 Register map = ToRegister(instr->map()); |
5007 Register result = ToRegister(instr->result()); | 5007 Register result = ToRegister(instr->result()); |
5008 __ LoadInstanceDescriptors(map, result); | 5008 __ LoadInstanceDescriptors(map, result); |
5009 __ movq(result, | 5009 __ movq(result, |
5010 FieldOperand(result, DescriptorArray::kLastAddedOffset)); | 5010 FieldOperand(result, DescriptorArray::kEnumCacheOffset)); |
5011 __ movq(result, | 5011 __ movq(result, |
5012 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); | 5012 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); |
5013 Condition cc = masm()->CheckSmi(result); | 5013 Condition cc = masm()->CheckSmi(result); |
5014 DeoptimizeIf(cc, instr->environment()); | 5014 DeoptimizeIf(cc, instr->environment()); |
5015 } | 5015 } |
5016 | 5016 |
5017 | 5017 |
5018 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { | 5018 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { |
5019 Register object = ToRegister(instr->value()); | 5019 Register object = ToRegister(instr->value()); |
5020 __ cmpq(ToRegister(instr->map()), | 5020 __ cmpq(ToRegister(instr->map()), |
(...skipping 26 matching lines...) Expand all Loading... |
5047 FixedArray::kHeaderSize - kPointerSize)); | 5047 FixedArray::kHeaderSize - kPointerSize)); |
5048 __ bind(&done); | 5048 __ bind(&done); |
5049 } | 5049 } |
5050 | 5050 |
5051 | 5051 |
5052 #undef __ | 5052 #undef __ |
5053 | 5053 |
5054 } } // namespace v8::internal | 5054 } } // namespace v8::internal |
5055 | 5055 |
5056 #endif // V8_TARGET_ARCH_X64 | 5056 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |