| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 Label* on_not_equal); | 73 Label* on_not_equal); |
| 74 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, | 74 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, |
| 75 uc16 minus, | 75 uc16 minus, |
| 76 uc16 mask, | 76 uc16 mask, |
| 77 Label* on_not_equal); | 77 Label* on_not_equal); |
| 78 // Checks whether the given offset from the current position is before | 78 // Checks whether the given offset from the current position is before |
| 79 // the end of the string. | 79 // the end of the string. |
| 80 virtual void CheckPosition(int cp_offset, Label* on_outside_input); | 80 virtual void CheckPosition(int cp_offset, Label* on_outside_input); |
| 81 virtual bool CheckSpecialCharacterClass(uc16 type, Label* on_no_match); | 81 virtual bool CheckSpecialCharacterClass(uc16 type, Label* on_no_match); |
| 82 virtual void Fail(); | 82 virtual void Fail(); |
| 83 virtual Handle<Object> GetCode(Handle<String> source); | 83 virtual Handle<HeapObject> GetCode(Handle<String> source); |
| 84 virtual void GoTo(Label* label); | 84 virtual void GoTo(Label* label); |
| 85 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge); | 85 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge); |
| 86 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt); | 86 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt); |
| 87 virtual void IfRegisterEqPos(int reg, Label* if_eq); | 87 virtual void IfRegisterEqPos(int reg, Label* if_eq); |
| 88 virtual IrregexpImplementation Implementation(); | 88 virtual IrregexpImplementation Implementation(); |
| 89 virtual void LoadCurrentCharacter(int cp_offset, | 89 virtual void LoadCurrentCharacter(int cp_offset, |
| 90 Label* on_end_of_input, | 90 Label* on_end_of_input, |
| 91 bool check_bounds = true, | 91 bool check_bounds = true, |
| 92 int characters = 1); | 92 int characters = 1); |
| 93 virtual void PopCurrentPosition(); | 93 virtual void PopCurrentPosition(); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 // The register containing the backtrack stack top. Provides a meaningful | 162 // The register containing the backtrack stack top. Provides a meaningful |
| 163 // name to the register. | 163 // name to the register. |
| 164 inline Register backtrack_stackpointer() { return ecx; } | 164 inline Register backtrack_stackpointer() { return ecx; } |
| 165 | 165 |
| 166 // Byte size of chars in the string to match (decided by the Mode argument) | 166 // Byte size of chars in the string to match (decided by the Mode argument) |
| 167 inline int char_size() { return static_cast<int>(mode_); } | 167 inline int char_size() { return static_cast<int>(mode_); } |
| 168 | 168 |
| 169 // Equivalent to a conditional branch to the label, unless the label | 169 // Equivalent to a conditional branch to the label, unless the label |
| 170 // is NULL, in which case it is a conditional Backtrack. | 170 // is NULL, in which case it is a conditional Backtrack. |
| 171 void BranchOrBacktrack(Condition condition, Label* to, Hint hint = no_hint); | 171 void BranchOrBacktrack(Condition condition, Label* to); |
| 172 | 172 |
| 173 // Call and return internally in the generated code in a way that | 173 // Call and return internally in the generated code in a way that |
| 174 // is GC-safe (i.e., doesn't leave absolute code addresses on the stack) | 174 // is GC-safe (i.e., doesn't leave absolute code addresses on the stack) |
| 175 inline void SafeCall(Label* to); | 175 inline void SafeCall(Label* to); |
| 176 inline void SafeReturn(); | 176 inline void SafeReturn(); |
| 177 inline void SafeCallTarget(Label* name); | 177 inline void SafeCallTarget(Label* name); |
| 178 | 178 |
| 179 // Pushes the value of a register on the backtrack stack. Decrements the | 179 // Pushes the value of a register on the backtrack stack. Decrements the |
| 180 // stack pointer (ecx) by a word size and stores the register's value there. | 180 // stack pointer (ecx) by a word size and stores the register's value there. |
| 181 inline void Push(Register source); | 181 inline void Push(Register source); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 207 Label backtrack_label_; | 207 Label backtrack_label_; |
| 208 Label exit_label_; | 208 Label exit_label_; |
| 209 Label check_preempt_label_; | 209 Label check_preempt_label_; |
| 210 Label stack_overflow_label_; | 210 Label stack_overflow_label_; |
| 211 }; | 211 }; |
| 212 #endif // V8_INTERPRETED_REGEXP | 212 #endif // V8_INTERPRETED_REGEXP |
| 213 | 213 |
| 214 }} // namespace v8::internal | 214 }} // namespace v8::internal |
| 215 | 215 |
| 216 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 216 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |