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

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

Issue 141363005: A64: Synchronize with r15204. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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
« no previous file with comments | « src/x64/lithium-x64.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 // 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 void CmpObject(Register reg, Handle<Object> object) { 803 void CmpObject(Register reg, Handle<Object> object) {
804 AllowDeferredHandleDereference 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<Cell> cell);
814 814
815 // Emit code to discard a non-negative number of pointer-sized elements 815 // Emit code to discard a non-negative number of pointer-sized elements
816 // from the stack, clobbering only the rsp register. 816 // from the stack, clobbering only the rsp register.
817 void Drop(int stack_elements); 817 void Drop(int stack_elements);
818 818
819 void Call(Label* target) { call(target); } 819 void Call(Label* target) { call(target); }
820 820
821 // Control Flow 821 // Control Flow
822 void Jump(Address destination, RelocInfo::Mode rmode); 822 void Jump(Address destination, RelocInfo::Mode rmode);
823 void Jump(ExternalReference ext); 823 void Jump(ExternalReference ext);
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 // rcx (rcx must be preserverd until CallApiFunctionAndReturn). Saves 1232 // rcx (rcx must be preserverd until CallApiFunctionAndReturn). Saves
1233 // context (rsi). Clobbers rax. Allocates arg_stack_space * kPointerSize 1233 // context (rsi). Clobbers rax. Allocates arg_stack_space * kPointerSize
1234 // inside the exit frame (not GCed) accessible via StackSpaceOperand. 1234 // inside the exit frame (not GCed) accessible via StackSpaceOperand.
1235 void PrepareCallApiFunction(int arg_stack_space, bool returns_handle); 1235 void PrepareCallApiFunction(int arg_stack_space, bool returns_handle);
1236 1236
1237 // Calls an API function. Allocates HandleScope, extracts returned value 1237 // Calls an API function. Allocates HandleScope, extracts returned value
1238 // from handle and propagates exceptions. Clobbers r14, r15, rbx and 1238 // from handle and propagates exceptions. Clobbers r14, r15, rbx and
1239 // caller-save registers. Restores context. On return removes 1239 // caller-save registers. Restores context. On return removes
1240 // stack_space * kPointerSize (GCed). 1240 // stack_space * kPointerSize (GCed).
1241 void CallApiFunctionAndReturn(Address function_address, 1241 void CallApiFunctionAndReturn(Address function_address,
1242 Address thunk_address,
1243 Register thunk_last_arg,
1242 int stack_space, 1244 int stack_space,
1243 bool returns_handle, 1245 bool returns_handle,
1244 int return_value_offset_from_rbp); 1246 int return_value_offset_from_rbp);
1245 1247
1246 // Before calling a C-function from generated code, align arguments on stack. 1248 // Before calling a C-function from generated code, align arguments on stack.
1247 // After aligning the frame, arguments must be stored in esp[0], esp[4], 1249 // After aligning the frame, arguments must be stored in esp[0], esp[4],
1248 // etc., not pushed. The argument count assumes all arguments are word sized. 1250 // etc., not pushed. The argument count assumes all arguments are word sized.
1249 // The number of slots reserved for arguments depends on platform. On Windows 1251 // The number of slots reserved for arguments depends on platform. On Windows
1250 // stack slots are reserved for the arguments passed in registers. On other 1252 // stack slots are reserved for the arguments passed in registers. On other
1251 // platforms stack slots are only reserved for the arguments actually passed 1253 // platforms stack slots are only reserved for the arguments actually passed
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 masm->popfq(); \ 1529 masm->popfq(); \
1528 } \ 1530 } \
1529 masm-> 1531 masm->
1530 #else 1532 #else
1531 #define ACCESS_MASM(masm) masm-> 1533 #define ACCESS_MASM(masm) masm->
1532 #endif 1534 #endif
1533 1535
1534 } } // namespace v8::internal 1536 } } // namespace v8::internal
1535 1537
1536 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1538 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698