| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 __ lhu(current_character(), MemOperand(t5, 0)); | 1237 __ lhu(current_character(), MemOperand(t5, 0)); |
| 1238 } | 1238 } |
| 1239 } | 1239 } |
| 1240 | 1240 |
| 1241 | 1241 |
| 1242 void RegExpCEntryStub::Generate(MacroAssembler* masm_) { | 1242 void RegExpCEntryStub::Generate(MacroAssembler* masm_) { |
| 1243 int stack_alignment = OS::ActivationFrameAlignment(); | 1243 int stack_alignment = OS::ActivationFrameAlignment(); |
| 1244 if (stack_alignment < kPointerSize) stack_alignment = kPointerSize; | 1244 if (stack_alignment < kPointerSize) stack_alignment = kPointerSize; |
| 1245 // Stack is already aligned for call, so decrement by alignment | 1245 // Stack is already aligned for call, so decrement by alignment |
| 1246 // to make room for storing the return address. | 1246 // to make room for storing the return address. |
| 1247 __ Subu(sp, sp, Operand(stack_alignment)); | 1247 __ Subu(sp, sp, Operand(stack_alignment + kCArgsSlotsSize)); |
| 1248 __ sw(ra, MemOperand(sp, 0)); | 1248 const int return_address_offset = kCArgsSlotsSize; |
| 1249 __ mov(a0, sp); | 1249 __ Addu(a0, sp, return_address_offset); |
| 1250 __ sw(ra, MemOperand(a0, 0)); |
| 1250 __ mov(t9, t1); | 1251 __ mov(t9, t1); |
| 1251 __ Call(t9); | 1252 __ Call(t9); |
| 1252 __ lw(ra, MemOperand(sp, 0)); | 1253 __ lw(ra, MemOperand(sp, return_address_offset)); |
| 1253 __ Addu(sp, sp, Operand(stack_alignment)); | 1254 __ Addu(sp, sp, Operand(stack_alignment + kCArgsSlotsSize)); |
| 1254 __ Jump(ra); | 1255 __ Jump(ra); |
| 1255 } | 1256 } |
| 1256 | 1257 |
| 1257 | 1258 |
| 1258 #undef __ | 1259 #undef __ |
| 1259 | 1260 |
| 1260 #endif // V8_INTERPRETED_REGEXP | 1261 #endif // V8_INTERPRETED_REGEXP |
| 1261 | 1262 |
| 1262 }} // namespace v8::internal | 1263 }} // namespace v8::internal |
| 1263 | 1264 |
| 1264 #endif // V8_TARGET_ARCH_MIPS | 1265 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |