OLD | NEW |
1 // Copyright 2008-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2008-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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual void PushCurrentPosition(); | 58 virtual void PushCurrentPosition(); |
59 virtual void Backtrack(); | 59 virtual void Backtrack(); |
60 virtual void GoTo(Label* label); | 60 virtual void GoTo(Label* label); |
61 virtual void PushBacktrack(Label* label); | 61 virtual void PushBacktrack(Label* label); |
62 virtual void Succeed(); | 62 virtual void Succeed(); |
63 virtual void Fail(); | 63 virtual void Fail(); |
64 virtual void PopRegister(int register_index); | 64 virtual void PopRegister(int register_index); |
65 virtual void PushRegister(int register_index, | 65 virtual void PushRegister(int register_index, |
66 StackCheckFlag check_stack_limit); | 66 StackCheckFlag check_stack_limit); |
67 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. | 67 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. |
| 68 virtual void SetCurrentPositionFromEnd(int by); |
68 virtual void SetRegister(int register_index, int to); | 69 virtual void SetRegister(int register_index, int to); |
69 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); | 70 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); |
70 virtual void ClearRegisters(int reg_from, int reg_to); | 71 virtual void ClearRegisters(int reg_from, int reg_to); |
71 virtual void ReadCurrentPositionFromRegister(int reg); | 72 virtual void ReadCurrentPositionFromRegister(int reg); |
72 virtual void WriteStackPointerToRegister(int reg); | 73 virtual void WriteStackPointerToRegister(int reg); |
73 virtual void ReadStackPointerFromRegister(int reg); | 74 virtual void ReadStackPointerFromRegister(int reg); |
74 virtual void LoadCurrentCharacter(int cp_offset, | 75 virtual void LoadCurrentCharacter(int cp_offset, |
75 Label* on_end_of_input, | 76 Label* on_end_of_input, |
76 bool check_bounds = true, | 77 bool check_bounds = true, |
77 int characters = 1); | 78 int characters = 1); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 static const int kInvalidPC = -1; | 133 static const int kInvalidPC = -1; |
133 | 134 |
134 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); | 135 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); |
135 }; | 136 }; |
136 | 137 |
137 #endif // V8_INTERPRETED_REGEXP | 138 #endif // V8_INTERPRETED_REGEXP |
138 | 139 |
139 } } // namespace v8::internal | 140 } } // namespace v8::internal |
140 | 141 |
141 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 142 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
OLD | NEW |