| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 587 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
| 588 stub->instruction_start()[0] = kTwoByteJumpInstruction; | 588 stub->instruction_start()[0] = kTwoByteJumpInstruction; |
| 589 break; | 589 break; |
| 590 case INCREMENTAL_COMPACTION: | 590 case INCREMENTAL_COMPACTION: |
| 591 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 591 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
| 592 stub->instruction_start()[0] = kTwoByteNopInstruction; | 592 stub->instruction_start()[0] = kTwoByteNopInstruction; |
| 593 stub->instruction_start()[2] = kFiveByteJumpInstruction; | 593 stub->instruction_start()[2] = kFiveByteJumpInstruction; |
| 594 break; | 594 break; |
| 595 } | 595 } |
| 596 ASSERT(GetMode(stub) == mode); | 596 ASSERT(GetMode(stub) == mode); |
| 597 CPU::FlushICache(stub->instruction_start(), 7); |
| 597 } | 598 } |
| 598 | 599 |
| 599 private: | 600 private: |
| 600 // This is a helper class for freeing up 3 scratch registers, where the third | 601 // This is a helper class for freeing up 3 scratch registers, where the third |
| 601 // is always ecx (needed for shift operations). The input is two registers | 602 // is always ecx (needed for shift operations). The input is two registers |
| 602 // that must be preserved and one scratch register provided by the caller. | 603 // that must be preserved and one scratch register provided by the caller. |
| 603 class RegisterAllocation { | 604 class RegisterAllocation { |
| 604 public: | 605 public: |
| 605 RegisterAllocation(Register object, | 606 RegisterAllocation(Register object, |
| 606 Register address, | 607 Register address, |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 Register scratch1, | 815 Register scratch1, |
| 815 bool load_elements_from_receiver, | 816 bool load_elements_from_receiver, |
| 816 Label* key_not_smi, | 817 Label* key_not_smi, |
| 817 Label* value_not_smi, | 818 Label* value_not_smi, |
| 818 Label* not_pixel_array, | 819 Label* not_pixel_array, |
| 819 Label* out_of_range); | 820 Label* out_of_range); |
| 820 | 821 |
| 821 } } // namespace v8::internal | 822 } } // namespace v8::internal |
| 822 | 823 |
| 823 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 824 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
| OLD | NEW |