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

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

Issue 8960004: Avoid embedding new space objects into code objects in the lithium gap resolver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 void PopSafepointRegisters() { popad(); } 233 void PopSafepointRegisters() { popad(); }
234 // Store the value in register/immediate src in the safepoint 234 // Store the value in register/immediate src in the safepoint
235 // register stack slot for register dst. 235 // register stack slot for register dst.
236 void StoreToSafepointRegisterSlot(Register dst, Register src); 236 void StoreToSafepointRegisterSlot(Register dst, Register src);
237 void StoreToSafepointRegisterSlot(Register dst, Immediate src); 237 void StoreToSafepointRegisterSlot(Register dst, Immediate src);
238 void LoadFromSafepointRegisterSlot(Register dst, Register src); 238 void LoadFromSafepointRegisterSlot(Register dst, Register src);
239 239
240 void LoadHeapObject(Register result, Handle<HeapObject> object); 240 void LoadHeapObject(Register result, Handle<HeapObject> object);
241 void PushHeapObject(Handle<HeapObject> object); 241 void PushHeapObject(Handle<HeapObject> object);
242 242
243 void LoadObject(Register result, Handle<Object> object) {
244 if (object->IsHeapObject()) {
245 LoadHeapObject(result, Handle<HeapObject>::cast(object));
246 } else {
247 Set(result, Immediate(object));
248 }
249 }
250
243 // --------------------------------------------------------------------------- 251 // ---------------------------------------------------------------------------
244 // JavaScript invokes 252 // JavaScript invokes
245 253
246 // Setup call kind marking in ecx. The method takes ecx as an 254 // Setup call kind marking in ecx. The method takes ecx as an
247 // explicit first parameter to make the code more readable at the 255 // explicit first parameter to make the code more readable at the
248 // call sites. 256 // call sites.
249 void SetCallKind(Register dst, CallKind kind); 257 void SetCallKind(Register dst, CallKind kind);
250 258
251 // Invoke the JavaScript function code by either calling or jumping. 259 // Invoke the JavaScript function code by either calling or jumping.
252 void InvokeCode(Register code, 260 void InvokeCode(Register code,
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 } \ 937 } \
930 masm-> 938 masm->
931 #else 939 #else
932 #define ACCESS_MASM(masm) masm-> 940 #define ACCESS_MASM(masm) masm->
933 #endif 941 #endif
934 942
935 943
936 } } // namespace v8::internal 944 } } // namespace v8::internal
937 945
938 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 946 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698