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

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

Issue 153773002: A64: Synchronize with r16679. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Load a number of characters at the given offset from the 153 // Load a number of characters at the given offset from the
154 // current position, into the current-character register. 154 // current position, into the current-character register.
155 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); 155 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count);
156 156
157 // Check whether preemption has been requested. 157 // Check whether preemption has been requested.
158 void CheckPreemption(); 158 void CheckPreemption();
159 159
160 // Check whether we are exceeding the stack limit on the backtrack stack. 160 // Check whether we are exceeding the stack limit on the backtrack stack.
161 void CheckStackLimit(); 161 void CheckStackLimit();
162 162
163 void EmitBacktrackConstantPool();
164 int GetBacktrackConstantPoolEntry();
165
166 163
167 // Generate a call to CheckStackGuardState. 164 // Generate a call to CheckStackGuardState.
168 void CallCheckStackGuardState(Register scratch); 165 void CallCheckStackGuardState(Register scratch);
169 166
170 // The ebp-relative location of a regexp register. 167 // The ebp-relative location of a regexp register.
171 MemOperand register_location(int register_index); 168 MemOperand register_location(int register_index);
172 169
173 // Register holding the current input position as negative offset from 170 // Register holding the current input position as negative offset from
174 // the end of the string. 171 // the end of the string.
175 inline Register current_input_offset() { return r6; } 172 inline Register current_input_offset() { return r6; }
(...skipping 29 matching lines...) Expand all
205 inline void SafeCallTarget(Label* name); 202 inline void SafeCallTarget(Label* name);
206 203
207 // Pushes the value of a register on the backtrack stack. Decrements the 204 // Pushes the value of a register on the backtrack stack. Decrements the
208 // stack pointer by a word size and stores the register's value there. 205 // stack pointer by a word size and stores the register's value there.
209 inline void Push(Register source); 206 inline void Push(Register source);
210 207
211 // Pops a value from the backtrack stack. Reads the word at the stack pointer 208 // Pops a value from the backtrack stack. Reads the word at the stack pointer
212 // and increments it by a word size. 209 // and increments it by a word size.
213 inline void Pop(Register target); 210 inline void Pop(Register target);
214 211
215 // Calls a C function and cleans up the frame alignment done by
216 // by FrameAlign. The called function *is* allowed to trigger a garbage
217 // collection, but may not take more than four arguments (no arguments
218 // passed on the stack), and the first argument will be a pointer to the
219 // return address.
220 inline void CallCFunctionUsingStub(ExternalReference function,
221 int num_arguments);
222
223 Isolate* isolate() const { return masm_->isolate(); } 212 Isolate* isolate() const { return masm_->isolate(); }
224 213
225 MacroAssembler* masm_; 214 MacroAssembler* masm_;
226 215
227 // Which mode to generate code for (ASCII or UC16). 216 // Which mode to generate code for (ASCII or UC16).
228 Mode mode_; 217 Mode mode_;
229 218
230 // One greater than maximal register index actually used. 219 // One greater than maximal register index actually used.
231 int num_registers_; 220 int num_registers_;
232 221
(...skipping 15 matching lines...) Expand all
248 Label check_preempt_label_; 237 Label check_preempt_label_;
249 Label stack_overflow_label_; 238 Label stack_overflow_label_;
250 }; 239 };
251 240
252 #endif // V8_INTERPRETED_REGEXP 241 #endif // V8_INTERPRETED_REGEXP
253 242
254 243
255 }} // namespace v8::internal 244 }} // namespace v8::internal
256 245
257 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ 246 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm/regexp-macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698