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

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

Issue 771033003: Revert of Use weak cells in map checks in polymorphic ICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « src/objects-printer.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 void Cmp(const Operand& dst, Smi* src); 840 void Cmp(const Operand& dst, Smi* src);
841 void Push(Handle<Object> source); 841 void Push(Handle<Object> source);
842 842
843 // Load a heap object and handle the case of new-space objects by 843 // Load a heap object and handle the case of new-space objects by
844 // indirecting via a global cell. 844 // indirecting via a global cell.
845 void MoveHeapObject(Register result, Handle<Object> object); 845 void MoveHeapObject(Register result, Handle<Object> object);
846 846
847 // Load a global cell into a register. 847 // Load a global cell into a register.
848 void LoadGlobalCell(Register dst, Handle<Cell> cell); 848 void LoadGlobalCell(Register dst, Handle<Cell> cell);
849 849
850 // Compare the given value and the value of weak cell.
851 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch);
852
853 // Load the value of the weak cell in the value register. Branch to the given
854 // miss label if the weak cell was cleared.
855 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss);
856
857 // Emit code to discard a non-negative number of pointer-sized elements 850 // Emit code to discard a non-negative number of pointer-sized elements
858 // from the stack, clobbering only the rsp register. 851 // from the stack, clobbering only the rsp register.
859 void Drop(int stack_elements); 852 void Drop(int stack_elements);
860 // Emit code to discard a positive number of pointer-sized elements 853 // Emit code to discard a positive number of pointer-sized elements
861 // from the stack under the return address which remains on the top, 854 // from the stack under the return address which remains on the top,
862 // clobbering the rsp register. 855 // clobbering the rsp register.
863 void DropUnderReturnAddress(int stack_elements, 856 void DropUnderReturnAddress(int stack_elements,
864 Register scratch = kScratchRegister); 857 Register scratch = kScratchRegister);
865 858
866 void Call(Label* target) { call(target); } 859 void Call(Label* target) { call(target); }
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 masm->popfq(); \ 1645 masm->popfq(); \
1653 } \ 1646 } \
1654 masm-> 1647 masm->
1655 #else 1648 #else
1656 #define ACCESS_MASM(masm) masm-> 1649 #define ACCESS_MASM(masm) masm->
1657 #endif 1650 #endif
1658 1651
1659 } } // namespace v8::internal 1652 } } // namespace v8::internal
1660 1653
1661 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1654 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698