Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 15691017: Make assertion scopes thread safe. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 AllowDeferredHandleDereference 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 AllowDeferredHandleDereference 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
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_
OLDNEW
« src/api.cc ('K') | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698