OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 return NULL; | 1912 return NULL; |
1913 } | 1913 } |
1914 | 1914 |
1915 | 1915 |
1916 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { | 1916 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
1917 LOperand* value = UseRegisterAtStart(instr->value()); | 1917 LOperand* value = UseRegisterAtStart(instr->value()); |
1918 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); | 1918 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); |
1919 } | 1919 } |
1920 | 1920 |
1921 | 1921 |
| 1922 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
| 1923 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1924 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
| 1925 } |
| 1926 |
| 1927 |
| 1928 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) { |
| 1929 return new(zone()) |
| 1930 LIsNumberAndBranch(UseRegisterOrConstantAtStart(instr->value())); |
| 1931 } |
| 1932 |
| 1933 |
1922 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1934 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
1923 LOperand* value = UseRegisterAtStart(instr->value()); | 1935 LOperand* value = UseRegisterAtStart(instr->value()); |
1924 LInstruction* result = new(zone()) LCheckInstanceType(value); | 1936 LInstruction* result = new(zone()) LCheckInstanceType(value); |
1925 return AssignEnvironment(result); | 1937 return AssignEnvironment(result); |
1926 } | 1938 } |
1927 | 1939 |
1928 | 1940 |
1929 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 1941 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
1930 LUnallocated* temp1 = TempRegister(); | 1942 LUnallocated* temp1 = TempRegister(); |
1931 LOperand* temp2 = TempRegister(); | 1943 LOperand* temp2 = TempRegister(); |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2551 | 2563 |
2552 | 2564 |
2553 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2554 LOperand* object = UseRegister(instr->object()); | 2566 LOperand* object = UseRegister(instr->object()); |
2555 LOperand* index = UseRegister(instr->index()); | 2567 LOperand* index = UseRegister(instr->index()); |
2556 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2568 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2557 } | 2569 } |
2558 | 2570 |
2559 | 2571 |
2560 } } // namespace v8::internal | 2572 } } // namespace v8::internal |
OLD | NEW |