OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 5578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5589 GenerateOsrPrologue(); | 5589 GenerateOsrPrologue(); |
5590 } | 5590 } |
5591 | 5591 |
5592 | 5592 |
5593 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { | 5593 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
5594 Register result = ToRegister(instr->result()); | 5594 Register result = ToRegister(instr->result()); |
5595 Register object = ToRegister(instr->object()); | 5595 Register object = ToRegister(instr->object()); |
5596 __ And(at, object, kSmiTagMask); | 5596 __ And(at, object, kSmiTagMask); |
5597 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg)); | 5597 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg)); |
5598 | 5598 |
5599 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); | 5599 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
5600 __ GetObjectType(object, a1, a1); | 5600 __ GetObjectType(object, a1, a1); |
5601 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject, a1, | 5601 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject, a1, |
5602 Operand(LAST_JS_PROXY_TYPE)); | 5602 Operand(JS_PROXY_TYPE)); |
5603 | 5603 |
5604 Label use_cache, call_runtime; | 5604 Label use_cache, call_runtime; |
5605 DCHECK(object.is(a0)); | 5605 DCHECK(object.is(a0)); |
5606 Register null_value = t1; | 5606 Register null_value = t1; |
5607 __ LoadRoot(null_value, Heap::kNullValueRootIndex); | 5607 __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
5608 __ CheckEnumCache(null_value, &call_runtime); | 5608 __ CheckEnumCache(null_value, &call_runtime); |
5609 | 5609 |
5610 __ lw(result, FieldMemOperand(object, HeapObject::kMapOffset)); | 5610 __ lw(result, FieldMemOperand(object, HeapObject::kMapOffset)); |
5611 __ Branch(&use_cache); | 5611 __ Branch(&use_cache); |
5612 | 5612 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5739 __ Push(at, ToRegister(instr->function())); | 5739 __ Push(at, ToRegister(instr->function())); |
5740 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5740 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5741 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5741 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5742 } | 5742 } |
5743 | 5743 |
5744 | 5744 |
5745 #undef __ | 5745 #undef __ |
5746 | 5746 |
5747 } // namespace internal | 5747 } // namespace internal |
5748 } // namespace v8 | 5748 } // namespace v8 |
OLD | NEW |