OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // Generate code to do a lookup in the number string cache. If the number in | 230 // Generate code to do a lookup in the number string cache. If the number in |
231 // the register object is found in the cache the generated code falls through | 231 // the register object is found in the cache the generated code falls through |
232 // with the result in the result register. The object and the result register | 232 // with the result in the result register. The object and the result register |
233 // can be the same. If the number is not found in the cache the code jumps to | 233 // can be the same. If the number is not found in the cache the code jumps to |
234 // the label not_found with only the content of register object unchanged. | 234 // the label not_found with only the content of register object unchanged. |
235 static void GenerateLookupNumberStringCache(MacroAssembler* masm, | 235 static void GenerateLookupNumberStringCache(MacroAssembler* masm, |
236 Register object, | 236 Register object, |
237 Register result, | 237 Register result, |
238 Register scratch1, | 238 Register scratch1, |
239 Register scratch2, | 239 Register scratch2, |
240 bool object_is_smi, | |
241 Label* not_found); | 240 Label* not_found); |
242 | 241 |
243 private: | 242 private: |
244 static void GenerateConvertHashCodeToIndex(MacroAssembler* masm, | 243 static void GenerateConvertHashCodeToIndex(MacroAssembler* masm, |
245 Register hash, | 244 Register hash, |
246 Register mask); | 245 Register mask); |
247 | 246 |
248 Major MajorKey() { return NumberToString; } | 247 Major MajorKey() { return NumberToString; } |
249 int MinorKey() { return 0; } | 248 int MinorKey() { return 0; } |
250 | 249 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 RememberedSetAction remembered_set_action_; | 549 RememberedSetAction remembered_set_action_; |
551 SaveFPRegsMode save_fp_regs_mode_; | 550 SaveFPRegsMode save_fp_regs_mode_; |
552 Label slow_; | 551 Label slow_; |
553 RegisterAllocation regs_; | 552 RegisterAllocation regs_; |
554 }; | 553 }; |
555 | 554 |
556 | 555 |
557 } } // namespace v8::internal | 556 } } // namespace v8::internal |
558 | 557 |
559 #endif // V8_X64_CODE_STUBS_X64_H_ | 558 #endif // V8_X64_CODE_STUBS_X64_H_ |
OLD | NEW |