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

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

Issue 20536: Add test to check that RegExp-ia32 can survive a garbage collection during execution. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « no previous file | src/regexp-macro-assembler-ia32.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Check whether preemption has been requested. 160 // Check whether preemption has been requested.
161 void CheckPreemption(); 161 void CheckPreemption();
162 162
163 // Check whether we are exceeding the stack limit on the backtrack stack. 163 // Check whether we are exceeding the stack limit on the backtrack stack.
164 void CheckStackLimit(); 164 void CheckStackLimit();
165 165
166 // Called from RegExp if the stack-guard is triggered. 166 // Called from RegExp if the stack-guard is triggered.
167 // If the code object is relocated, the return address is fixed before 167 // If the code object is relocated, the return address is fixed before
168 // returning. 168 // returning.
169 static int CheckStackGuardState(Address return_address, Code* re_code); 169 static int CheckStackGuardState(Address* return_address, Code* re_code);
170 170
171 // Called from RegExp if the backtrack stack limit is hit. 171 // Called from RegExp if the backtrack stack limit is hit.
172 // Tries to expand the stack. Returns the new stack-pointer if 172 // Tries to expand the stack. Returns the new stack-pointer if
173 // successful, and updates the stack_top address, or returns 0 if unable 173 // successful, and updates the stack_top address, or returns 0 if unable
174 // to grow the stack. 174 // to grow the stack.
175 // This function must not trigger a garbage collection. 175 // This function must not trigger a garbage collection.
176 static Address GrowStack(Address stack_pointer, Address* stack_top); 176 static Address GrowStack(Address stack_pointer, Address* stack_top);
177 177
178 // The ebp-relative location of a regexp register. 178 // The ebp-relative location of a regexp register.
179 Operand register_location(int register_index); 179 Operand register_location(int register_index);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 Label check_preempt_label_; 254 Label check_preempt_label_;
255 Label stack_overflow_label_; 255 Label stack_overflow_label_;
256 256
257 // Handle used to represent the generated code object itself. 257 // Handle used to represent the generated code object itself.
258 Handle<Object> self_; 258 Handle<Object> self_;
259 }; 259 };
260 260
261 }} // namespace v8::internal 261 }} // namespace v8::internal
262 262
263 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ 263 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */
OLDNEW
« no previous file with comments | « no previous file | src/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698