| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // Offsets from frame_pointer() of function parameters and stored registers. | 116 // Offsets from frame_pointer() of function parameters and stored registers. |
| 117 static const int kFramePointer = 0; | 117 static const int kFramePointer = 0; |
| 118 | 118 |
| 119 // Above the frame pointer - Stored registers and stack passed parameters. | 119 // Above the frame pointer - Stored registers and stack passed parameters. |
| 120 // Register 4..11. | 120 // Register 4..11. |
| 121 static const int kStoredRegisters = kFramePointer; | 121 static const int kStoredRegisters = kFramePointer; |
| 122 // Return address (stored from link register, read into pc on return). | 122 // Return address (stored from link register, read into pc on return). |
| 123 static const int kReturnAddress = kStoredRegisters + 8 * kPointerSize; | 123 static const int kReturnAddress = kStoredRegisters + 8 * kPointerSize; |
| 124 // Stack parameters placed by caller. | 124 // Stack parameters placed by caller. |
| 125 static const int kRegisterOutput = kReturnAddress + kPointerSize; | 125 static const int kRegisterOutput = kReturnAddress + kPointerSize; |
| 126 static const int kAtStart = kRegisterOutput + kPointerSize; | 126 static const int kStackHighEnd = kRegisterOutput + kPointerSize; |
| 127 static const int kStackHighEnd = kAtStart + kPointerSize; | |
| 128 static const int kDirectCall = kStackHighEnd + kPointerSize; | 127 static const int kDirectCall = kStackHighEnd + kPointerSize; |
| 129 | 128 |
| 130 // Below the frame pointer. | 129 // Below the frame pointer. |
| 131 // Register parameters stored by setup code. | 130 // Register parameters stored by setup code. |
| 132 static const int kInputEnd = kFramePointer - kPointerSize; | 131 static const int kInputEnd = kFramePointer - kPointerSize; |
| 133 static const int kInputStart = kInputEnd - kPointerSize; | 132 static const int kInputStart = kInputEnd - kPointerSize; |
| 134 static const int kStartIndex = kInputStart - kPointerSize; | 133 static const int kStartIndex = kInputStart - kPointerSize; |
| 135 static const int kInputString = kStartIndex - kPointerSize; | 134 static const int kInputString = kStartIndex - kPointerSize; |
| 136 // When adding local variables remember to push space for them in | 135 // When adding local variables remember to push space for them in |
| 137 // the frame in GetCode. | 136 // the frame in GetCode. |
| 138 static const int kInputStartMinusOne = kInputString - kPointerSize; | 137 static const int kInputStartMinusOne = kInputString - kPointerSize; |
| 138 static const int kAtStart = kInputStartMinusOne - kPointerSize; |
| 139 // First register address. Following registers are below it on the stack. | 139 // First register address. Following registers are below it on the stack. |
| 140 static const int kRegisterZero = kInputStartMinusOne - kPointerSize; | 140 static const int kRegisterZero = kAtStart - kPointerSize; |
| 141 | 141 |
| 142 // Initial size of code buffer. | 142 // Initial size of code buffer. |
| 143 static const size_t kRegExpCodeSize = 1024; | 143 static const size_t kRegExpCodeSize = 1024; |
| 144 | 144 |
| 145 static const int kBacktrackConstantPoolSize = 4; | 145 static const int kBacktrackConstantPoolSize = 4; |
| 146 | 146 |
| 147 // Load a number of characters at the given offset from the | 147 // Load a number of characters at the given offset from the |
| 148 // current position, into the current-character register. | 148 // current position, into the current-character register. |
| 149 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); | 149 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); |
| 150 | 150 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 int MinorKey() { return 0; } | 273 int MinorKey() { return 0; } |
| 274 const char* GetName() { return "RegExpCEntryStub"; } | 274 const char* GetName() { return "RegExpCEntryStub"; } |
| 275 }; | 275 }; |
| 276 | 276 |
| 277 #endif // V8_NATIVE_REGEXP | 277 #endif // V8_NATIVE_REGEXP |
| 278 | 278 |
| 279 | 279 |
| 280 }} // namespace v8::internal | 280 }} // namespace v8::internal |
| 281 | 281 |
| 282 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 282 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |