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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "lithium-allocator-inl.h" | 7 #include "lithium-allocator-inl.h" |
8 #include "arm/lithium-arm.h" | 8 #include "arm/lithium-arm.h" |
9 #include "arm/lithium-codegen-arm.h" | 9 #include "arm/lithium-codegen-arm.h" |
10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1969 } | 1969 } |
1970 | 1970 |
1971 | 1971 |
1972 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { | 1972 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { |
1973 LOperand* value = UseRegisterAtStart(instr->value()); | 1973 LOperand* value = UseRegisterAtStart(instr->value()); |
1974 return AssignEnvironment(new(zone()) LCheckValue(value)); | 1974 return AssignEnvironment(new(zone()) LCheckValue(value)); |
1975 } | 1975 } |
1976 | 1976 |
1977 | 1977 |
1978 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { | 1978 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
1979 LOperand* value = NULL; | 1979 if (instr->IsStabilityCheck()) return new(zone()) LCheckMaps; |
1980 if (!instr->CanOmitMapChecks()) { | 1980 LOperand* value = UseRegisterAtStart(instr->value()); |
1981 value = UseRegisterAtStart(instr->value()); | 1981 LInstruction* result = AssignEnvironment(new(zone()) LCheckMaps(value)); |
1982 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); | 1982 if (instr->HasMigrationTarget()) { |
1983 } | 1983 info()->MarkAsDeferredCalling(); |
1984 LInstruction* result = new(zone()) LCheckMaps(value); | 1984 result = AssignPointerMap(result); |
1985 if (!instr->CanOmitMapChecks()) { | |
1986 result = AssignEnvironment(result); | |
1987 if (instr->has_migration_target()) result = AssignPointerMap(result); | |
1988 } | 1985 } |
1989 return result; | 1986 return result; |
1990 } | 1987 } |
1991 | 1988 |
1992 | 1989 |
1993 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { | 1990 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { |
1994 HValue* value = instr->value(); | 1991 HValue* value = instr->value(); |
1995 Representation input_rep = value->representation(); | 1992 Representation input_rep = value->representation(); |
1996 LOperand* reg = UseRegister(value); | 1993 LOperand* reg = UseRegister(value); |
1997 if (input_rep.IsDouble()) { | 1994 if (input_rep.IsDouble()) { |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2559 | 2556 |
2560 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2557 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2561 LOperand* object = UseRegister(instr->object()); | 2558 LOperand* object = UseRegister(instr->object()); |
2562 LOperand* index = UseRegister(instr->index()); | 2559 LOperand* index = UseRegister(instr->index()); |
2563 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2560 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2564 LInstruction* result = DefineSameAsFirst(load); | 2561 LInstruction* result = DefineSameAsFirst(load); |
2565 return AssignPointerMap(result); | 2562 return AssignPointerMap(result); |
2566 } | 2563 } |
2567 | 2564 |
2568 } } // namespace v8::internal | 2565 } } // namespace v8::internal |
OLD | NEW |