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

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

Issue 3850005: Use finite-length end-anchored regexps to reduce part of regexp that is searched. (Closed)
Patch Set: Addressed review comments. Created 10 years, 2 months 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-macro-assembler-tracer.cc ('k') | src/x64/regexp-macro-assembler-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool check_bounds = true, 86 bool check_bounds = true,
87 int characters = 1); 87 int characters = 1);
88 virtual void PopCurrentPosition(); 88 virtual void PopCurrentPosition();
89 virtual void PopRegister(int register_index); 89 virtual void PopRegister(int register_index);
90 virtual void PushBacktrack(Label* label); 90 virtual void PushBacktrack(Label* label);
91 virtual void PushCurrentPosition(); 91 virtual void PushCurrentPosition();
92 virtual void PushRegister(int register_index, 92 virtual void PushRegister(int register_index,
93 StackCheckFlag check_stack_limit); 93 StackCheckFlag check_stack_limit);
94 virtual void ReadCurrentPositionFromRegister(int reg); 94 virtual void ReadCurrentPositionFromRegister(int reg);
95 virtual void ReadStackPointerFromRegister(int reg); 95 virtual void ReadStackPointerFromRegister(int reg);
96 virtual void SetCurrentPositionFromEnd(int by);
96 virtual void SetRegister(int register_index, int to); 97 virtual void SetRegister(int register_index, int to);
97 virtual void Succeed(); 98 virtual void Succeed();
98 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); 99 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset);
99 virtual void ClearRegisters(int reg_from, int reg_to); 100 virtual void ClearRegisters(int reg_from, int reg_to);
100 virtual void WriteStackPointerToRegister(int reg); 101 virtual void WriteStackPointerToRegister(int reg);
101 102
102 static Result Match(Handle<Code> regexp, 103 static Result Match(Handle<Code> regexp,
103 Handle<String> subject, 104 Handle<String> subject,
104 int* offsets_vector, 105 int* offsets_vector,
105 int offsets_vector_length, 106 int offsets_vector_length,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 Label exit_label_; 269 Label exit_label_;
269 Label check_preempt_label_; 270 Label check_preempt_label_;
270 Label stack_overflow_label_; 271 Label stack_overflow_label_;
271 }; 272 };
272 273
273 #endif // V8_INTERPRETED_REGEXP 274 #endif // V8_INTERPRETED_REGEXP
274 275
275 }} // namespace v8::internal 276 }} // namespace v8::internal
276 277
277 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ 278 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler-tracer.cc ('k') | src/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698