| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); | 113 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); |
| 114 virtual void IfRegisterEqPos(int register_index, Label* if_eq); | 114 virtual void IfRegisterEqPos(int register_index, Label* if_eq); |
| 115 | 115 |
| 116 virtual IrregexpImplementation Implementation(); | 116 virtual IrregexpImplementation Implementation(); |
| 117 virtual Handle<Object> GetCode(Handle<String> source); | 117 virtual Handle<Object> GetCode(Handle<String> source); |
| 118 private: | 118 private: |
| 119 void Expand(); | 119 void Expand(); |
| 120 // Code and bitmap emission. | 120 // Code and bitmap emission. |
| 121 inline void Emit32(uint32_t x); | 121 inline void Emit32(uint32_t x); |
| 122 inline void Emit16(uint32_t x); | 122 inline void Emit16(uint32_t x); |
| 123 inline void Emit(uint32_t x); | 123 inline void Emit(uint32_t bc, uint32_t arg); |
| 124 // Bytecode buffer. | 124 // Bytecode buffer. |
| 125 int length(); | 125 int length(); |
| 126 void Copy(Address a); | 126 void Copy(Address a); |
| 127 | 127 |
| 128 // The buffer into which code and relocation info are generated. | 128 // The buffer into which code and relocation info are generated. |
| 129 Vector<byte> buffer_; | 129 Vector<byte> buffer_; |
| 130 // The program counter. | 130 // The program counter. |
| 131 int pc_; | 131 int pc_; |
| 132 // True if the assembler owns the buffer, false if buffer is external. | 132 // True if the assembler owns the buffer, false if buffer is external. |
| 133 bool own_buffer_; | 133 bool own_buffer_; |
| 134 Label backtrack_; | 134 Label backtrack_; |
| 135 | 135 |
| 136 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); | 136 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } } // namespace v8::internal | 139 } } // namespace v8::internal |
| 140 | 140 |
| 141 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 141 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
| OLD | NEW |