| OLD | NEW |
| 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 3294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3305 __ add(r3, r9, Operand(r0, LSL, r3)); | 3305 __ add(r3, r9, Operand(r0, LSL, r3)); |
| 3306 | 3306 |
| 3307 // Argument 2 (r1): Previous index. | 3307 // Argument 2 (r1): Previous index. |
| 3308 // Already there | 3308 // Already there |
| 3309 | 3309 |
| 3310 // Argument 1 (r0): Subject string. | 3310 // Argument 1 (r0): Subject string. |
| 3311 __ mov(r0, subject); | 3311 __ mov(r0, subject); |
| 3312 | 3312 |
| 3313 // Locate the code entry and call it. | 3313 // Locate the code entry and call it. |
| 3314 __ add(r7, r7, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3314 __ add(r7, r7, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 3315 __ CallCFunction(r7, kRegExpExecuteArguments); | 3315 __ CallCFunction(r7, r9, kRegExpExecuteArguments); |
| 3316 __ pop(lr); | 3316 __ pop(lr); |
| 3317 | 3317 |
| 3318 // r0: result | 3318 // r0: result |
| 3319 // subject: subject string (callee saved) | 3319 // subject: subject string (callee saved) |
| 3320 // regexp_data: RegExp data (callee saved) | 3320 // regexp_data: RegExp data (callee saved) |
| 3321 // last_match_info_elements: Last match info elements (callee saved) | 3321 // last_match_info_elements: Last match info elements (callee saved) |
| 3322 | 3322 |
| 3323 // Check the result. | 3323 // Check the result. |
| 3324 Label success; | 3324 Label success; |
| 3325 __ cmp(r0, Operand(NativeRegExpMacroAssembler::SUCCESS)); | 3325 __ cmp(r0, Operand(NativeRegExpMacroAssembler::SUCCESS)); |
| (...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4689 __ bind(&string_add_runtime); | 4689 __ bind(&string_add_runtime); |
| 4690 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); | 4690 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); |
| 4691 } | 4691 } |
| 4692 | 4692 |
| 4693 | 4693 |
| 4694 #undef __ | 4694 #undef __ |
| 4695 | 4695 |
| 4696 } } // namespace v8::internal | 4696 } } // namespace v8::internal |
| 4697 | 4697 |
| 4698 #endif // V8_TARGET_ARCH_ARM | 4698 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |