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 5277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5288 DeoptimizeIf(not_equal, instr->environment()); | 5288 DeoptimizeIf(not_equal, instr->environment()); |
5289 __ bind(&use_cache); | 5289 __ bind(&use_cache); |
5290 } | 5290 } |
5291 | 5291 |
5292 | 5292 |
5293 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 5293 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
5294 Register map = ToRegister(instr->map()); | 5294 Register map = ToRegister(instr->map()); |
5295 Register result = ToRegister(instr->result()); | 5295 Register result = ToRegister(instr->result()); |
5296 __ LoadInstanceDescriptors(map, result); | 5296 __ LoadInstanceDescriptors(map, result); |
5297 __ mov(result, | 5297 __ mov(result, |
5298 FieldOperand(result, DescriptorArray::kLastAddedOffset)); | 5298 FieldOperand(result, DescriptorArray::kEnumCacheOffset)); |
5299 __ mov(result, | 5299 __ mov(result, |
5300 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); | 5300 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); |
5301 __ test(result, result); | 5301 __ test(result, result); |
5302 DeoptimizeIf(equal, instr->environment()); | 5302 DeoptimizeIf(equal, instr->environment()); |
5303 } | 5303 } |
5304 | 5304 |
5305 | 5305 |
5306 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { | 5306 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { |
5307 Register object = ToRegister(instr->value()); | 5307 Register object = ToRegister(instr->value()); |
5308 __ cmp(ToRegister(instr->map()), | 5308 __ cmp(ToRegister(instr->map()), |
(...skipping 25 matching lines...) Expand all Loading... |
5334 FixedArray::kHeaderSize - kPointerSize)); | 5334 FixedArray::kHeaderSize - kPointerSize)); |
5335 __ bind(&done); | 5335 __ bind(&done); |
5336 } | 5336 } |
5337 | 5337 |
5338 | 5338 |
5339 #undef __ | 5339 #undef __ |
5340 | 5340 |
5341 } } // namespace v8::internal | 5341 } } // namespace v8::internal |
5342 | 5342 |
5343 #endif // V8_TARGET_ARCH_IA32 | 5343 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |