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

Side by Side Diff: src/arm/simulator-arm.cc

Issue 552186: ARM: Implement native substring copying. (Closed)
Patch Set: Changed order of tests to bail out earlier on short substrings. Created 10 years, 10 months 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 default: { 1778 default: {
1779 UNREACHABLE(); 1779 UNREACHABLE();
1780 break; 1780 break;
1781 } 1781 }
1782 } 1782 }
1783 if (instr->HasB()) { 1783 if (instr->HasB()) {
1784 if (instr->HasL()) { 1784 if (instr->HasL()) {
1785 uint8_t byte = ReadB(addr); 1785 uint8_t byte = ReadB(addr);
1786 set_register(rd, byte); 1786 set_register(rd, byte);
1787 } else { 1787 } else {
1788 UNIMPLEMENTED(); 1788 uint8_t byte = get_register(rd);
1789 WriteB(addr, byte);
1789 } 1790 }
1790 } else { 1791 } else {
1791 if (instr->HasL()) { 1792 if (instr->HasL()) {
1792 set_register(rd, ReadW(addr, instr)); 1793 set_register(rd, ReadW(addr, instr));
1793 } else { 1794 } else {
1794 WriteW(addr, get_register(rd), instr); 1795 WriteW(addr, get_register(rd), instr);
1795 } 1796 }
1796 } 1797 }
1797 } 1798 }
1798 1799
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp); 2287 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp);
2287 uintptr_t address = *stack_slot; 2288 uintptr_t address = *stack_slot;
2288 set_register(sp, current_sp + sizeof(uintptr_t)); 2289 set_register(sp, current_sp + sizeof(uintptr_t));
2289 return address; 2290 return address;
2290 } 2291 }
2291 2292
2292 2293
2293 } } // namespace assembler::arm 2294 } } // namespace assembler::arm
2294 2295
2295 #endif // !defined(__arm__) 2296 #endif // !defined(__arm__)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698