Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: src/ia32/regexp-macro-assembler-ia32.h

Issue 554078: Don't pass the "at start" parameter to native RegExp... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 static const int kFramePointer = 0; 116 static const int kFramePointer = 0;
117 // Above the frame pointer - function parameters and return address. 117 // Above the frame pointer - function parameters and return address.
118 static const int kReturn_eip = kFramePointer + kPointerSize; 118 static const int kReturn_eip = kFramePointer + kPointerSize;
119 static const int kFrameAlign = kReturn_eip + kPointerSize; 119 static const int kFrameAlign = kReturn_eip + kPointerSize;
120 // Parameters. 120 // Parameters.
121 static const int kInputString = kFrameAlign; 121 static const int kInputString = kFrameAlign;
122 static const int kStartIndex = kInputString + kPointerSize; 122 static const int kStartIndex = kInputString + kPointerSize;
123 static const int kInputStart = kStartIndex + kPointerSize; 123 static const int kInputStart = kStartIndex + kPointerSize;
124 static const int kInputEnd = kInputStart + kPointerSize; 124 static const int kInputEnd = kInputStart + kPointerSize;
125 static const int kRegisterOutput = kInputEnd + kPointerSize; 125 static const int kRegisterOutput = kInputEnd + 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 // Below the frame pointer - local stack variables. 128 // Below the frame pointer - local stack variables.
130 // When adding local variables remember to push space for them in 129 // When adding local variables remember to push space for them in
131 // the frame in GetCode. 130 // the frame in GetCode.
132 static const int kBackup_esi = kFramePointer - kPointerSize; 131 static const int kBackup_esi = kFramePointer - kPointerSize;
133 static const int kBackup_edi = kBackup_esi - kPointerSize; 132 static const int kBackup_edi = kBackup_esi - kPointerSize;
134 static const int kBackup_ebx = kBackup_edi - kPointerSize; 133 static const int kBackup_ebx = kBackup_edi - kPointerSize;
135 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. 136 // First register address. Following registers are below it on the stack.
137 static const int kRegisterZero = kInputStartMinusOne - kPointerSize; 137 static const int kRegisterZero = kAtStart - kPointerSize;
138 138
139 // Initial size of code buffer. 139 // Initial size of code buffer.
140 static const size_t kRegExpCodeSize = 1024; 140 static const size_t kRegExpCodeSize = 1024;
141 141
142 // Load a number of characters at the given offset from the 142 // Load a number of characters at the given offset from the
143 // current position, into the current-character register. 143 // current position, into the current-character register.
144 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); 144 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count);
145 145
146 // Check whether preemption has been requested. 146 // Check whether preemption has been requested.
147 void CheckPreemption(); 147 void CheckPreemption();
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 Label backtrack_label_; 221 Label backtrack_label_;
222 Label exit_label_; 222 Label exit_label_;
223 Label check_preempt_label_; 223 Label check_preempt_label_;
224 Label stack_overflow_label_; 224 Label stack_overflow_label_;
225 }; 225 };
226 #endif // V8_NATIVE_REGEXP 226 #endif // V8_NATIVE_REGEXP
227 227
228 }} // namespace v8::internal 228 }} // namespace v8::internal
229 229
230 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ 230 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698