Revision f230a1cf deps/v8/src/x64/code-stubs-x64.h
deps/v8/src/x64/code-stubs-x64.h | ||
---|---|---|
208 | 208 |
}; |
209 | 209 |
|
210 | 210 |
|
211 |
class NumberToStringStub: public PlatformCodeStub { |
|
212 |
public: |
|
213 |
NumberToStringStub() { } |
|
214 |
|
|
215 |
// Generate code to do a lookup in the number string cache. If the number in |
|
216 |
// the register object is found in the cache the generated code falls through |
|
217 |
// with the result in the result register. The object and the result register |
|
218 |
// can be the same. If the number is not found in the cache the code jumps to |
|
219 |
// the label not_found with only the content of register object unchanged. |
|
220 |
static void GenerateLookupNumberStringCache(MacroAssembler* masm, |
|
221 |
Register object, |
|
222 |
Register result, |
|
223 |
Register scratch1, |
|
224 |
Register scratch2, |
|
225 |
Label* not_found); |
|
226 |
|
|
227 |
private: |
|
228 |
static void GenerateConvertHashCodeToIndex(MacroAssembler* masm, |
|
229 |
Register hash, |
|
230 |
Register mask); |
|
231 |
|
|
232 |
Major MajorKey() { return NumberToString; } |
|
233 |
int MinorKey() { return 0; } |
|
234 |
|
|
235 |
void Generate(MacroAssembler* masm); |
|
236 |
}; |
|
237 |
|
|
238 |
|
|
239 | 211 |
class NameDictionaryLookupStub: public PlatformCodeStub { |
240 | 212 |
public: |
241 | 213 |
enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; |
Also available in: Unified diff