| 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/ia32/lithium-ia32.h" | 5 #include "src/crankshaft/ia32/lithium-ia32.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 | 10 |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 return DefineAsRegister(new(zone()) LArgumentsLength(Use(length->value()))); | 959 return DefineAsRegister(new(zone()) LArgumentsLength(Use(length->value()))); |
| 960 } | 960 } |
| 961 | 961 |
| 962 | 962 |
| 963 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { | 963 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { |
| 964 info()->MarkAsRequiresFrame(); | 964 info()->MarkAsRequiresFrame(); |
| 965 return DefineAsRegister(new(zone()) LArgumentsElements); | 965 return DefineAsRegister(new(zone()) LArgumentsElements); |
| 966 } | 966 } |
| 967 | 967 |
| 968 | 968 |
| 969 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { | |
| 970 LOperand* left = | |
| 971 UseFixed(instr->left(), InstanceOfDescriptor::LeftRegister()); | |
| 972 LOperand* right = | |
| 973 UseFixed(instr->right(), InstanceOfDescriptor::RightRegister()); | |
| 974 LOperand* context = UseFixed(instr->context(), esi); | |
| 975 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right); | |
| 976 return MarkAsCall(DefineFixed(result, eax), instr); | |
| 977 } | |
| 978 | |
| 979 | |
| 980 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( | 969 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( |
| 981 HHasInPrototypeChainAndBranch* instr) { | 970 HHasInPrototypeChainAndBranch* instr) { |
| 982 LOperand* object = UseRegister(instr->object()); | 971 LOperand* object = UseRegister(instr->object()); |
| 983 LOperand* prototype = UseRegister(instr->prototype()); | 972 LOperand* prototype = UseRegister(instr->prototype()); |
| 984 LOperand* temp = TempRegister(); | 973 LOperand* temp = TempRegister(); |
| 985 LHasInPrototypeChainAndBranch* result = | 974 LHasInPrototypeChainAndBranch* result = |
| 986 new (zone()) LHasInPrototypeChainAndBranch(object, prototype, temp); | 975 new (zone()) LHasInPrototypeChainAndBranch(object, prototype, temp); |
| 987 return AssignEnvironment(result); | 976 return AssignEnvironment(result); |
| 988 } | 977 } |
| 989 | 978 |
| (...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2594 LOperand* index = UseTempRegister(instr->index()); | 2583 LOperand* index = UseTempRegister(instr->index()); |
| 2595 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2584 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2596 LInstruction* result = DefineSameAsFirst(load); | 2585 LInstruction* result = DefineSameAsFirst(load); |
| 2597 return AssignPointerMap(result); | 2586 return AssignPointerMap(result); |
| 2598 } | 2587 } |
| 2599 | 2588 |
| 2600 } // namespace internal | 2589 } // namespace internal |
| 2601 } // namespace v8 | 2590 } // namespace v8 |
| 2602 | 2591 |
| 2603 #endif // V8_TARGET_ARCH_IA32 | 2592 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |