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

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

Issue 3357023: [Isolates] Pass current isolate address to the regexp native functions (Closed)
Patch Set: Made helper function private(ARM) Created 10 years, 3 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
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | src/x64/regexp-macro-assembler-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // use this space to store the register passed parameters. 134 // use this space to store the register passed parameters.
135 static const int kInputString = kFrameAlign; 135 static const int kInputString = kFrameAlign;
136 // StartIndex is passed as 32 bit int. 136 // StartIndex is passed as 32 bit int.
137 static const int kStartIndex = kInputString + kPointerSize; 137 static const int kStartIndex = kInputString + kPointerSize;
138 static const int kInputStart = kStartIndex + kPointerSize; 138 static const int kInputStart = kStartIndex + kPointerSize;
139 static const int kInputEnd = kInputStart + kPointerSize; 139 static const int kInputEnd = kInputStart + kPointerSize;
140 static const int kRegisterOutput = kInputEnd + kPointerSize; 140 static const int kRegisterOutput = kInputEnd + kPointerSize;
141 static const int kStackHighEnd = kRegisterOutput + kPointerSize; 141 static const int kStackHighEnd = kRegisterOutput + kPointerSize;
142 // DirectCall is passed as 32 bit int (values 0 or 1). 142 // DirectCall is passed as 32 bit int (values 0 or 1).
143 static const int kDirectCall = kStackHighEnd + kPointerSize; 143 static const int kDirectCall = kStackHighEnd + kPointerSize;
144 static const int kIsolate = kDirectCall + kPointerSize;
144 #else 145 #else
145 // In AMD64 ABI Calling Convention, the first six integer parameters 146 // In AMD64 ABI Calling Convention, the first six integer parameters
146 // are passed as registers, and caller must allocate space on the stack 147 // are passed as registers, and caller must allocate space on the stack
147 // if it wants them stored. We push the parameters after the frame pointer. 148 // if it wants them stored. We push the parameters after the frame pointer.
148 static const int kInputString = kFramePointer - kPointerSize; 149 static const int kInputString = kFramePointer - kPointerSize;
149 static const int kStartIndex = kInputString - kPointerSize; 150 static const int kStartIndex = kInputString - kPointerSize;
150 static const int kInputStart = kStartIndex - kPointerSize; 151 static const int kInputStart = kStartIndex - kPointerSize;
151 static const int kInputEnd = kInputStart - kPointerSize; 152 static const int kInputEnd = kInputStart - kPointerSize;
152 static const int kRegisterOutput = kInputEnd - kPointerSize; 153 static const int kRegisterOutput = kInputEnd - kPointerSize;
153 static const int kStackHighEnd = kRegisterOutput - kPointerSize; 154 static const int kStackHighEnd = kRegisterOutput - kPointerSize;
154 static const int kDirectCall = kFrameAlign; 155 static const int kDirectCall = kFrameAlign;
156 static const int kIsolate = kDirectCall + kPointerSize;
155 #endif 157 #endif
156 158
157 #ifdef _WIN64 159 #ifdef _WIN64
158 // Microsoft calling convention has three callee-saved registers 160 // Microsoft calling convention has three callee-saved registers
159 // (that we are using). We push these after the frame pointer. 161 // (that we are using). We push these after the frame pointer.
160 static const int kBackup_rsi = kFramePointer - kPointerSize; 162 static const int kBackup_rsi = kFramePointer - kPointerSize;
161 static const int kBackup_rdi = kBackup_rsi - kPointerSize; 163 static const int kBackup_rdi = kBackup_rsi - kPointerSize;
162 static const int kBackup_rbx = kBackup_rdi - kPointerSize; 164 static const int kBackup_rbx = kBackup_rdi - kPointerSize;
163 static const int kLastCalleeSaveRegister = kBackup_rbx; 165 static const int kLastCalleeSaveRegister = kBackup_rbx;
164 #else 166 #else
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 Label exit_label_; 270 Label exit_label_;
269 Label check_preempt_label_; 271 Label check_preempt_label_;
270 Label stack_overflow_label_; 272 Label stack_overflow_label_;
271 }; 273 };
272 274
273 #endif // V8_INTERPRETED_REGEXP 275 #endif // V8_INTERPRETED_REGEXP
274 276
275 }} // namespace v8::internal 277 }} // namespace v8::internal
276 278
277 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ 279 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | src/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698