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 "mips/lithium-mips.h" | 8 #include "mips/lithium-mips.h" |
9 #include "mips/lithium-codegen-mips.h" | 9 #include "mips/lithium-codegen-mips.h" |
10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1918 } | 1918 } |
1919 } | 1919 } |
1920 UNREACHABLE(); | 1920 UNREACHABLE(); |
1921 return NULL; | 1921 return NULL; |
1922 } | 1922 } |
1923 | 1923 |
1924 | 1924 |
1925 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { | 1925 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
1926 LOperand* value = UseRegisterAtStart(instr->value()); | 1926 LOperand* value = UseRegisterAtStart(instr->value()); |
1927 LInstruction* result = new(zone()) LCheckNonSmi(value); | 1927 LInstruction* result = new(zone()) LCheckNonSmi(value); |
1928 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); | 1928 if (!instr->value()->type().IsHeapObject()) { |
| 1929 result = AssignEnvironment(result); |
| 1930 } |
1929 return result; | 1931 return result; |
1930 } | 1932 } |
1931 | 1933 |
1932 | 1934 |
1933 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1935 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
1934 LOperand* value = UseRegisterAtStart(instr->value()); | 1936 LOperand* value = UseRegisterAtStart(instr->value()); |
1935 return AssignEnvironment(new(zone()) LCheckSmi(value)); | 1937 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
1936 } | 1938 } |
1937 | 1939 |
1938 | 1940 |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2534 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2536 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2535 LOperand* object = UseRegister(instr->object()); | 2537 LOperand* object = UseRegister(instr->object()); |
2536 LOperand* index = UseTempRegister(instr->index()); | 2538 LOperand* index = UseTempRegister(instr->index()); |
2537 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2539 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2538 LInstruction* result = DefineSameAsFirst(load); | 2540 LInstruction* result = DefineSameAsFirst(load); |
2539 return AssignPointerMap(result); | 2541 return AssignPointerMap(result); |
2540 } | 2542 } |
2541 | 2543 |
2542 | 2544 |
2543 } } // namespace v8::internal | 2545 } } // namespace v8::internal |
OLD | NEW |