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/mips64/lithium-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-mips64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 new(zone()) LArgumentsLength(UseRegister(length->value()))); | 932 new(zone()) LArgumentsLength(UseRegister(length->value()))); |
933 } | 933 } |
934 | 934 |
935 | 935 |
936 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { | 936 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { |
937 info()->MarkAsRequiresFrame(); | 937 info()->MarkAsRequiresFrame(); |
938 return DefineAsRegister(new(zone()) LArgumentsElements); | 938 return DefineAsRegister(new(zone()) LArgumentsElements); |
939 } | 939 } |
940 | 940 |
941 | 941 |
942 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { | |
943 LOperand* left = | |
944 UseFixed(instr->left(), InstanceOfDescriptor::LeftRegister()); | |
945 LOperand* right = | |
946 UseFixed(instr->right(), InstanceOfDescriptor::RightRegister()); | |
947 LOperand* context = UseFixed(instr->context(), cp); | |
948 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right); | |
949 return MarkAsCall(DefineFixed(result, v0), instr); | |
950 } | |
951 | |
952 | |
953 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( | 942 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( |
954 HHasInPrototypeChainAndBranch* instr) { | 943 HHasInPrototypeChainAndBranch* instr) { |
955 LOperand* object = UseRegister(instr->object()); | 944 LOperand* object = UseRegister(instr->object()); |
956 LOperand* prototype = UseRegister(instr->prototype()); | 945 LOperand* prototype = UseRegister(instr->prototype()); |
957 LHasInPrototypeChainAndBranch* result = | 946 LHasInPrototypeChainAndBranch* result = |
958 new (zone()) LHasInPrototypeChainAndBranch(object, prototype); | 947 new (zone()) LHasInPrototypeChainAndBranch(object, prototype); |
959 return AssignEnvironment(result); | 948 return AssignEnvironment(result); |
960 } | 949 } |
961 | 950 |
962 | 951 |
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2482 LOperand* index = UseTempRegister(instr->index()); | 2471 LOperand* index = UseTempRegister(instr->index()); |
2483 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2472 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2484 LInstruction* result = DefineSameAsFirst(load); | 2473 LInstruction* result = DefineSameAsFirst(load); |
2485 return AssignPointerMap(result); | 2474 return AssignPointerMap(result); |
2486 } | 2475 } |
2487 | 2476 |
2488 } // namespace internal | 2477 } // namespace internal |
2489 } // namespace v8 | 2478 } // namespace v8 |
2490 | 2479 |
2491 #endif // V8_TARGET_ARCH_MIPS64 | 2480 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |