| OLD | NEW |
| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 // Pops a value from the backtrack stack. Reads the word at the stack pointer | 213 // Pops a value from the backtrack stack. Reads the word at the stack pointer |
| 214 // (ecx) and increments it by a word size. | 214 // (ecx) and increments it by a word size. |
| 215 inline void Pop(Register target); | 215 inline void Pop(Register target); |
| 216 | 216 |
| 217 // Before calling a C-function from generated code, align arguments on stack. | 217 // Before calling a C-function from generated code, align arguments on stack. |
| 218 // After aligning the frame, arguments must be stored in esp[0], esp[4], | 218 // After aligning the frame, arguments must be stored in esp[0], esp[4], |
| 219 // etc., not pushed. The argument count assumes all arguments are word sized. | 219 // etc., not pushed. The argument count assumes all arguments are word sized. |
| 220 // Some compilers/platforms require the stack to be aligned when calling | 220 // Some compilers/platforms require the stack to be aligned when calling |
| 221 // C++ code. | 221 // C++ code. |
| 222 inline void FrameAlign(int num_arguments); | 222 // Needs a scratch register to do some arithmetic. This register will be |
| 223 // trashed. |
| 224 inline void FrameAlign(int num_arguments, Register scratch); |
| 223 | 225 |
| 224 // Calls a C function and cleans up the space for arguments allocated | 226 // Calls a C function and cleans up the space for arguments allocated |
| 225 // by FrameAlign. The called function is not allowed to trigger a garbage | 227 // by FrameAlign. The called function is not allowed to trigger a garbage |
| 226 // collection, since that might move the code and invalidate the return | 228 // collection, since that might move the code and invalidate the return |
| 227 // address (unless this is somehow accounted for). | 229 // address (unless this is somehow accounted for). |
| 228 inline void CallCFunction(Address function_address, int num_arguments); | 230 inline void CallCFunction(Address function_address, int num_arguments); |
| 229 | 231 |
| 230 MacroAssembler* masm_; | 232 MacroAssembler* masm_; |
| 231 | 233 |
| 232 // Constant buffer provider. Allocates external storage for storing | 234 // Constant buffer provider. Allocates external storage for storing |
| (...skipping 19 matching lines...) Expand all Loading... |
| 252 Label check_preempt_label_; | 254 Label check_preempt_label_; |
| 253 Label stack_overflow_label_; | 255 Label stack_overflow_label_; |
| 254 | 256 |
| 255 // Handle used to represent the generated code object itself. | 257 // Handle used to represent the generated code object itself. |
| 256 Handle<Object> self_; | 258 Handle<Object> self_; |
| 257 }; | 259 }; |
| 258 | 260 |
| 259 }} // namespace v8::internal | 261 }} // namespace v8::internal |
| 260 | 262 |
| 261 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ | 263 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ |
| OLD | NEW |