OLD | NEW |
1 // Copyright 2008-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2008-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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 // Load the address of a "constant buffer" (a slice of a byte array) | 221 // Load the address of a "constant buffer" (a slice of a byte array) |
222 // into a register. The address is computed from the ByteArray* address | 222 // into a register. The address is computed from the ByteArray* address |
223 // and an offset. Uses no extra registers. | 223 // and an offset. Uses no extra registers. |
224 void LoadConstantBufferAddress(Register reg, ArraySlice* buffer); | 224 void LoadConstantBufferAddress(Register reg, ArraySlice* buffer); |
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 SafeReturn(); | 229 inline void SafeReturn(); |
| 230 inline void SafeCallTarget(Label* name); |
230 | 231 |
231 // Pushes the value of a register on the backtrack stack. Decrements the | 232 // Pushes the value of a register on the backtrack stack. Decrements the |
232 // stack pointer (ecx) by a word size and stores the register's value there. | 233 // stack pointer (ecx) by a word size and stores the register's value there. |
233 inline void Push(Register source); | 234 inline void Push(Register source); |
234 | 235 |
235 // Pushes a value on the backtrack stack. Decrements the stack pointer (ecx) | 236 // Pushes a value on the backtrack stack. Decrements the stack pointer (ecx) |
236 // by a word size and stores the value there. | 237 // by a word size and stores the value there. |
237 inline void Push(Immediate value); | 238 inline void Push(Immediate value); |
238 | 239 |
239 // Pops a value from the backtrack stack. Reads the word at the stack pointer | 240 // Pops a value from the backtrack stack. Reads the word at the stack pointer |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 Label success_label_; | 278 Label success_label_; |
278 Label backtrack_label_; | 279 Label backtrack_label_; |
279 Label exit_label_; | 280 Label exit_label_; |
280 Label check_preempt_label_; | 281 Label check_preempt_label_; |
281 Label stack_overflow_label_; | 282 Label stack_overflow_label_; |
282 }; | 283 }; |
283 | 284 |
284 }} // namespace v8::internal | 285 }} // namespace v8::internal |
285 | 286 |
286 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 287 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |