| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 // Note: A lot of the helper functions below will vanish when we use virtual | 125 // Note: A lot of the helper functions below will vanish when we use virtual |
| 126 // function instead of switch more often. | 126 // function instead of switch more often. |
| 127 void Generate(MacroAssembler* masm); | 127 void Generate(MacroAssembler* masm); |
| 128 | 128 |
| 129 void GenerateTypeTransition(MacroAssembler* masm); | 129 void GenerateTypeTransition(MacroAssembler* masm); |
| 130 | 130 |
| 131 void GenerateSmiStub(MacroAssembler* masm); | 131 void GenerateSmiStub(MacroAssembler* masm); |
| 132 void GenerateSmiStubSub(MacroAssembler* masm); | 132 void GenerateSmiStubSub(MacroAssembler* masm); |
| 133 void GenerateSmiStubBitNot(MacroAssembler* masm); | 133 void GenerateSmiStubBitNot(MacroAssembler* masm); |
| 134 void GenerateSmiCodeSub(MacroAssembler* masm, NearLabel* non_smi, | 134 void GenerateSmiCodeSub(MacroAssembler* masm, |
| 135 Label* slow); | 135 Label* non_smi, |
| 136 void GenerateSmiCodeBitNot(MacroAssembler* masm, NearLabel* non_smi); | 136 Label* slow, |
| 137 Label::Distance non_smi_near = Label::kFar, |
| 138 Label::Distance slow_near = Label::kFar); |
| 139 void GenerateSmiCodeBitNot(MacroAssembler* masm, |
| 140 Label* non_smi, |
| 141 Label::Distance non_smi_near); |
| 137 | 142 |
| 138 void GenerateHeapNumberStub(MacroAssembler* masm); | 143 void GenerateHeapNumberStub(MacroAssembler* masm); |
| 139 void GenerateHeapNumberStubSub(MacroAssembler* masm); | 144 void GenerateHeapNumberStubSub(MacroAssembler* masm); |
| 140 void GenerateHeapNumberStubBitNot(MacroAssembler* masm); | 145 void GenerateHeapNumberStubBitNot(MacroAssembler* masm); |
| 141 void GenerateHeapNumberCodeSub(MacroAssembler* masm, Label* slow); | 146 void GenerateHeapNumberCodeSub(MacroAssembler* masm, Label* slow); |
| 142 void GenerateHeapNumberCodeBitNot(MacroAssembler* masm, Label* slow); | 147 void GenerateHeapNumberCodeBitNot(MacroAssembler* masm, Label* slow); |
| 143 | 148 |
| 144 void GenerateGenericStub(MacroAssembler* masm); | 149 void GenerateGenericStub(MacroAssembler* masm); |
| 145 void GenerateGenericStubSub(MacroAssembler* masm); | 150 void GenerateGenericStubSub(MacroAssembler* masm); |
| 146 void GenerateGenericStubBitNot(MacroAssembler* masm); | 151 void GenerateGenericStubBitNot(MacroAssembler* masm); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 Register left, | 386 Register left, |
| 382 Register right, | 387 Register right, |
| 383 Register scratch1, | 388 Register scratch1, |
| 384 Register scratch2); | 389 Register scratch2); |
| 385 | 390 |
| 386 private: | 391 private: |
| 387 virtual Major MajorKey() { return StringCompare; } | 392 virtual Major MajorKey() { return StringCompare; } |
| 388 virtual int MinorKey() { return 0; } | 393 virtual int MinorKey() { return 0; } |
| 389 virtual void Generate(MacroAssembler* masm); | 394 virtual void Generate(MacroAssembler* masm); |
| 390 | 395 |
| 391 static void GenerateAsciiCharsCompareLoop(MacroAssembler* masm, | 396 static void GenerateAsciiCharsCompareLoop( |
| 392 Register left, | 397 MacroAssembler* masm, |
| 393 Register right, | 398 Register left, |
| 394 Register length, | 399 Register right, |
| 395 Register scratch, | 400 Register length, |
| 396 NearLabel* chars_not_equal); | 401 Register scratch, |
| 402 Label* chars_not_equal, |
| 403 Label::Distance near_jump = Label::kFar); |
| 397 }; | 404 }; |
| 398 | 405 |
| 399 | 406 |
| 400 class NumberToStringStub: public CodeStub { | 407 class NumberToStringStub: public CodeStub { |
| 401 public: | 408 public: |
| 402 NumberToStringStub() { } | 409 NumberToStringStub() { } |
| 403 | 410 |
| 404 // Generate code to do a lookup in the number string cache. If the number in | 411 // Generate code to do a lookup in the number string cache. If the number in |
| 405 // the register object is found in the cache the generated code falls through | 412 // the register object is found in the cache the generated code falls through |
| 406 // with the result in the result register. The object and the result register | 413 // with the result in the result register. The object and the result register |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 Register dictionary_; | 505 Register dictionary_; |
| 499 Register result_; | 506 Register result_; |
| 500 Register index_; | 507 Register index_; |
| 501 LookupMode mode_; | 508 LookupMode mode_; |
| 502 }; | 509 }; |
| 503 | 510 |
| 504 | 511 |
| 505 } } // namespace v8::internal | 512 } } // namespace v8::internal |
| 506 | 513 |
| 507 #endif // V8_X64_CODE_STUBS_X64_H_ | 514 #endif // V8_X64_CODE_STUBS_X64_H_ |
| OLD | NEW |