| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 __ cmp(r0, r1); | 411 __ cmp(r0, r1); |
| 412 __ b(lt, &loop); | 412 __ b(lt, &loop); |
| 413 | 413 |
| 414 // Move current character position to position after match. | 414 // Move current character position to position after match. |
| 415 __ sub(current_input_offset(), r2, end_of_input_address()); | 415 __ sub(current_input_offset(), r2, end_of_input_address()); |
| 416 __ bind(&fallthrough); | 416 __ bind(&fallthrough); |
| 417 } | 417 } |
| 418 | 418 |
| 419 | 419 |
| 420 void RegExpMacroAssemblerARM::CheckNotRegistersEqual(int reg1, | 420 void RegExpMacroAssemblerARM::CheckNotRegistersEqual(int reg1, |
| 421 int reg2, | 421 int reg2, |
| 422 Label* on_not_equal) { | 422 Label* on_not_equal) { |
| 423 __ ldr(r0, register_location(reg1)); | 423 __ ldr(r0, register_location(reg1)); |
| 424 __ ldr(r1, register_location(reg2)); | 424 __ ldr(r1, register_location(reg2)); |
| 425 __ cmp(r0, r1); | 425 __ cmp(r0, r1); |
| 426 BranchOrBacktrack(ne, on_not_equal); | 426 BranchOrBacktrack(ne, on_not_equal); |
| 427 } | 427 } |
| 428 | 428 |
| 429 | 429 |
| 430 void RegExpMacroAssemblerARM::CheckNotCharacter(uint32_t c, | 430 void RegExpMacroAssemblerARM::CheckNotCharacter(unsigned c, |
| 431 Label* on_not_equal) { | 431 Label* on_not_equal) { |
| 432 __ cmp(current_character(), Operand(c)); | 432 __ cmp(current_character(), Operand(c)); |
| 433 BranchOrBacktrack(ne, on_not_equal); | 433 BranchOrBacktrack(ne, on_not_equal); |
| 434 } | 434 } |
| 435 | 435 |
| 436 | 436 |
| 437 void RegExpMacroAssemblerARM::CheckCharacterAfterAnd(uint32_t c, | 437 void RegExpMacroAssemblerARM::CheckCharacterAfterAnd(uint32_t c, |
| 438 uint32_t mask, | 438 uint32_t mask, |
| 439 Label* on_equal) { | 439 Label* on_equal) { |
| 440 __ and_(r0, current_character(), Operand(mask)); | 440 __ and_(r0, current_character(), Operand(mask)); |
| 441 __ cmp(r0, Operand(c)); | 441 __ cmp(r0, Operand(c)); |
| 442 BranchOrBacktrack(eq, on_equal); | 442 BranchOrBacktrack(eq, on_equal); |
| 443 } | 443 } |
| 444 | 444 |
| 445 | 445 |
| 446 void RegExpMacroAssemblerARM::CheckNotCharacterAfterAnd(uint32_t c, | 446 void RegExpMacroAssemblerARM::CheckNotCharacterAfterAnd(unsigned c, |
| 447 uint32_t mask, | 447 unsigned mask, |
| 448 Label* on_not_equal) { | 448 Label* on_not_equal) { |
| 449 __ and_(r0, current_character(), Operand(mask)); | 449 __ and_(r0, current_character(), Operand(mask)); |
| 450 __ cmp(r0, Operand(c)); | 450 __ cmp(r0, Operand(c)); |
| 451 BranchOrBacktrack(ne, on_not_equal); | 451 BranchOrBacktrack(ne, on_not_equal); |
| 452 } | 452 } |
| 453 | 453 |
| 454 | 454 |
| 455 void RegExpMacroAssemblerARM::CheckNotCharacterAfterMinusAnd( | 455 void RegExpMacroAssemblerARM::CheckNotCharacterAfterMinusAnd( |
| 456 uc16 c, | 456 uc16 c, |
| 457 uc16 minus, | 457 uc16 minus, |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1265 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
| 1266 } | 1266 } |
| 1267 | 1267 |
| 1268 #undef __ | 1268 #undef __ |
| 1269 | 1269 |
| 1270 #endif // V8_INTERPRETED_REGEXP | 1270 #endif // V8_INTERPRETED_REGEXP |
| 1271 | 1271 |
| 1272 }} // namespace v8::internal | 1272 }} // namespace v8::internal |
| 1273 | 1273 |
| 1274 #endif // V8_TARGET_ARCH_ARM | 1274 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |