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

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

Issue 6759025: Version 3.2.6 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 8 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/x64/lithium-codegen-x64.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 inline Register code_object_pointer() { return r8; } 211 inline Register code_object_pointer() { return r8; }
212 212
213 // Byte size of chars in the string to match (decided by the Mode argument) 213 // Byte size of chars in the string to match (decided by the Mode argument)
214 inline int char_size() { return static_cast<int>(mode_); } 214 inline int char_size() { return static_cast<int>(mode_); }
215 215
216 // Equivalent to a conditional branch to the label, unless the label 216 // Equivalent to a conditional branch to the label, unless the label
217 // is NULL, in which case it is a conditional Backtrack. 217 // is NULL, in which case it is a conditional Backtrack.
218 void BranchOrBacktrack(Condition condition, Label* to); 218 void BranchOrBacktrack(Condition condition, Label* to);
219 219
220 void MarkPositionForCodeRelativeFixup() { 220 void MarkPositionForCodeRelativeFixup() {
221 code_relative_fixup_positions_.Add(masm_->pc_offset()); 221 code_relative_fixup_positions_.Add(masm_.pc_offset());
222 } 222 }
223 223
224 void FixupCodeRelativePositions(); 224 void FixupCodeRelativePositions();
225 225
226 // Call and return internally in the generated code in a way that 226 // Call and return internally in the generated code in a way that
227 // is GC-safe (i.e., doesn't leave absolute code addresses on the stack) 227 // is GC-safe (i.e., doesn't leave absolute code addresses on the stack)
228 inline void SafeCall(Label* to); 228 inline void SafeCall(Label* to);
229 inline void SafeCallTarget(Label* label); 229 inline void SafeCallTarget(Label* label);
230 inline void SafeReturn(); 230 inline void SafeReturn();
231 231
(...skipping 11 matching lines...) Expand all
243 inline void Push(Label* label); 243 inline void Push(Label* label);
244 244
245 // Pops a value from the backtrack stack. Reads the word at the stack pointer 245 // Pops a value from the backtrack stack. Reads the word at the stack pointer
246 // (rcx) and increments it by a word size. 246 // (rcx) and increments it by a word size.
247 inline void Pop(Register target); 247 inline void Pop(Register target);
248 248
249 // Drops the top value from the backtrack stack without reading it. 249 // Drops the top value from the backtrack stack without reading it.
250 // Increments the stack pointer (rcx) by a word size. 250 // Increments the stack pointer (rcx) by a word size.
251 inline void Drop(); 251 inline void Drop();
252 252
253 MacroAssembler* masm_; 253 MacroAssembler masm_;
254 MacroAssembler::NoRootArrayScope no_root_array_scope_; 254 MacroAssembler::NoRootArrayScope no_root_array_scope_;
255 255
256 ZoneList<int> code_relative_fixup_positions_; 256 ZoneList<int> code_relative_fixup_positions_;
257 257
258 // Which mode to generate code for (ASCII or UC16). 258 // Which mode to generate code for (ASCII or UC16).
259 Mode mode_; 259 Mode mode_;
260 260
261 // One greater than maximal register index actually used. 261 // One greater than maximal register index actually used.
262 int num_registers_; 262 int num_registers_;
263 263
264 // Number of registers to output at the end (the saved registers 264 // Number of registers to output at the end (the saved registers
265 // are always 0..num_saved_registers_-1) 265 // are always 0..num_saved_registers_-1)
266 int num_saved_registers_; 266 int num_saved_registers_;
267 267
268 // Labels used internally. 268 // Labels used internally.
269 Label entry_label_; 269 Label entry_label_;
270 Label start_label_; 270 Label start_label_;
271 Label success_label_; 271 Label success_label_;
272 Label backtrack_label_; 272 Label backtrack_label_;
273 Label exit_label_; 273 Label exit_label_;
274 Label check_preempt_label_; 274 Label check_preempt_label_;
275 Label stack_overflow_label_; 275 Label stack_overflow_label_;
276 }; 276 };
277 277
278 #endif // V8_INTERPRETED_REGEXP 278 #endif // V8_INTERPRETED_REGEXP
279 279
280 }} // namespace v8::internal 280 }} // namespace v8::internal
281 281
282 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ 282 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698