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 23 matching lines...) Expand all Loading... |
34 class RegExpMacroAssemblerTracer: public RegExpMacroAssembler { | 34 class RegExpMacroAssemblerTracer: public RegExpMacroAssembler { |
35 public: | 35 public: |
36 explicit RegExpMacroAssemblerTracer(RegExpMacroAssembler* assembler); | 36 explicit RegExpMacroAssemblerTracer(RegExpMacroAssembler* assembler); |
37 virtual ~RegExpMacroAssemblerTracer(); | 37 virtual ~RegExpMacroAssemblerTracer(); |
38 virtual int stack_limit_slack() { return assembler_->stack_limit_slack(); } | 38 virtual int stack_limit_slack() { return assembler_->stack_limit_slack(); } |
39 | 39 |
40 virtual void AdvanceCurrentPosition(int by); // Signed cp change. | 40 virtual void AdvanceCurrentPosition(int by); // Signed cp change. |
41 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. | 41 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. |
42 virtual void Backtrack(); | 42 virtual void Backtrack(); |
43 virtual void Bind(Label* label); | 43 virtual void Bind(Label* label); |
| 44 virtual void CheckAtStart(Label* on_at_start); |
44 virtual void CheckBitmap(uc16 start, Label* bitmap, Label* on_zero); | 45 virtual void CheckBitmap(uc16 start, Label* bitmap, Label* on_zero); |
45 virtual void CheckCharacter(uint32_t c, Label* on_equal); | 46 virtual void CheckCharacter(uint32_t c, Label* on_equal); |
46 virtual void CheckCharacterAfterAnd(uint32_t c, | 47 virtual void CheckCharacterAfterAnd(uint32_t c, |
47 uint32_t and_with, | 48 uint32_t and_with, |
48 Label* on_equal); | 49 Label* on_equal); |
49 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); | 50 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); |
50 virtual void CheckCharacterLT(uc16 limit, Label* on_less); | 51 virtual void CheckCharacterLT(uc16 limit, Label* on_less); |
51 virtual void CheckCharacters( | 52 virtual void CheckCharacters( |
52 Vector<const uc16> str, | 53 Vector<const uc16> str, |
53 int cp_offset, | 54 int cp_offset, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); | 109 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); |
109 virtual void ClearRegister(int reg); | 110 virtual void ClearRegister(int reg); |
110 virtual void WriteStackPointerToRegister(int reg); | 111 virtual void WriteStackPointerToRegister(int reg); |
111 private: | 112 private: |
112 RegExpMacroAssembler* assembler_; | 113 RegExpMacroAssembler* assembler_; |
113 }; | 114 }; |
114 | 115 |
115 }} // namespace v8::internal | 116 }} // namespace v8::internal |
116 | 117 |
117 #endif // REGEXP_MACRO_ASSEMBLER_TRACER_H_ | 118 #endif // REGEXP_MACRO_ASSEMBLER_TRACER_H_ |
OLD | NEW |