| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 Register scratch, | 205 Register scratch, |
| 206 Label* chars_not_equal, | 206 Label* chars_not_equal, |
| 207 Label::Distance near_jump = Label::kFar); | 207 Label::Distance near_jump = Label::kFar); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 | 210 |
| 211 class NumberToStringStub: public PlatformCodeStub { | 211 class NumberToStringStub: public PlatformCodeStub { |
| 212 public: | 212 public: |
| 213 NumberToStringStub() { } | 213 NumberToStringStub() { } |
| 214 | 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: | 215 private: |
| 228 static void GenerateConvertHashCodeToIndex(MacroAssembler* masm, | |
| 229 Register hash, | |
| 230 Register mask); | |
| 231 | |
| 232 Major MajorKey() { return NumberToString; } | 216 Major MajorKey() { return NumberToString; } |
| 233 int MinorKey() { return 0; } | 217 int MinorKey() { return 0; } |
| 234 | 218 |
| 235 void Generate(MacroAssembler* masm); | 219 void Generate(MacroAssembler* masm); |
| 236 }; | 220 }; |
| 237 | 221 |
| 238 | 222 |
| 239 class NameDictionaryLookupStub: public PlatformCodeStub { | 223 class NameDictionaryLookupStub: public PlatformCodeStub { |
| 240 public: | 224 public: |
| 241 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; | 225 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 RememberedSetAction remembered_set_action_; | 518 RememberedSetAction remembered_set_action_; |
| 535 SaveFPRegsMode save_fp_regs_mode_; | 519 SaveFPRegsMode save_fp_regs_mode_; |
| 536 Label slow_; | 520 Label slow_; |
| 537 RegisterAllocation regs_; | 521 RegisterAllocation regs_; |
| 538 }; | 522 }; |
| 539 | 523 |
| 540 | 524 |
| 541 } } // namespace v8::internal | 525 } } // namespace v8::internal |
| 542 | 526 |
| 543 #endif // V8_X64_CODE_STUBS_X64_H_ | 527 #endif // V8_X64_CODE_STUBS_X64_H_ |
| OLD | NEW |