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 25 matching lines...) Expand all Loading... |
36 public: | 36 public: |
37 explicit RegExpMacroAssemblerTracer(RegExpMacroAssembler* assembler); | 37 explicit RegExpMacroAssemblerTracer(RegExpMacroAssembler* assembler); |
38 virtual ~RegExpMacroAssemblerTracer(); | 38 virtual ~RegExpMacroAssemblerTracer(); |
39 virtual int stack_limit_slack() { return assembler_->stack_limit_slack(); } | 39 virtual int stack_limit_slack() { return assembler_->stack_limit_slack(); } |
40 virtual bool CanReadUnaligned() { return assembler_->CanReadUnaligned(); } | 40 virtual bool CanReadUnaligned() { return assembler_->CanReadUnaligned(); } |
41 virtual void AdvanceCurrentPosition(int by); // Signed cp change. | 41 virtual void AdvanceCurrentPosition(int by); // Signed cp change. |
42 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. | 42 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. |
43 virtual void Backtrack(); | 43 virtual void Backtrack(); |
44 virtual void Bind(Label* label); | 44 virtual void Bind(Label* label); |
45 virtual void CheckAtStart(Label* on_at_start); | 45 virtual void CheckAtStart(Label* on_at_start); |
46 virtual void CheckCharacter(uint32_t c, Label* on_equal); | 46 virtual void CheckCharacter(unsigned c, Label* on_equal); |
47 virtual void CheckCharacterAfterAnd(uint32_t c, | 47 virtual void CheckCharacterAfterAnd(unsigned c, |
48 uint32_t and_with, | 48 unsigned and_with, |
49 Label* on_equal); | 49 Label* on_equal); |
50 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); | 50 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); |
51 virtual void CheckCharacterLT(uc16 limit, Label* on_less); | 51 virtual void CheckCharacterLT(uc16 limit, Label* on_less); |
52 virtual void CheckCharacters( | 52 virtual void CheckCharacters( |
53 Vector<const uc16> str, | 53 Vector<const uc16> str, |
54 int cp_offset, | 54 int cp_offset, |
55 Label* on_failure, | 55 Label* on_failure, |
56 bool check_end_of_string); | 56 bool check_end_of_string); |
57 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position); | 57 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position); |
58 virtual void CheckNotAtStart(Label* on_not_at_start); | 58 virtual void CheckNotAtStart(Label* on_not_at_start); |
59 virtual void CheckNotBackReference(int start_reg, Label* on_no_match); | 59 virtual void CheckNotBackReference(int start_reg, Label* on_no_match); |
60 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, | 60 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, |
61 Label* on_no_match); | 61 Label* on_no_match); |
62 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal); | 62 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal); |
63 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal); | 63 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal); |
64 virtual void CheckNotCharacterAfterAnd(uint32_t c, | 64 virtual void CheckNotCharacterAfterAnd(unsigned c, |
65 uint32_t and_with, | 65 unsigned and_with, |
66 Label* on_not_equal); | 66 Label* on_not_equal); |
67 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, | 67 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, |
68 uc16 minus, | 68 uc16 minus, |
69 uc16 and_with, | 69 uc16 and_with, |
70 Label* on_not_equal); | 70 Label* on_not_equal); |
71 virtual bool CheckSpecialCharacterClass(uc16 type, | 71 virtual bool CheckSpecialCharacterClass(uc16 type, |
72 Label* on_no_match); | 72 Label* on_no_match); |
73 virtual void Fail(); | 73 virtual void Fail(); |
74 virtual Handle<Object> GetCode(Handle<String> source); | 74 virtual Handle<Object> GetCode(Handle<String> source); |
75 virtual void GoTo(Label* label); | 75 virtual void GoTo(Label* label); |
(...skipping 19 matching lines...) Expand all Loading... |
95 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); | 95 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); |
96 virtual void ClearRegisters(int reg_from, int reg_to); | 96 virtual void ClearRegisters(int reg_from, int reg_to); |
97 virtual void WriteStackPointerToRegister(int reg); | 97 virtual void WriteStackPointerToRegister(int reg); |
98 private: | 98 private: |
99 RegExpMacroAssembler* assembler_; | 99 RegExpMacroAssembler* assembler_; |
100 }; | 100 }; |
101 | 101 |
102 }} // namespace v8::internal | 102 }} // namespace v8::internal |
103 | 103 |
104 #endif // V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_ | 104 #endif // V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_ |
OLD | NEW |