Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1498)

Side by Side Diff: src/mips/lithium-mips.cc

Issue 68793008: MIPS: Fixed crashes exposed though fuzzing. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 1819
1820 1820
1821 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1821 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1822 LOperand* string = UseRegisterAtStart(instr->string()); 1822 LOperand* string = UseRegisterAtStart(instr->string());
1823 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1823 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1824 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1824 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1825 } 1825 }
1826 1826
1827 1827
1828 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1828 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1829 LOperand* string = UseRegister(instr->string()); 1829 LOperand* string = UseRegisterAtStart(instr->string());
1830 LOperand* index = UseRegisterOrConstant(instr->index()); 1830 LOperand* index = FLAG_debug_code
1831 LOperand* value = UseRegister(instr->value()); 1831 ? UseRegisterAtStart(instr->index())
1832 return new(zone()) LSeqStringSetChar(string, index, value); 1832 : UseRegisterOrConstantAtStart(instr->index());
1833 LOperand* value = UseRegisterAtStart(instr->value());
1834 LOperand* context = FLAG_debug_code ? UseFixed(instr->context(), cp) : NULL;
1835 return new(zone()) LSeqStringSetChar(context, string, index, value);
1833 } 1836 }
1834 1837
1835 1838
1836 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1839 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1837 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1840 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
1838 LOperand* length = UseRegister(instr->length()); 1841 LOperand* length = UseRegister(instr->length());
1839 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1842 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1840 } 1843 }
1841 1844
1842 1845
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 2612
2610 2613
2611 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2614 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2612 LOperand* object = UseRegister(instr->object()); 2615 LOperand* object = UseRegister(instr->object());
2613 LOperand* index = UseRegister(instr->index()); 2616 LOperand* index = UseRegister(instr->index());
2614 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2617 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2615 } 2618 }
2616 2619
2617 2620
2618 } } // namespace v8::internal 2621 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698