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

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

Issue 877243004: Load callback data from weak cell instead of embedding it in handler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/ic/x87/handler-compiler-x87.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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 // Load a heap object and handle the case of new-space objects by 839 // Load a heap object and handle the case of new-space objects by
840 // indirecting via a global cell. 840 // indirecting via a global cell.
841 void MoveHeapObject(Register result, Handle<Object> object); 841 void MoveHeapObject(Register result, Handle<Object> object);
842 842
843 // Load a global cell into a register. 843 // Load a global cell into a register.
844 void LoadGlobalCell(Register dst, Handle<Cell> cell); 844 void LoadGlobalCell(Register dst, Handle<Cell> cell);
845 845
846 // Compare the given value and the value of weak cell. 846 // Compare the given value and the value of weak cell.
847 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); 847 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch);
848 848
849 void GetWeakValue(Register value, Handle<WeakCell> cell);
850
849 // Load the value of the weak cell in the value register. Branch to the given 851 // Load the value of the weak cell in the value register. Branch to the given
850 // miss label if the weak cell was cleared. 852 // miss label if the weak cell was cleared.
851 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); 853 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss);
852 854
853 // Emit code to discard a non-negative number of pointer-sized elements 855 // Emit code to discard a non-negative number of pointer-sized elements
854 // from the stack, clobbering only the rsp register. 856 // from the stack, clobbering only the rsp register.
855 void Drop(int stack_elements); 857 void Drop(int stack_elements);
856 // Emit code to discard a positive number of pointer-sized elements 858 // Emit code to discard a positive number of pointer-sized elements
857 // from the stack under the return address which remains on the top, 859 // from the stack under the return address which remains on the top,
858 // clobbering the rsp register. 860 // clobbering the rsp register.
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 masm->popfq(); \ 1634 masm->popfq(); \
1633 } \ 1635 } \
1634 masm-> 1636 masm->
1635 #else 1637 #else
1636 #define ACCESS_MASM(masm) masm-> 1638 #define ACCESS_MASM(masm) masm->
1637 #endif 1639 #endif
1638 1640
1639 } } // namespace v8::internal 1641 } } // namespace v8::internal
1640 1642
1641 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1643 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ic/x87/handler-compiler-x87.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698