OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 void Cmp(const Operand& dst, Smi* src); | 785 void Cmp(const Operand& dst, Smi* src); |
786 void Push(Handle<Object> source); | 786 void Push(Handle<Object> source); |
787 | 787 |
788 // Load a heap object and handle the case of new-space objects by | 788 // Load a heap object and handle the case of new-space objects by |
789 // indirecting via a global cell. | 789 // indirecting via a global cell. |
790 void LoadHeapObject(Register result, Handle<HeapObject> object); | 790 void LoadHeapObject(Register result, Handle<HeapObject> object); |
791 void CmpHeapObject(Register reg, Handle<HeapObject> object); | 791 void CmpHeapObject(Register reg, Handle<HeapObject> object); |
792 void PushHeapObject(Handle<HeapObject> object); | 792 void PushHeapObject(Handle<HeapObject> object); |
793 | 793 |
794 void LoadObject(Register result, Handle<Object> object) { | 794 void LoadObject(Register result, Handle<Object> object) { |
795 ALLOW_HANDLE_DEREF(isolate(), "heap object check"); | 795 ALLOW_DEFERRED_HANDLE_DEREF(isolate(), "heap object check"); |
796 if (object->IsHeapObject()) { | 796 if (object->IsHeapObject()) { |
797 LoadHeapObject(result, Handle<HeapObject>::cast(object)); | 797 LoadHeapObject(result, Handle<HeapObject>::cast(object)); |
798 } else { | 798 } else { |
799 Move(result, object); | 799 Move(result, object); |
800 } | 800 } |
801 } | 801 } |
802 | 802 |
803 void CmpObject(Register reg, Handle<Object> object) { | 803 void CmpObject(Register reg, Handle<Object> object) { |
804 ALLOW_HANDLE_DEREF(isolate(), "heap object check"); | 804 ALLOW_DEFERRED_HANDLE_DEREF(isolate(), "heap object check"); |
805 if (object->IsHeapObject()) { | 805 if (object->IsHeapObject()) { |
806 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); | 806 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); |
807 } else { | 807 } else { |
808 Cmp(reg, object); | 808 Cmp(reg, object); |
809 } | 809 } |
810 } | 810 } |
811 | 811 |
812 // Load a global cell into a register. | 812 // Load a global cell into a register. |
813 void LoadGlobalCell(Register dst, Handle<JSGlobalPropertyCell> cell); | 813 void LoadGlobalCell(Register dst, Handle<JSGlobalPropertyCell> cell); |
814 | 814 |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 masm->popfq(); \ | 1527 masm->popfq(); \ |
1528 } \ | 1528 } \ |
1529 masm-> | 1529 masm-> |
1530 #else | 1530 #else |
1531 #define ACCESS_MASM(masm) masm-> | 1531 #define ACCESS_MASM(masm) masm-> |
1532 #endif | 1532 #endif |
1533 | 1533 |
1534 } } // namespace v8::internal | 1534 } } // namespace v8::internal |
1535 | 1535 |
1536 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1536 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |