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

Side by Side Diff: src/ia32/macro-assembler-ia32.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/compiler/linkage.h ('k') | src/x87/macro-assembler-x87.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_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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 ia32 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 } \ 1007 } \
1005 masm-> 1008 masm->
1006 #else 1009 #else
1007 #define ACCESS_MASM(masm) masm-> 1010 #define ACCESS_MASM(masm) masm->
1008 #endif 1011 #endif
1009 1012
1010 } // namespace internal 1013 } // namespace internal
1011 } // namespace v8 1014 } // namespace v8
1012 1015
1013 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1016 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/compiler/linkage.h ('k') | src/x87/macro-assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698