| 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 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1919 } | 1919 } |
| 1920 | 1920 |
| 1921 | 1921 |
| 1922 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1922 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
| 1923 LOperand* value = UseRegisterAtStart(instr->value()); | 1923 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1924 LInstruction* result = new(zone()) LCheckInstanceType(value); | 1924 LInstruction* result = new(zone()) LCheckInstanceType(value); |
| 1925 return AssignEnvironment(result); | 1925 return AssignEnvironment(result); |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 | 1928 |
| 1929 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | |
| 1930 LUnallocated* temp1 = NULL; | |
| 1931 LOperand* temp2 = NULL; | |
| 1932 if (!instr->CanOmitPrototypeChecks()) { | |
| 1933 temp1 = TempRegister(); | |
| 1934 temp2 = TempRegister(); | |
| 1935 } | |
| 1936 LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2); | |
| 1937 if (instr->CanOmitPrototypeChecks()) return result; | |
| 1938 return AssignEnvironment(result); | |
| 1939 } | |
| 1940 | |
| 1941 | |
| 1942 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 1929 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { |
| 1943 LOperand* value = UseRegisterAtStart(instr->value()); | 1930 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1944 return AssignEnvironment(new(zone()) LCheckFunction(value)); | 1931 return AssignEnvironment(new(zone()) LCheckFunction(value)); |
| 1945 } | 1932 } |
| 1946 | 1933 |
| 1947 | 1934 |
| 1948 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { | 1935 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
| 1949 LOperand* value = NULL; | 1936 LOperand* value = NULL; |
| 1950 if (!instr->CanOmitMapChecks()) value = UseRegisterAtStart(instr->value()); | 1937 if (!instr->CanOmitMapChecks()) value = UseRegisterAtStart(instr->value()); |
| 1951 LInstruction* result = new(zone()) LCheckMaps(value); | 1938 LInstruction* result = new(zone()) LCheckMaps(value); |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2520 | 2507 |
| 2521 | 2508 |
| 2522 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2509 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2523 LOperand* object = UseRegister(instr->object()); | 2510 LOperand* object = UseRegister(instr->object()); |
| 2524 LOperand* index = UseRegister(instr->index()); | 2511 LOperand* index = UseRegister(instr->index()); |
| 2525 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2512 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2526 } | 2513 } |
| 2527 | 2514 |
| 2528 | 2515 |
| 2529 } } // namespace v8::internal | 2516 } } // namespace v8::internal |
| OLD | NEW |