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

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

Issue 14457: * Removed rep cmpsb everywhere in irregexp-ia32 (Closed)
Patch Set: Changes in back-reference handling Created 12 years 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 static const int kInputBuffer = kReturn_eip + sizeof(uint32_t); 119 static const int kInputBuffer = kReturn_eip + sizeof(uint32_t);
120 static const int kInputStartOffset = kInputBuffer + sizeof(uint32_t); 120 static const int kInputStartOffset = kInputBuffer + sizeof(uint32_t);
121 static const int kInputEndOffset = kInputStartOffset + sizeof(uint32_t); 121 static const int kInputEndOffset = kInputStartOffset + sizeof(uint32_t);
122 static const int kRegisterOutput = kInputEndOffset + sizeof(uint32_t); 122 static const int kRegisterOutput = kInputEndOffset + sizeof(uint32_t);
123 static const int kAtStart = kRegisterOutput + sizeof(uint32_t); 123 static const int kAtStart = kRegisterOutput + sizeof(uint32_t);
124 124
125 // Initial size of code buffer. 125 // Initial size of code buffer.
126 static const size_t kRegExpCodeSize = 1024; 126 static const size_t kRegExpCodeSize = 1024;
127 // Initial size of constant buffers allocated during compilation. 127 // Initial size of constant buffers allocated during compilation.
128 static const int kRegExpConstantsSize = 256; 128 static const int kRegExpConstantsSize = 256;
129 // Only unroll loops up to this length. 129 // Only unroll loops up to this length. TODO(lrn): Actually use this.
130 static const int kMaxInlineStringTests = 8; 130 static const int kMaxInlineStringTests = 32;
131 131
132 // Compares two-byte strings case insenstively. 132 // Compares two-byte strings case insensitively.
133 static int CaseInsensitiveCompareUC16(uc16** buffer, 133 static int CaseInsensitiveCompareUC16(uc16** buffer,
134 int byte_offset1, 134 int byte_offset1,
135 int byte_offset2, 135 int byte_offset2,
136 size_t byte_length); 136 size_t byte_length);
137 137
138 // Called from RegExp if the stack-guard is triggered. 138 // Called from RegExp if the stack-guard is triggered.
139 // If the code object is relocated, the return address is fixed before 139 // If the code object is relocated, the return address is fixed before
140 // returning. 140 // returning.
141 static int CheckStackGuardState(Address return_address, Code* re_code); 141 static int CheckStackGuardState(Address return_address, Code* re_code);
142 142
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 Label success_label_; 194 Label success_label_;
195 Label exit_label_; 195 Label exit_label_;
196 Label check_preempt_label_; 196 Label check_preempt_label_;
197 // Handle used to represent the generated code object itself. 197 // Handle used to represent the generated code object itself.
198 Handle<Object> self_; 198 Handle<Object> self_;
199 }; 199 };
200 200
201 }} // namespace v8::internal 201 }} // namespace v8::internal
202 202
203 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ 203 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698