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

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

Issue 6123007: Fixes needed to compile on gcc-4.4.1 on ARM. It is still necessary... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/objects-visiting.h ('k') | src/regexp-macro-assembler-irregexp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual bool CanReadUnaligned(); 66 virtual bool CanReadUnaligned();
67 virtual void AdvanceCurrentPosition(int by) = 0; // Signed cp change. 67 virtual void AdvanceCurrentPosition(int by) = 0; // Signed cp change.
68 virtual void AdvanceRegister(int reg, int by) = 0; // r[reg] += by. 68 virtual void AdvanceRegister(int reg, int by) = 0; // r[reg] += by.
69 // Continues execution from the position pushed on the top of the backtrack 69 // Continues execution from the position pushed on the top of the backtrack
70 // stack by an earlier PushBacktrack(Label*). 70 // stack by an earlier PushBacktrack(Label*).
71 virtual void Backtrack() = 0; 71 virtual void Backtrack() = 0;
72 virtual void Bind(Label* label) = 0; 72 virtual void Bind(Label* label) = 0;
73 virtual void CheckAtStart(Label* on_at_start) = 0; 73 virtual void CheckAtStart(Label* on_at_start) = 0;
74 // Dispatch after looking the current character up in a 2-bits-per-entry 74 // Dispatch after looking the current character up in a 2-bits-per-entry
75 // map. The destinations vector has up to 4 labels. 75 // map. The destinations vector has up to 4 labels.
76 virtual void CheckCharacter(uint32_t c, Label* on_equal) = 0; 76 virtual void CheckCharacter(unsigned c, Label* on_equal) = 0;
77 // Bitwise and the current character with the given constant and then 77 // Bitwise and the current character with the given constant and then
78 // check for a match with c. 78 // check for a match with c.
79 virtual void CheckCharacterAfterAnd(uint32_t c, 79 virtual void CheckCharacterAfterAnd(unsigned c,
80 uint32_t and_with, 80 unsigned and_with,
81 Label* on_equal) = 0; 81 Label* on_equal) = 0;
82 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0; 82 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0;
83 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0; 83 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0;
84 // Check the current character for a match with a literal string. If we 84 // Check the current character for a match with a literal string. If we
85 // fail to match then goto the on_failure label. If check_eos is set then 85 // fail to match then goto the on_failure label. If check_eos is set then
86 // the end of input always fails. If check_eos is clear then it is the 86 // the end of input always fails. If check_eos is clear then it is the
87 // caller's responsibility to ensure that the end of string is not hit. 87 // caller's responsibility to ensure that the end of string is not hit.
88 // If the label is NULL then we should pop a backtrack address off 88 // If the label is NULL then we should pop a backtrack address off
89 // the stack and go to that. 89 // the stack and go to that.
90 virtual void CheckCharacters( 90 virtual void CheckCharacters(
91 Vector<const uc16> str, 91 Vector<const uc16> str,
92 int cp_offset, 92 int cp_offset,
93 Label* on_failure, 93 Label* on_failure,
94 bool check_eos) = 0; 94 bool check_eos) = 0;
95 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position) = 0; 95 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position) = 0;
96 virtual void CheckNotAtStart(Label* on_not_at_start) = 0; 96 virtual void CheckNotAtStart(Label* on_not_at_start) = 0;
97 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0; 97 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0;
98 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, 98 virtual void CheckNotBackReferenceIgnoreCase(int start_reg,
99 Label* on_no_match) = 0; 99 Label* on_no_match) = 0;
100 // Check the current character for a match with a literal character. If we 100 // Check the current character for a match with a literal character. If we
101 // fail to match then goto the on_failure label. End of input always 101 // fail to match then goto the on_failure label. End of input always
102 // matches. If the label is NULL then we should pop a backtrack address off 102 // matches. If the label is NULL then we should pop a backtrack address off
103 // the stack and go to that. 103 // the stack and go to that.
104 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal) = 0; 104 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal) = 0;
105 virtual void CheckNotCharacterAfterAnd(uint32_t c, 105 virtual void CheckNotCharacterAfterAnd(unsigned c,
106 uint32_t and_with, 106 unsigned and_with,
107 Label* on_not_equal) = 0; 107 Label* on_not_equal) = 0;
108 // Subtract a constant from the current character, then or with the given 108 // Subtract a constant from the current character, then or with the given
109 // constant and then check for a match with c. 109 // constant and then check for a match with c.
110 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, 110 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
111 uc16 minus, 111 uc16 minus,
112 uc16 and_with, 112 uc16 and_with,
113 Label* on_not_equal) = 0; 113 Label* on_not_equal) = 0;
114 virtual void CheckNotRegistersEqual(int reg1, 114 virtual void CheckNotRegistersEqual(int reg1,
115 int reg2, 115 int reg2,
116 Label* on_not_equal) = 0; 116 Label* on_not_equal) = 0;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 const byte* input_start, 222 const byte* input_start,
223 const byte* input_end, 223 const byte* input_end,
224 int* output); 224 int* output);
225 }; 225 };
226 226
227 #endif // V8_INTERPRETED_REGEXP 227 #endif // V8_INTERPRETED_REGEXP
228 228
229 } } // namespace v8::internal 229 } } // namespace v8::internal
230 230
231 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ 231 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/objects-visiting.h ('k') | src/regexp-macro-assembler-irregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698