Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1327)

Side by Side Diff: src/regexp-macro-assembler-tracer.h

Issue 17409: Check for empty repetitions. (Closed)
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void DispatchHighByteMap( 81 virtual void DispatchHighByteMap(
82 byte start, 82 byte start,
83 Label* byte_map, 83 Label* byte_map,
84 const Vector<Label*>& destinations); 84 const Vector<Label*>& destinations);
85 virtual void EmitOrLink(Label* label); 85 virtual void EmitOrLink(Label* label);
86 virtual void Fail(); 86 virtual void Fail();
87 virtual Handle<Object> GetCode(Handle<String> source); 87 virtual Handle<Object> GetCode(Handle<String> source);
88 virtual void GoTo(Label* label); 88 virtual void GoTo(Label* label);
89 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge); 89 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge);
90 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt); 90 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt);
91 virtual void IfRegisterEqPos(int reg, Label* if_eq);
91 virtual IrregexpImplementation Implementation(); 92 virtual IrregexpImplementation Implementation();
92 virtual void LoadCurrentCharacter(int cp_offset, 93 virtual void LoadCurrentCharacter(int cp_offset,
93 Label* on_end_of_input, 94 Label* on_end_of_input,
94 bool check_bounds = true, 95 bool check_bounds = true,
95 int characters = 1); 96 int characters = 1);
96 virtual void PopCurrentPosition(); 97 virtual void PopCurrentPosition();
97 virtual void PopRegister(int register_index); 98 virtual void PopRegister(int register_index);
98 virtual void PushBacktrack(Label* label); 99 virtual void PushBacktrack(Label* label);
99 virtual void PushCurrentPosition(); 100 virtual void PushCurrentPosition();
100 virtual void PushRegister(int register_index); 101 virtual void PushRegister(int register_index);
101 virtual void ReadCurrentPositionFromRegister(int reg); 102 virtual void ReadCurrentPositionFromRegister(int reg);
102 virtual void ReadStackPointerFromRegister(int reg); 103 virtual void ReadStackPointerFromRegister(int reg);
103 virtual void SetRegister(int register_index, int to); 104 virtual void SetRegister(int register_index, int to);
104 virtual void Succeed(); 105 virtual void Succeed();
105 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); 106 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset);
106 virtual void WriteStackPointerToRegister(int reg); 107 virtual void WriteStackPointerToRegister(int reg);
107 private: 108 private:
108 RegExpMacroAssembler* assembler_; 109 RegExpMacroAssembler* assembler_;
109 }; 110 };
110 111
111 }} // namespace v8::internal 112 }} // namespace v8::internal
112 113
113 #endif // REGEXP_MACRO_ASSEMBLER_TRACER_H_ 114 #endif // REGEXP_MACRO_ASSEMBLER_TRACER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698