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

Side by Side Diff: src/arm/regexp-macro-assembler-arm.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 | « no previous file | src/arm/regexp-macro-assembler-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 uint32_t mask, 73 uint32_t mask,
74 Label* on_not_equal); 74 Label* on_not_equal);
75 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, 75 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
76 uc16 minus, 76 uc16 minus,
77 uc16 mask, 77 uc16 mask,
78 Label* on_not_equal); 78 Label* on_not_equal);
79 // Checks whether the given offset from the current position is before 79 // Checks whether the given offset from the current position is before
80 // the end of the string. 80 // the end of the string.
81 virtual void CheckPosition(int cp_offset, Label* on_outside_input); 81 virtual void CheckPosition(int cp_offset, Label* on_outside_input);
82 virtual bool CheckSpecialCharacterClass(uc16 type, 82 virtual bool CheckSpecialCharacterClass(uc16 type,
83 int cp_offset,
84 bool check_offset,
85 Label* on_no_match); 83 Label* on_no_match);
86 virtual void Fail(); 84 virtual void Fail();
87 virtual Handle<Object> GetCode(Handle<String> source); 85 virtual Handle<Object> GetCode(Handle<String> source);
88 virtual void GoTo(Label* label); 86 virtual void GoTo(Label* label);
89 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge); 87 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge);
90 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt); 88 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt);
91 virtual void IfRegisterEqPos(int reg, Label* if_eq); 89 virtual void IfRegisterEqPos(int reg, Label* if_eq);
92 virtual IrregexpImplementation Implementation(); 90 virtual IrregexpImplementation Implementation();
93 virtual void LoadCurrentCharacter(int cp_offset, 91 virtual void LoadCurrentCharacter(int cp_offset,
94 Label* on_end_of_input, 92 Label* on_end_of_input,
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 int MinorKey() { return 0; } 272 int MinorKey() { return 0; }
275 const char* GetName() { return "RegExpCEntryStub"; } 273 const char* GetName() { return "RegExpCEntryStub"; }
276 }; 274 };
277 275
278 #endif // V8_NATIVE_REGEXP 276 #endif // V8_NATIVE_REGEXP
279 277
280 278
281 }} // namespace v8::internal 279 }} // namespace v8::internal
282 280
283 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ 281 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/regexp-macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698