OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 inline void SafeCallTarget(Label* name); | 210 inline void SafeCallTarget(Label* name); |
211 | 211 |
212 // Pushes the value of a register on the backtrack stack. Decrements the | 212 // Pushes the value of a register on the backtrack stack. Decrements the |
213 // stack pointer by a word size and stores the register's value there. | 213 // stack pointer by a word size and stores the register's value there. |
214 inline void Push(Register source); | 214 inline void Push(Register source); |
215 | 215 |
216 // Pops a value from the backtrack stack. Reads the word at the stack pointer | 216 // Pops a value from the backtrack stack. Reads the word at the stack pointer |
217 // and increments it by a word size. | 217 // and increments it by a word size. |
218 inline void Pop(Register target); | 218 inline void Pop(Register target); |
219 | 219 |
220 // Calls a C function and cleans up the frame alignment done by | |
221 // by FrameAlign. The called function *is* allowed to trigger a garbage | |
222 // collection, but may not take more than four arguments (no arguments | |
223 // passed on the stack), and the first argument will be a pointer to the | |
224 // return address. | |
225 inline void CallCFunctionUsingStub(ExternalReference function, | |
226 int num_arguments); | |
227 | |
228 Isolate* isolate() const { return masm_->isolate(); } | 220 Isolate* isolate() const { return masm_->isolate(); } |
229 | 221 |
230 MacroAssembler* masm_; | 222 MacroAssembler* masm_; |
231 | 223 |
232 // Which mode to generate code for (ASCII or UC16). | 224 // Which mode to generate code for (ASCII or UC16). |
233 Mode mode_; | 225 Mode mode_; |
234 | 226 |
235 // One greater than maximal register index actually used. | 227 // One greater than maximal register index actually used. |
236 int num_registers_; | 228 int num_registers_; |
237 | 229 |
(...skipping 11 matching lines...) Expand all Loading... |
249 Label stack_overflow_label_; | 241 Label stack_overflow_label_; |
250 Label internal_failure_label_; | 242 Label internal_failure_label_; |
251 }; | 243 }; |
252 | 244 |
253 #endif // V8_INTERPRETED_REGEXP | 245 #endif // V8_INTERPRETED_REGEXP |
254 | 246 |
255 | 247 |
256 }} // namespace v8::internal | 248 }} // namespace v8::internal |
257 | 249 |
258 #endif // V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 250 #endif // V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |