| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 static const int kRegisterOutput = kInputEnd + kPointerSize; | 125 static const int kRegisterOutput = kInputEnd + kPointerSize; |
| 126 static const int kStackHighEnd = kRegisterOutput + kPointerSize; | 126 static const int kStackHighEnd = kRegisterOutput + kPointerSize; |
| 127 static const int kDirectCall = kStackHighEnd + kPointerSize; | 127 static const int kDirectCall = kStackHighEnd + kPointerSize; |
| 128 // Below the frame pointer - local stack variables. | 128 // Below the frame pointer - local stack variables. |
| 129 // When adding local variables remember to push space for them in | 129 // When adding local variables remember to push space for them in |
| 130 // the frame in GetCode. | 130 // the frame in GetCode. |
| 131 static const int kBackup_esi = kFramePointer - kPointerSize; | 131 static const int kBackup_esi = kFramePointer - kPointerSize; |
| 132 static const int kBackup_edi = kBackup_esi - kPointerSize; | 132 static const int kBackup_edi = kBackup_esi - kPointerSize; |
| 133 static const int kBackup_ebx = kBackup_edi - kPointerSize; | 133 static const int kBackup_ebx = kBackup_edi - kPointerSize; |
| 134 static const int kInputStartMinusOne = kBackup_ebx - kPointerSize; | 134 static const int kInputStartMinusOne = kBackup_ebx - kPointerSize; |
| 135 static const int kAtStart = kInputStartMinusOne - kPointerSize; | |
| 136 // First register address. Following registers are below it on the stack. | 135 // First register address. Following registers are below it on the stack. |
| 137 static const int kRegisterZero = kAtStart - kPointerSize; | 136 static const int kRegisterZero = kInputStartMinusOne - kPointerSize; |
| 138 | 137 |
| 139 // Initial size of code buffer. | 138 // Initial size of code buffer. |
| 140 static const size_t kRegExpCodeSize = 1024; | 139 static const size_t kRegExpCodeSize = 1024; |
| 141 | 140 |
| 142 // Load a number of characters at the given offset from the | 141 // Load a number of characters at the given offset from the |
| 143 // current position, into the current-character register. | 142 // current position, into the current-character register. |
| 144 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); | 143 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); |
| 145 | 144 |
| 146 // Check whether preemption has been requested. | 145 // Check whether preemption has been requested. |
| 147 void CheckPreemption(); | 146 void CheckPreemption(); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 Label backtrack_label_; | 205 Label backtrack_label_; |
| 207 Label exit_label_; | 206 Label exit_label_; |
| 208 Label check_preempt_label_; | 207 Label check_preempt_label_; |
| 209 Label stack_overflow_label_; | 208 Label stack_overflow_label_; |
| 210 }; | 209 }; |
| 211 #endif // V8_INTERPRETED_REGEXP | 210 #endif // V8_INTERPRETED_REGEXP |
| 212 | 211 |
| 213 }} // namespace v8::internal | 212 }} // namespace v8::internal |
| 214 | 213 |
| 215 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 214 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |