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 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1927 } | 1927 } |
1928 | 1928 |
1929 | 1929 |
1930 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1930 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
1931 LOperand* value = UseRegisterAtStart(instr->value()); | 1931 LOperand* value = UseRegisterAtStart(instr->value()); |
1932 LInstruction* result = new(zone()) LCheckInstanceType(value); | 1932 LInstruction* result = new(zone()) LCheckInstanceType(value); |
1933 return AssignEnvironment(result); | 1933 return AssignEnvironment(result); |
1934 } | 1934 } |
1935 | 1935 |
1936 | 1936 |
1937 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 1937 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { |
1938 LOperand* value = UseRegisterAtStart(instr->value()); | 1938 LOperand* value = UseRegisterAtStart(instr->value()); |
1939 return AssignEnvironment(new(zone()) LCheckFunction(value)); | 1939 return AssignEnvironment(new(zone()) LCheckValue(value)); |
1940 } | 1940 } |
1941 | 1941 |
1942 | 1942 |
1943 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { | 1943 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
1944 LOperand* value = NULL; | 1944 LOperand* value = NULL; |
1945 if (!instr->CanOmitMapChecks()) { | 1945 if (!instr->CanOmitMapChecks()) { |
1946 value = UseRegisterAtStart(instr->value()); | 1946 value = UseRegisterAtStart(instr->value()); |
1947 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); | 1947 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); |
1948 } | 1948 } |
1949 LCheckMaps* result = new(zone()) LCheckMaps(value); | 1949 LCheckMaps* result = new(zone()) LCheckMaps(value); |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2499 | 2499 |
2500 | 2500 |
2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2502 LOperand* object = UseRegister(instr->object()); | 2502 LOperand* object = UseRegister(instr->object()); |
2503 LOperand* index = UseRegister(instr->index()); | 2503 LOperand* index = UseRegister(instr->index()); |
2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2505 } | 2505 } |
2506 | 2506 |
2507 | 2507 |
2508 } } // namespace v8::internal | 2508 } } // namespace v8::internal |
OLD | NEW |