| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
| 10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 return DefineAsRegister(new(zone()) LArgumentsLength(value)); | 927 return DefineAsRegister(new(zone()) LArgumentsLength(value)); |
| 928 } | 928 } |
| 929 | 929 |
| 930 | 930 |
| 931 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { | 931 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { |
| 932 info()->MarkAsRequiresFrame(); | 932 info()->MarkAsRequiresFrame(); |
| 933 return DefineAsRegister(new(zone()) LArgumentsElements); | 933 return DefineAsRegister(new(zone()) LArgumentsElements); |
| 934 } | 934 } |
| 935 | 935 |
| 936 | 936 |
| 937 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { | |
| 938 LOperand* left = | |
| 939 UseFixed(instr->left(), InstanceOfDescriptor::LeftRegister()); | |
| 940 LOperand* right = | |
| 941 UseFixed(instr->right(), InstanceOfDescriptor::RightRegister()); | |
| 942 LOperand* context = UseFixed(instr->context(), cp); | |
| 943 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right); | |
| 944 return MarkAsCall(DefineFixed(result, r0), instr); | |
| 945 } | |
| 946 | |
| 947 | |
| 948 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( | 937 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( |
| 949 HHasInPrototypeChainAndBranch* instr) { | 938 HHasInPrototypeChainAndBranch* instr) { |
| 950 LOperand* object = UseRegister(instr->object()); | 939 LOperand* object = UseRegister(instr->object()); |
| 951 LOperand* prototype = UseRegister(instr->prototype()); | 940 LOperand* prototype = UseRegister(instr->prototype()); |
| 952 LHasInPrototypeChainAndBranch* result = | 941 LHasInPrototypeChainAndBranch* result = |
| 953 new (zone()) LHasInPrototypeChainAndBranch(object, prototype); | 942 new (zone()) LHasInPrototypeChainAndBranch(object, prototype); |
| 954 return AssignEnvironment(result); | 943 return AssignEnvironment(result); |
| 955 } | 944 } |
| 956 | 945 |
| 957 | 946 |
| (...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2528 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2517 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2529 LOperand* object = UseRegister(instr->object()); | 2518 LOperand* object = UseRegister(instr->object()); |
| 2530 LOperand* index = UseTempRegister(instr->index()); | 2519 LOperand* index = UseTempRegister(instr->index()); |
| 2531 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2520 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2532 LInstruction* result = DefineSameAsFirst(load); | 2521 LInstruction* result = DefineSameAsFirst(load); |
| 2533 return AssignPointerMap(result); | 2522 return AssignPointerMap(result); |
| 2534 } | 2523 } |
| 2535 | 2524 |
| 2536 } // namespace internal | 2525 } // namespace internal |
| 2537 } // namespace v8 | 2526 } // namespace v8 |
| OLD | NEW |