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

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

Issue 1418963009: Experimental support for RegExp lookbehind. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix arm64 debug code assertion Created 5 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
« no previous file with comments | « src/regexp/bytecodes-irregexp.h ('k') | src/regexp/ia32/regexp-macro-assembler-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_REGEXP_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_REGEXP_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
6 #define V8_REGEXP_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_REGEXP_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
7 7
8 #include "src/ia32/assembler-ia32.h" 8 #include "src/ia32/assembler-ia32.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/regexp/regexp-macro-assembler.h" 10 #include "src/regexp/regexp-macro-assembler.h"
(...skipping 15 matching lines...) Expand all
26 virtual void CheckAtStart(Label* on_at_start); 26 virtual void CheckAtStart(Label* on_at_start);
27 virtual void CheckCharacter(uint32_t c, Label* on_equal); 27 virtual void CheckCharacter(uint32_t c, Label* on_equal);
28 virtual void CheckCharacterAfterAnd(uint32_t c, 28 virtual void CheckCharacterAfterAnd(uint32_t c,
29 uint32_t mask, 29 uint32_t mask,
30 Label* on_equal); 30 Label* on_equal);
31 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); 31 virtual void CheckCharacterGT(uc16 limit, Label* on_greater);
32 virtual void CheckCharacterLT(uc16 limit, Label* on_less); 32 virtual void CheckCharacterLT(uc16 limit, Label* on_less);
33 // A "greedy loop" is a loop that is both greedy and with a simple 33 // A "greedy loop" is a loop that is both greedy and with a simple
34 // body. It has a particularly simple implementation. 34 // body. It has a particularly simple implementation.
35 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position); 35 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position);
36 virtual void CheckNotAtStart(Label* on_not_at_start); 36 virtual void CheckNotAtStart(int cp_offset, Label* on_not_at_start);
37 virtual void CheckNotBackReference(int start_reg, Label* on_no_match); 37 virtual void CheckNotBackReference(int start_reg, bool read_backward,
38 Label* on_no_match);
38 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, 39 virtual void CheckNotBackReferenceIgnoreCase(int start_reg,
40 bool read_backward,
39 Label* on_no_match); 41 Label* on_no_match);
40 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal); 42 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal);
41 virtual void CheckNotCharacterAfterAnd(uint32_t c, 43 virtual void CheckNotCharacterAfterAnd(uint32_t c,
42 uint32_t mask, 44 uint32_t mask,
43 Label* on_not_equal); 45 Label* on_not_equal);
44 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, 46 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
45 uc16 minus, 47 uc16 minus,
46 uc16 mask, 48 uc16 mask,
47 Label* on_not_equal); 49 Label* on_not_equal);
48 virtual void CheckCharacterInRange(uc16 from, 50 virtual void CheckCharacterInRange(uc16 from,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 static const int kStackHighEnd = kNumOutputRegisters + kPointerSize; 111 static const int kStackHighEnd = kNumOutputRegisters + kPointerSize;
110 static const int kDirectCall = kStackHighEnd + kPointerSize; 112 static const int kDirectCall = kStackHighEnd + kPointerSize;
111 static const int kIsolate = kDirectCall + kPointerSize; 113 static const int kIsolate = kDirectCall + kPointerSize;
112 // Below the frame pointer - local stack variables. 114 // Below the frame pointer - local stack variables.
113 // When adding local variables remember to push space for them in 115 // When adding local variables remember to push space for them in
114 // the frame in GetCode. 116 // the frame in GetCode.
115 static const int kBackup_esi = kFramePointer - kPointerSize; 117 static const int kBackup_esi = kFramePointer - kPointerSize;
116 static const int kBackup_edi = kBackup_esi - kPointerSize; 118 static const int kBackup_edi = kBackup_esi - kPointerSize;
117 static const int kBackup_ebx = kBackup_edi - kPointerSize; 119 static const int kBackup_ebx = kBackup_edi - kPointerSize;
118 static const int kSuccessfulCaptures = kBackup_ebx - kPointerSize; 120 static const int kSuccessfulCaptures = kBackup_ebx - kPointerSize;
119 static const int kInputStartMinusOne = kSuccessfulCaptures - kPointerSize; 121 static const int kStringStartMinusOne = kSuccessfulCaptures - kPointerSize;
120 // First register address. Following registers are below it on the stack. 122 // First register address. Following registers are below it on the stack.
121 static const int kRegisterZero = kInputStartMinusOne - kPointerSize; 123 static const int kRegisterZero = kStringStartMinusOne - kPointerSize;
122 124
123 // Initial size of code buffer. 125 // Initial size of code buffer.
124 static const size_t kRegExpCodeSize = 1024; 126 static const size_t kRegExpCodeSize = 1024;
125 127
126 // Load a number of characters at the given offset from the 128 // Load a number of characters at the given offset from the
127 // current position, into the current-character register. 129 // current position, into the current-character register.
128 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); 130 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count);
129 131
130 // Check whether preemption has been requested. 132 // Check whether preemption has been requested.
131 void CheckPreemption(); 133 void CheckPreemption();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 Label exit_label_; 195 Label exit_label_;
194 Label check_preempt_label_; 196 Label check_preempt_label_;
195 Label stack_overflow_label_; 197 Label stack_overflow_label_;
196 }; 198 };
197 #endif // V8_INTERPRETED_REGEXP 199 #endif // V8_INTERPRETED_REGEXP
198 200
199 } // namespace internal 201 } // namespace internal
200 } // namespace v8 202 } // namespace v8
201 203
202 #endif // V8_REGEXP_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ 204 #endif // V8_REGEXP_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/regexp/bytecodes-irregexp.h ('k') | src/regexp/ia32/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698