OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/crankshaft/arm64/lithium-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-arm64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 LOperand* context = UseFixed(instr->context(), cp); | 1550 LOperand* context = UseFixed(instr->context(), cp); |
1551 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right); | 1551 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right); |
1552 return MarkAsCall(DefineFixed(result, x0), instr); | 1552 return MarkAsCall(DefineFixed(result, x0), instr); |
1553 } | 1553 } |
1554 | 1554 |
1555 | 1555 |
1556 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( | 1556 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( |
1557 HHasInPrototypeChainAndBranch* instr) { | 1557 HHasInPrototypeChainAndBranch* instr) { |
1558 LOperand* object = UseRegister(instr->object()); | 1558 LOperand* object = UseRegister(instr->object()); |
1559 LOperand* prototype = UseRegister(instr->prototype()); | 1559 LOperand* prototype = UseRegister(instr->prototype()); |
1560 LOperand* scratch = TempRegister(); | 1560 LOperand* scratch1 = TempRegister(); |
1561 return new (zone()) LHasInPrototypeChainAndBranch(object, prototype, scratch); | 1561 LOperand* scratch2 = TempRegister(); |
| 1562 LHasInPrototypeChainAndBranch* result = new (zone()) |
| 1563 LHasInPrototypeChainAndBranch(object, prototype, scratch1, scratch2); |
| 1564 return AssignEnvironment(result); |
1562 } | 1565 } |
1563 | 1566 |
1564 | 1567 |
1565 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1568 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
1566 LOperand* context = UseFixed(instr->context(), cp); | 1569 LOperand* context = UseFixed(instr->context(), cp); |
1567 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. | 1570 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. |
1568 LOperand* function = UseFixed(instr->function(), x1); | 1571 LOperand* function = UseFixed(instr->function(), x1); |
1569 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1572 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
1570 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1573 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
1571 } | 1574 } |
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2725 LOperand* context = UseFixed(instr->context(), cp); | 2728 LOperand* context = UseFixed(instr->context(), cp); |
2726 LOperand* function = UseRegisterAtStart(instr->function()); | 2729 LOperand* function = UseRegisterAtStart(instr->function()); |
2727 LAllocateBlockContext* result = | 2730 LAllocateBlockContext* result = |
2728 new(zone()) LAllocateBlockContext(context, function); | 2731 new(zone()) LAllocateBlockContext(context, function); |
2729 return MarkAsCall(DefineFixed(result, cp), instr); | 2732 return MarkAsCall(DefineFixed(result, cp), instr); |
2730 } | 2733 } |
2731 | 2734 |
2732 | 2735 |
2733 } // namespace internal | 2736 } // namespace internal |
2734 } // namespace v8 | 2737 } // namespace v8 |
OLD | NEW |