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

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

Issue 1988009: RegExp: Remove use of 16-bit immediates on ia32/x64. (Closed)
Patch Set: Created 10 years, 7 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
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // we use. We push this after the frame pointer (and after the 166 // we use. We push this after the frame pointer (and after the
167 // parameters). 167 // parameters).
168 static const int kBackup_rbx = kStackHighEnd - kPointerSize; 168 static const int kBackup_rbx = kStackHighEnd - kPointerSize;
169 static const int kLastCalleeSaveRegister = kBackup_rbx; 169 static const int kLastCalleeSaveRegister = kBackup_rbx;
170 #endif 170 #endif
171 171
172 // When adding local variables remember to push space for them in 172 // When adding local variables remember to push space for them in
173 // the frame in GetCode. 173 // the frame in GetCode.
174 static const int kInputStartMinusOne = 174 static const int kInputStartMinusOne =
175 kLastCalleeSaveRegister - kPointerSize; 175 kLastCalleeSaveRegister - kPointerSize;
176 static const int kAtStart = kInputStartMinusOne - kPointerSize;
177 176
178 // First register address. Following registers are below it on the stack. 177 // First register address. Following registers are below it on the stack.
179 static const int kRegisterZero = kAtStart - kPointerSize; 178 static const int kRegisterZero = kInputStartMinusOne - kPointerSize;
180 179
181 // Initial size of code buffer. 180 // Initial size of code buffer.
182 static const size_t kRegExpCodeSize = 1024; 181 static const size_t kRegExpCodeSize = 1024;
183 182
184 // Load a number of characters at the given offset from the 183 // Load a number of characters at the given offset from the
185 // current position, into the current-character register. 184 // current position, into the current-character register.
186 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); 185 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count);
187 186
188 // Check whether preemption has been requested. 187 // Check whether preemption has been requested.
189 void CheckPreemption(); 188 void CheckPreemption();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 Label exit_label_; 268 Label exit_label_;
270 Label check_preempt_label_; 269 Label check_preempt_label_;
271 Label stack_overflow_label_; 270 Label stack_overflow_label_;
272 }; 271 };
273 272
274 #endif // V8_INTERPRETED_REGEXP 273 #endif // V8_INTERPRETED_REGEXP
275 274
276 }} // namespace v8::internal 275 }} // namespace v8::internal
277 276
278 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ 277 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698