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

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

Issue 1641153003: [wasm] Initialize the root register for WASM tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@stackslot_cl
Patch Set: Removed the stray blank. Created 4 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/ia32/macro-assembler-ia32.h ('k') | test/cctest/compiler/codegen-tester.h » ('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_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 // Push and pop the registers that can hold pointers. 265 // Push and pop the registers that can hold pointers.
266 void PushSafepointRegisters() { pushad(); } 266 void PushSafepointRegisters() { pushad(); }
267 void PopSafepointRegisters() { popad(); } 267 void PopSafepointRegisters() { popad(); }
268 // Store the value in register/immediate src in the safepoint 268 // Store the value in register/immediate src in the safepoint
269 // register stack slot for register dst. 269 // register stack slot for register dst.
270 void StoreToSafepointRegisterSlot(Register dst, Register src); 270 void StoreToSafepointRegisterSlot(Register dst, Register src);
271 void StoreToSafepointRegisterSlot(Register dst, Immediate src); 271 void StoreToSafepointRegisterSlot(Register dst, Immediate src);
272 void LoadFromSafepointRegisterSlot(Register dst, Register src); 272 void LoadFromSafepointRegisterSlot(Register dst, Register src);
273 273
274 // Nop, because x87 does not have a root register.
275 void InitializeRootRegister() {}
276
274 void LoadHeapObject(Register result, Handle<HeapObject> object); 277 void LoadHeapObject(Register result, Handle<HeapObject> object);
275 void CmpHeapObject(Register reg, Handle<HeapObject> object); 278 void CmpHeapObject(Register reg, Handle<HeapObject> object);
276 void PushHeapObject(Handle<HeapObject> object); 279 void PushHeapObject(Handle<HeapObject> object);
277 280
278 void LoadObject(Register result, Handle<Object> object) { 281 void LoadObject(Register result, Handle<Object> object) {
279 AllowDeferredHandleDereference heap_object_check; 282 AllowDeferredHandleDereference heap_object_check;
280 if (object->IsHeapObject()) { 283 if (object->IsHeapObject()) {
281 LoadHeapObject(result, Handle<HeapObject>::cast(object)); 284 LoadHeapObject(result, Handle<HeapObject>::cast(object));
282 } else { 285 } else {
283 Move(result, Immediate(object)); 286 Move(result, Immediate(object));
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 } \ 987 } \
985 masm-> 988 masm->
986 #else 989 #else
987 #define ACCESS_MASM(masm) masm-> 990 #define ACCESS_MASM(masm) masm->
988 #endif 991 #endif
989 992
990 } // namespace internal 993 } // namespace internal
991 } // namespace v8 994 } // namespace v8
992 995
993 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 996 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | test/cctest/compiler/codegen-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698