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

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

Issue 10998: Add an operation that checks whether we are at the start of the string. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « src/regexp-macro-assembler-ia32.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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 BranchOrBacktrack(equal, on_equal); 155 BranchOrBacktrack(equal, on_equal);
156 } 156 }
157 157
158 158
159 void RegExpMacroAssemblerIA32::CheckCharacterGT(uc16 limit, Label* on_greater) { 159 void RegExpMacroAssemblerIA32::CheckCharacterGT(uc16 limit, Label* on_greater) {
160 __ cmp(edx, limit); 160 __ cmp(edx, limit);
161 BranchOrBacktrack(greater, on_greater); 161 BranchOrBacktrack(greater, on_greater);
162 } 162 }
163 163
164 164
165 void RegExpMacroAssemblerIA32::CheckNotAtStart(Label* on_not_at_start) {
166 UNIMPLEMENTED();
167 }
168
169
165 void RegExpMacroAssemblerIA32::CheckCharacterLT(uc16 limit, Label* on_less) { 170 void RegExpMacroAssemblerIA32::CheckCharacterLT(uc16 limit, Label* on_less) {
166 __ cmp(edx, limit); 171 __ cmp(edx, limit);
167 BranchOrBacktrack(less, on_less); 172 BranchOrBacktrack(less, on_less);
168 } 173 }
169 174
170 175
171 void RegExpMacroAssemblerIA32::CheckCharacters(Vector<const uc16> str, 176 void RegExpMacroAssemblerIA32::CheckCharacters(Vector<const uc16> str,
172 int cp_offset, 177 int cp_offset,
173 Label* on_failure) { 178 Label* on_failure) {
174 int byte_length = str.length() * char_size(); 179 int byte_length = str.length() * char_size();
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 647
643 648
644 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, 649 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg,
645 ArraySlice* buffer) { 650 ArraySlice* buffer) {
646 __ mov(reg, buffer->array()); 651 __ mov(reg, buffer->array());
647 __ add(Operand(reg), Immediate(buffer->base_offset())); 652 __ add(Operand(reg), Immediate(buffer->base_offset()));
648 } 653 }
649 654
650 #undef __ 655 #undef __
651 }} // namespace v8::internal 656 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler-ia32.h ('k') | src/regexp-macro-assembler-irregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698