Commit 1130ec7 1 parent 1b1b47e commit 1130ec7 Copy full SHA for 1130ec7
File tree 2 files changed +6
-6
lines changed
deps/v8/src/regexp/riscv64
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ namespace internal {
23
23
* This assembler uses the following register assignment convention
24
24
* - s3 : kScratchReg. Temporarily stores the index of capture start after a matching pass
25
25
* for a global regexp.
26
- * - a5 : Pointer to current Code object including heap object tag.
27
- * - a6 : Current position in input, as negative offset from end of string.
26
+ * - s4 : Pointer to current Code object including heap object tag.
27
+ * - s1 : Current position in input, as negative offset from end of string.
28
28
* Please notice that this is the byte offset, not the character offset!
29
- * - a7 : Currently loaded character. Must be loaded using
29
+ * - s2 : Currently loaded character. Must be loaded using
30
30
* LoadCurrentCharacter before using any of the dispatch methods.
31
31
* - t0 : Points to tip of backtrack stack
32
32
* - t1 : Unused.
Original file line number Diff line number Diff line change @@ -144,10 +144,10 @@ class V8_EXPORT_PRIVATE RegExpMacroAssemblerRISCV
144
144
145
145
// Register holding the current input position as negative offset from
146
146
// the end of the string.
147
- inline Register current_input_offset () { return a6 ; }
147
+ inline Register current_input_offset () { return s1 ; }
148
148
149
149
// The register containing the current character after LoadCurrentCharacter.
150
- inline Register current_character () { return a7 ; }
150
+ inline Register current_character () { return s2 ; }
151
151
152
152
// Register holding address of the end of the input string.
153
153
inline Register end_of_input_address () { return t2; }
@@ -161,7 +161,7 @@ class V8_EXPORT_PRIVATE RegExpMacroAssemblerRISCV
161
161
inline Register backtrack_stackpointer () { return t0; }
162
162
163
163
// Register holding pointer to the current code object.
164
- inline Register code_pointer () { return a5 ; }
164
+ inline Register code_pointer () { return s4 ; }
165
165
166
166
// Byte size of chars in the string to match (decided by the Mode argument).
167
167
inline int char_size () { return static_cast <int >(mode_); }
You can’t perform that action at this time.
0 commit comments