| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" | 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" |
| 7 | 7 |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2530 | 2530 |
| 2531 void LCodeGen::DoCmpMapAndBranch(LCmpMapAndBranch* instr) { | 2531 void LCodeGen::DoCmpMapAndBranch(LCmpMapAndBranch* instr) { |
| 2532 Register reg = ToRegister(instr->value()); | 2532 Register reg = ToRegister(instr->value()); |
| 2533 Register temp = ToRegister(instr->temp()); | 2533 Register temp = ToRegister(instr->temp()); |
| 2534 | 2534 |
| 2535 __ mov(temp, Operand(instr->map())); | 2535 __ mov(temp, Operand(instr->map())); |
| 2536 __ CmpP(temp, FieldMemOperand(reg, HeapObject::kMapOffset)); | 2536 __ CmpP(temp, FieldMemOperand(reg, HeapObject::kMapOffset)); |
| 2537 EmitBranch(instr, eq); | 2537 EmitBranch(instr, eq); |
| 2538 } | 2538 } |
| 2539 | 2539 |
| 2540 void LCodeGen::DoInstanceOf(LInstanceOf* instr) { | |
| 2541 DCHECK(ToRegister(instr->context()).is(cp)); | |
| 2542 DCHECK(ToRegister(instr->left()).is(InstanceOfDescriptor::LeftRegister())); | |
| 2543 DCHECK(ToRegister(instr->right()).is(InstanceOfDescriptor::RightRegister())); | |
| 2544 DCHECK(ToRegister(instr->result()).is(r2)); | |
| 2545 InstanceOfStub stub(isolate()); | |
| 2546 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 2547 } | |
| 2548 | |
| 2549 void LCodeGen::DoHasInPrototypeChainAndBranch( | 2540 void LCodeGen::DoHasInPrototypeChainAndBranch( |
| 2550 LHasInPrototypeChainAndBranch* instr) { | 2541 LHasInPrototypeChainAndBranch* instr) { |
| 2551 Register const object = ToRegister(instr->object()); | 2542 Register const object = ToRegister(instr->object()); |
| 2552 Register const object_map = scratch0(); | 2543 Register const object_map = scratch0(); |
| 2553 Register const object_instance_type = ip; | 2544 Register const object_instance_type = ip; |
| 2554 Register const object_prototype = object_map; | 2545 Register const object_prototype = object_map; |
| 2555 Register const prototype = ToRegister(instr->prototype()); | 2546 Register const prototype = ToRegister(instr->prototype()); |
| 2556 | 2547 |
| 2557 // The {object} must be a spec object. It's sufficient to know that {object} | 2548 // The {object} must be a spec object. It's sufficient to know that {object} |
| 2558 // is not a smi, since all other non-spec objects have {null} prototypes and | 2549 // is not a smi, since all other non-spec objects have {null} prototypes and |
| (...skipping 3153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5712 __ LoadP(result, | 5703 __ LoadP(result, |
| 5713 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5704 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
| 5714 __ bind(deferred->exit()); | 5705 __ bind(deferred->exit()); |
| 5715 __ bind(&done); | 5706 __ bind(&done); |
| 5716 } | 5707 } |
| 5717 | 5708 |
| 5718 #undef __ | 5709 #undef __ |
| 5719 | 5710 |
| 5720 } // namespace internal | 5711 } // namespace internal |
| 5721 } // namespace v8 | 5712 } // namespace v8 |
| OLD | NEW |