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

Side by Side Diff: src/mips/regexp-macro-assembler-mips.cc

Issue 11167004: Fix MIPS build broken by r12735 'Allow unaligned accesses for ARMv7'. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/regexp-macro-assembler-mips.h ('k') | no next file » | 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 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 } 1096 }
1097 1097
1098 1098
1099 void RegExpMacroAssemblerMIPS::WriteStackPointerToRegister(int reg) { 1099 void RegExpMacroAssemblerMIPS::WriteStackPointerToRegister(int reg) {
1100 __ lw(a1, MemOperand(frame_pointer(), kStackHighEnd)); 1100 __ lw(a1, MemOperand(frame_pointer(), kStackHighEnd));
1101 __ Subu(a0, backtrack_stackpointer(), a1); 1101 __ Subu(a0, backtrack_stackpointer(), a1);
1102 __ sw(a0, register_location(reg)); 1102 __ sw(a0, register_location(reg));
1103 } 1103 }
1104 1104
1105 1105
1106 bool RegExpMacroAssemblerMIPS::CanReadUnaligned() {
1107 return false;
1108 }
1109
1110
1106 // Private methods: 1111 // Private methods:
1107 1112
1108 void RegExpMacroAssemblerMIPS::CallCheckStackGuardState(Register scratch) { 1113 void RegExpMacroAssemblerMIPS::CallCheckStackGuardState(Register scratch) {
1109 static const int num_arguments = 3; 1114 static const int num_arguments = 3;
1110 __ PrepareCallCFunction(num_arguments, scratch); 1115 __ PrepareCallCFunction(num_arguments, scratch);
1111 __ mov(a2, frame_pointer()); 1116 __ mov(a2, frame_pointer());
1112 // Code* of self. 1117 // Code* of self.
1113 __ li(a1, Operand(masm_->CodeObject()), CONSTANT_SIZE); 1118 __ li(a1, Operand(masm_->CodeObject()), CONSTANT_SIZE);
1114 // a0 becomes return address pointer. 1119 // a0 becomes return address pointer.
1115 ExternalReference stack_guard_check = 1120 ExternalReference stack_guard_check =
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 } 1378 }
1374 1379
1375 1380
1376 #undef __ 1381 #undef __
1377 1382
1378 #endif // V8_INTERPRETED_REGEXP 1383 #endif // V8_INTERPRETED_REGEXP
1379 1384
1380 }} // namespace v8::internal 1385 }} // namespace v8::internal
1381 1386
1382 #endif // V8_TARGET_ARCH_MIPS 1387 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/regexp-macro-assembler-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698