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 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "lithium-allocator-inl.h" | 9 #include "lithium-allocator-inl.h" |
10 #include "x64/lithium-x64.h" | 10 #include "x64/lithium-x64.h" |
(...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1928 } | 1928 } |
1929 | 1929 |
1930 | 1930 |
1931 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { | 1931 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { |
1932 LOperand* value = UseRegisterAtStart(instr->value()); | 1932 LOperand* value = UseRegisterAtStart(instr->value()); |
1933 return AssignEnvironment(new(zone()) LCheckValue(value)); | 1933 return AssignEnvironment(new(zone()) LCheckValue(value)); |
1934 } | 1934 } |
1935 | 1935 |
1936 | 1936 |
1937 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { | 1937 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
1938 LOperand* value = NULL; | 1938 if (instr->IsStabilityCheck()) return new(zone()) LCheckMaps; |
1939 if (!instr->CanOmitMapChecks()) { | 1939 LOperand* value = UseRegisterAtStart(instr->value()); |
1940 value = UseRegisterAtStart(instr->value()); | 1940 LInstruction* result = AssignEnvironment(new(zone()) LCheckMaps(value)); |
1941 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); | 1941 if (instr->HasMigrationTarget()) { |
1942 } | 1942 info()->MarkAsDeferredCalling(); |
1943 LInstruction* result = new(zone()) LCheckMaps(value); | 1943 result = AssignPointerMap(result); |
1944 if (!instr->CanOmitMapChecks()) { | |
1945 result = AssignEnvironment(result); | |
1946 if (instr->has_migration_target()) result = AssignPointerMap(result); | |
1947 } | 1944 } |
1948 return result; | 1945 return result; |
1949 } | 1946 } |
1950 | 1947 |
1951 | 1948 |
1952 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { | 1949 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { |
1953 HValue* value = instr->value(); | 1950 HValue* value = instr->value(); |
1954 Representation input_rep = value->representation(); | 1951 Representation input_rep = value->representation(); |
1955 LOperand* reg = UseRegister(value); | 1952 LOperand* reg = UseRegister(value); |
1956 if (input_rep.IsDouble()) { | 1953 if (input_rep.IsDouble()) { |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2588 LOperand* index = UseTempRegister(instr->index()); | 2585 LOperand* index = UseTempRegister(instr->index()); |
2589 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2586 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2590 LInstruction* result = DefineSameAsFirst(load); | 2587 LInstruction* result = DefineSameAsFirst(load); |
2591 return AssignPointerMap(result); | 2588 return AssignPointerMap(result); |
2592 } | 2589 } |
2593 | 2590 |
2594 | 2591 |
2595 } } // namespace v8::internal | 2592 } } // namespace v8::internal |
2596 | 2593 |
2597 #endif // V8_TARGET_ARCH_X64 | 2594 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |