| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 void ReadChar(Register destination, int offset); | 122 void ReadChar(Register destination, int offset); |
| 123 | 123 |
| 124 // Load the address of a "constant buffer" (a slice of a byte array) | 124 // Load the address of a "constant buffer" (a slice of a byte array) |
| 125 // into a register. The address is computed from the ByteArray* address | 125 // into a register. The address is computed from the ByteArray* address |
| 126 // and an offset. Uses no extra registers. | 126 // and an offset. Uses no extra registers. |
| 127 void LoadConstantBufferAddress(Register reg, ArraySlice* buffer); | 127 void LoadConstantBufferAddress(Register reg, ArraySlice* buffer); |
| 128 | 128 |
| 129 // Read the current character into the destination register. | 129 // Read the current character into the destination register. |
| 130 void ReadCurrentChar(Register destination); | 130 void ReadCurrentChar(Register destination); |
| 131 | 131 |
| 132 // Adds code that checks whether preemption has been requested |
| 133 // (and checks if we have hit the stack limit too). |
| 134 void CheckStackLimit(); |
| 135 |
| 132 // Initial size of code buffer. | 136 // Initial size of code buffer. |
| 133 static const size_t kRegExpCodeSize = 1024; | 137 static const size_t kRegExpCodeSize = 1024; |
| 134 // Initial size of constant buffers allocated during compilation. | 138 // Initial size of constant buffers allocated during compilation. |
| 135 static const int kRegExpConstantsSize = 256; | 139 static const int kRegExpConstantsSize = 256; |
| 136 // Only unroll loops up to this length. | 140 // Only unroll loops up to this length. |
| 137 static const int kMaxInlineStringTests = 8; | 141 static const int kMaxInlineStringTests = 8; |
| 138 // Special "character" marking end of input. | 142 // Special "character" marking end of input. |
| 139 static const uint32_t kEndOfInput = ~0; | 143 static const uint32_t kEndOfInput = ~0; |
| 140 | 144 |
| 141 MacroAssembler* masm_; | 145 MacroAssembler* masm_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 155 Label success_label_; | 159 Label success_label_; |
| 156 Label exit_label_; | 160 Label exit_label_; |
| 157 // Handle used to represent the generated code object itself. | 161 // Handle used to represent the generated code object itself. |
| 158 Handle<Object> self_; | 162 Handle<Object> self_; |
| 159 }; | 163 }; |
| 160 }} | 164 }} |
| 161 | 165 |
| 162 #endif // !ARM | 166 #endif // !ARM |
| 163 | 167 |
| 164 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ | 168 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ |
| OLD | NEW |