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

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

Issue 11228: * No failures on our own tests.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: Created 12 years, 1 month 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
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 25 matching lines...) Expand all
36 template <typename SubjectChar> 36 template <typename SubjectChar>
37 class RegExpMacroAssemblerIA32: public RegExpMacroAssembler<SubjectChar> { 37 class RegExpMacroAssemblerIA32: public RegExpMacroAssembler<SubjectChar> {
38 public: 38 public:
39 RegExpMacroAssemblerIA32() { } 39 RegExpMacroAssemblerIA32() { }
40 virtual ~RegExpMacroAssembler(); 40 virtual ~RegExpMacroAssembler();
41 void Initialize(int num_registers, bool ignore_case); 41 void Initialize(int num_registers, bool ignore_case);
42 virtual void AdvanceCurrentPosition(int by); // Signed cp change. 42 virtual void AdvanceCurrentPosition(int by); // Signed cp change.
43 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. 43 virtual void AdvanceRegister(int reg, int by); // r[reg] += by.
44 virtual void Backtrack(); 44 virtual void Backtrack();
45 virtual void Bind(Label* label); 45 virtual void Bind(Label* label);
46 virtual void LoadCurrentCharacter(int cp_offset, Label* on_end_of_input);
47
48
46 49
47 // Check the current character against a bitmap. The range of the current 50 // Check the current character against a bitmap. The range of the current
48 // character must be from start to start + length_of_bitmap_in_bits. 51 // character must be from start to start + length_of_bitmap_in_bits.
49 // Where to go if the bit is 0. Fall through on 1. 52 // Where to go if the bit is 0. Fall through on 1.
50 virtual void CheckBitmap( 53 virtual void CheckBitmap(
51 uc16 start, // The bitmap is indexed from this character. 54 uc16 start, // The bitmap is indexed from this character.
52 Label* bitmap, // Where the bitmap is emitted. 55 Label* bitmap, // Where the bitmap is emitted.
53 Label* on_zero); 56 Label* on_zero);
54 57
55 58
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 static const uint32_t kEndOfInput = ~0; 148 static const uint32_t kEndOfInput = ~0;
146 149
147 MacroAssembler* masm_; 150 MacroAssembler* masm_;
148 ByteArrayProvider constants_; 151 ByteArrayProvider constants_;
149 int num_registers_; 152 int num_registers_;
150 bool ignore_case_; 153 bool ignore_case_;
151 }; 154 };
152 }} 155 }}
153 156
154 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ 157 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698