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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal); | 99 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal); |
100 virtual void CheckCharacters(Vector<const uc16> str, | 100 virtual void CheckCharacters(Vector<const uc16> str, |
101 int cp_offset, | 101 int cp_offset, |
102 Label* on_failure, | 102 Label* on_failure, |
103 bool check_end_of_string); | 103 bool check_end_of_string); |
104 virtual void IfRegisterLT(int register_index, int comparand, Label* if_lt); | 104 virtual void IfRegisterLT(int register_index, int comparand, Label* if_lt); |
105 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); | 105 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); |
106 virtual void IfRegisterEqPos(int register_index, Label* if_eq); | 106 virtual void IfRegisterEqPos(int register_index, Label* if_eq); |
107 | 107 |
108 virtual IrregexpImplementation Implementation(); | 108 virtual IrregexpImplementation Implementation(); |
109 virtual Handle<Object> GetCode(Handle<String> source); | 109 virtual Handle<HeapObject> GetCode(Handle<String> source); |
110 private: | 110 private: |
111 void Expand(); | 111 void Expand(); |
112 // Code and bitmap emission. | 112 // Code and bitmap emission. |
113 inline void EmitOrLink(Label* label); | 113 inline void EmitOrLink(Label* label); |
114 inline void Emit32(uint32_t x); | 114 inline void Emit32(uint32_t x); |
115 inline void Emit16(uint32_t x); | 115 inline void Emit16(uint32_t x); |
116 inline void Emit(uint32_t bc, uint32_t arg); | 116 inline void Emit(uint32_t bc, uint32_t arg); |
117 // Bytecode buffer. | 117 // Bytecode buffer. |
118 int length(); | 118 int length(); |
119 void Copy(Address a); | 119 void Copy(Address a); |
(...skipping 13 matching lines...) Expand all Loading... |
133 static const int kInvalidPC = -1; | 133 static const int kInvalidPC = -1; |
134 | 134 |
135 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); | 135 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); |
136 }; | 136 }; |
137 | 137 |
138 #endif // V8_INTERPRETED_REGEXP | 138 #endif // V8_INTERPRETED_REGEXP |
139 | 139 |
140 } } // namespace v8::internal | 140 } } // namespace v8::internal |
141 | 141 |
142 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 142 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
OLD | NEW |