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

Side by Side Diff: src/arm/regexp-macro-assembler-arm.cc

Issue 178034: RegExp: Remove unnecessary function from ARM specific code and convert condition to assertion. (Closed)
Patch Set: Created 11 years, 3 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/arm/regexp-macro-assembler-arm.h ('k') | src/jsregexp.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 check_preempt_label_.Unuse(); 125 check_preempt_label_.Unuse();
126 stack_overflow_label_.Unuse(); 126 stack_overflow_label_.Unuse();
127 } 127 }
128 128
129 129
130 int RegExpMacroAssemblerARM::stack_limit_slack() { 130 int RegExpMacroAssemblerARM::stack_limit_slack() {
131 return RegExpStack::kStackLimitSlack; 131 return RegExpStack::kStackLimitSlack;
132 } 132 }
133 133
134 134
135 bool RegExpMacroAssemblerARM::CanReadUnaligned() {
136 #if V8_TARGET_CAN_READ_UNALIGNED
137 return true;
138 #else
139 return false;
140 #endif
141 }
142
143
144 void RegExpMacroAssemblerARM::AdvanceCurrentPosition(int by) { 135 void RegExpMacroAssemblerARM::AdvanceCurrentPosition(int by) {
145 if (by != 0) { 136 if (by != 0) {
146 Label inside_string; 137 Label inside_string;
147 __ add(current_input_offset(), 138 __ add(current_input_offset(),
148 current_input_offset(), Operand(by * char_size())); 139 current_input_offset(), Operand(by * char_size()));
149 } 140 }
150 } 141 }
151 142
152 143
153 void RegExpMacroAssemblerARM::AdvanceRegister(int reg, int by) { 144 void RegExpMacroAssemblerARM::AdvanceRegister(int reg, int by) {
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 __ mov(r0, sp); 1217 __ mov(r0, sp);
1227 __ Call(r5); 1218 __ Call(r5);
1228 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); 1219 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex));
1229 } 1220 }
1230 1221
1231 #undef __ 1222 #undef __
1232 1223
1233 #endif // V8_NATIVE_REGEXP 1224 #endif // V8_NATIVE_REGEXP
1234 1225
1235 }} // namespace v8::internal 1226 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698