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

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

Issue 14194: * Generate quick checks based on mask and compare for... (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.cc ('k') | src/regexp-macro-assembler-irregexp.cc » ('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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void Succeed(); 59 virtual void Succeed();
60 virtual void Fail(); 60 virtual void Fail();
61 virtual void PopRegister(int register_index); 61 virtual void PopRegister(int register_index);
62 virtual void PushRegister(int register_index); 62 virtual void PushRegister(int register_index);
63 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. 63 virtual void AdvanceRegister(int reg, int by); // r[reg] += by.
64 virtual void SetRegister(int register_index, int to); 64 virtual void SetRegister(int register_index, int to);
65 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); 65 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset);
66 virtual void ReadCurrentPositionFromRegister(int reg); 66 virtual void ReadCurrentPositionFromRegister(int reg);
67 virtual void WriteStackPointerToRegister(int reg); 67 virtual void WriteStackPointerToRegister(int reg);
68 virtual void ReadStackPointerFromRegister(int reg); 68 virtual void ReadStackPointerFromRegister(int reg);
69 virtual void LoadCurrentCharacter(int cp_offset, Label* on_end_of_input); 69 virtual void LoadCurrentCharacter(int cp_offset,
70 virtual void LoadCurrentCharacterUnchecked(int cp_offset); 70 Label* on_end_of_input,
71 bool check_bounds = true,
72 int characters = 1);
73 virtual void CheckCharacter(uint32_t c, Label* on_equal);
74 virtual void CheckCharacterAfterAnd(uint32_t c,
75 uint32_t mask,
76 Label* on_equal);
77 virtual void CheckCharacterGT(uc16 limit, Label* on_greater);
71 virtual void CheckCharacterLT(uc16 limit, Label* on_less); 78 virtual void CheckCharacterLT(uc16 limit, Label* on_less);
72 virtual void CheckCharacterGT(uc16 limit, Label* on_greater);
73 virtual void CheckCharacter(uc16 c, Label* on_equal);
74 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position); 79 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position);
75 virtual void CheckNotAtStart(Label* on_not_at_start); 80 virtual void CheckNotAtStart(Label* on_not_at_start);
76 virtual void CheckNotCharacter(uc16 c, Label* on_not_equal); 81 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal);
77 virtual void CheckNotCharacterAfterOr(uc16 c, uc16 mask, Label* on_not_equal); 82 virtual void CheckNotCharacterAfterAnd(uint32_t c,
78 virtual void CheckNotCharacterAfterMinusOr(uc16 c, 83 uint32_t mask,
79 uc16 mask, 84 Label* on_not_equal);
80 Label* on_not_equal); 85 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
86 uc16 minus,
87 uc16 mask,
88 Label* on_not_equal);
81 virtual void CheckNotBackReference(int start_reg, Label* on_no_match); 89 virtual void CheckNotBackReference(int start_reg, Label* on_no_match);
82 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, 90 virtual void CheckNotBackReferenceIgnoreCase(int start_reg,
83 Label* on_no_match); 91 Label* on_no_match);
84 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal); 92 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal);
85 virtual void CheckCharacters(Vector<const uc16> str, 93 virtual void CheckCharacters(Vector<const uc16> str,
86 int cp_offset, 94 int cp_offset,
87 Label* on_failure, 95 Label* on_failure,
88 bool check_end_of_string); 96 bool check_end_of_string);
89 virtual void CheckBitmap(uc16 start, Label* bitmap, Label* on_zero); 97 virtual void CheckBitmap(uc16 start, Label* bitmap, Label* on_zero);
90 virtual void DispatchHalfNibbleMap(uc16 start, 98 virtual void DispatchHalfNibbleMap(uc16 start,
(...skipping 27 matching lines...) Expand all
118 // True if the assembler owns the buffer, false if buffer is external. 126 // True if the assembler owns the buffer, false if buffer is external.
119 bool own_buffer_; 127 bool own_buffer_;
120 Label backtrack_; 128 Label backtrack_;
121 129
122 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); 130 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp);
123 }; 131 };
124 132
125 } } // namespace v8::internal 133 } } // namespace v8::internal
126 134
127 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ 135 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler-ia32.cc ('k') | src/regexp-macro-assembler-irregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698