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

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

Issue 507051: Attempt to make \b\w+ faster. Slight performance increase on, e.g., string unpacking. (Closed)
Patch Set: Addressed review comments. Created 10 years, 11 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 uint32_t mask, 66 uint32_t mask,
67 Label* on_not_equal); 67 Label* on_not_equal);
68 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, 68 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
69 uc16 minus, 69 uc16 minus,
70 uc16 mask, 70 uc16 mask,
71 Label* on_not_equal); 71 Label* on_not_equal);
72 // Checks whether the given offset from the current position is before 72 // Checks whether the given offset from the current position is before
73 // the end of the string. 73 // the end of the string.
74 virtual void CheckPosition(int cp_offset, Label* on_outside_input); 74 virtual void CheckPosition(int cp_offset, Label* on_outside_input);
75 virtual bool CheckSpecialCharacterClass(uc16 type, 75 virtual bool CheckSpecialCharacterClass(uc16 type,
76 int cp_offset,
77 bool check_offset,
78 Label* on_no_match); 76 Label* on_no_match);
79 virtual void Fail(); 77 virtual void Fail();
80 virtual Handle<Object> GetCode(Handle<String> source); 78 virtual Handle<Object> GetCode(Handle<String> source);
81 virtual void GoTo(Label* label); 79 virtual void GoTo(Label* label);
82 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge); 80 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge);
83 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt); 81 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt);
84 virtual void IfRegisterEqPos(int reg, Label* if_eq); 82 virtual void IfRegisterEqPos(int reg, Label* if_eq);
85 virtual IrregexpImplementation Implementation(); 83 virtual IrregexpImplementation Implementation();
86 virtual void LoadCurrentCharacter(int cp_offset, 84 virtual void LoadCurrentCharacter(int cp_offset,
87 Label* on_end_of_input, 85 Label* on_end_of_input,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 Label exit_label_; 283 Label exit_label_;
286 Label check_preempt_label_; 284 Label check_preempt_label_;
287 Label stack_overflow_label_; 285 Label stack_overflow_label_;
288 }; 286 };
289 287
290 #endif // V8_NATIVE_REGEXP 288 #endif // V8_NATIVE_REGEXP
291 289
292 }} // namespace v8::internal 290 }} // namespace v8::internal
293 291
294 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ 292 #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