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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 BranchOrBacktrack(ne, on_no_match); | 425 BranchOrBacktrack(ne, on_no_match); |
426 __ cmp(r0, r1); | 426 __ cmp(r0, r1); |
427 __ b(lt, &loop); | 427 __ b(lt, &loop); |
428 | 428 |
429 // Move current character position to position after match. | 429 // Move current character position to position after match. |
430 __ sub(current_input_offset(), r2, end_of_input_address()); | 430 __ sub(current_input_offset(), r2, end_of_input_address()); |
431 __ bind(&fallthrough); | 431 __ bind(&fallthrough); |
432 } | 432 } |
433 | 433 |
434 | 434 |
435 void RegExpMacroAssemblerARM::CheckNotRegistersEqual(int reg1, | |
436 int reg2, | |
437 Label* on_not_equal) { | |
438 __ ldr(r0, register_location(reg1)); | |
439 __ ldr(r1, register_location(reg2)); | |
440 __ cmp(r0, r1); | |
441 BranchOrBacktrack(ne, on_not_equal); | |
442 } | |
443 | |
444 | |
445 void RegExpMacroAssemblerARM::CheckNotCharacter(unsigned c, | 435 void RegExpMacroAssemblerARM::CheckNotCharacter(unsigned c, |
446 Label* on_not_equal) { | 436 Label* on_not_equal) { |
447 __ cmp(current_character(), Operand(c)); | 437 __ cmp(current_character(), Operand(c)); |
448 BranchOrBacktrack(ne, on_not_equal); | 438 BranchOrBacktrack(ne, on_not_equal); |
449 } | 439 } |
450 | 440 |
451 | 441 |
452 void RegExpMacroAssemblerARM::CheckCharacterAfterAnd(uint32_t c, | 442 void RegExpMacroAssemblerARM::CheckCharacterAfterAnd(uint32_t c, |
453 uint32_t mask, | 443 uint32_t mask, |
454 Label* on_equal) { | 444 Label* on_equal) { |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1340 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
1351 } | 1341 } |
1352 | 1342 |
1353 #undef __ | 1343 #undef __ |
1354 | 1344 |
1355 #endif // V8_INTERPRETED_REGEXP | 1345 #endif // V8_INTERPRETED_REGEXP |
1356 | 1346 |
1357 }} // namespace v8::internal | 1347 }} // namespace v8::internal |
1358 | 1348 |
1359 #endif // V8_TARGET_ARCH_ARM | 1349 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |