| 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 21 matching lines...) Expand all Loading... |
| 32 #include "code-stubs.h" | 32 #include "code-stubs.h" |
| 33 #include "regexp-stack.h" | 33 #include "regexp-stack.h" |
| 34 #include "macro-assembler.h" | 34 #include "macro-assembler.h" |
| 35 #include "regexp-macro-assembler.h" | 35 #include "regexp-macro-assembler.h" |
| 36 #include "arm/macro-assembler-arm.h" | 36 #include "arm/macro-assembler-arm.h" |
| 37 #include "arm/regexp-macro-assembler-arm.h" | 37 #include "arm/regexp-macro-assembler-arm.h" |
| 38 | 38 |
| 39 namespace v8 { | 39 namespace v8 { |
| 40 namespace internal { | 40 namespace internal { |
| 41 | 41 |
| 42 #ifdef V8_NATIVE_REGEXP | 42 #ifndef V8_INTERPRETED_REGEXP |
| 43 /* | 43 /* |
| 44 * This assembler uses the following register assignment convention | 44 * This assembler uses the following register assignment convention |
| 45 * - r5 : Pointer to current code object (Code*) including heap object tag. | 45 * - r5 : Pointer to current code object (Code*) including heap object tag. |
| 46 * - r6 : Current position in input, as negative offset from end of string. | 46 * - r6 : Current position in input, as negative offset from end of string. |
| 47 * Please notice that this is the byte offset, not the character offset! | 47 * Please notice that this is the byte offset, not the character offset! |
| 48 * - r7 : Currently loaded character. Must be loaded using | 48 * - r7 : Currently loaded character. Must be loaded using |
| 49 * LoadCurrentCharacter before using any of the dispatch methods. | 49 * LoadCurrentCharacter before using any of the dispatch methods. |
| 50 * - r8 : points to tip of backtrack stack | 50 * - r8 : points to tip of backtrack stack |
| 51 * - r9 : Unused, might be used by C code and expected unchanged. | 51 * - r9 : Unused, might be used by C code and expected unchanged. |
| 52 * - r10 : End of input (points to byte after last character in input). | 52 * - r10 : End of input (points to byte after last character in input). |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 // Stack is already aligned for call, so decrement by alignment | 1258 // Stack is already aligned for call, so decrement by alignment |
| 1259 // to make room for storing the link register. | 1259 // to make room for storing the link register. |
| 1260 __ str(lr, MemOperand(sp, stack_alignment, NegPreIndex)); | 1260 __ str(lr, MemOperand(sp, stack_alignment, NegPreIndex)); |
| 1261 __ mov(r0, sp); | 1261 __ mov(r0, sp); |
| 1262 __ Call(r5); | 1262 __ Call(r5); |
| 1263 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1263 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 #undef __ | 1266 #undef __ |
| 1267 | 1267 |
| 1268 #endif // V8_NATIVE_REGEXP | 1268 #endif // V8_INTERPRETED_REGEXP |
| 1269 | 1269 |
| 1270 }} // namespace v8::internal | 1270 }} // namespace v8::internal |
| OLD | NEW |