OLD | NEW |
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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void LoadHeapObject(Register result, Handle<HeapObject> object); | 274 void LoadHeapObject(Register result, Handle<HeapObject> object); |
275 void CmpHeapObject(Register reg, Handle<HeapObject> object); | 275 void CmpHeapObject(Register reg, Handle<HeapObject> object); |
276 void PushHeapObject(Handle<HeapObject> object); | 276 void PushHeapObject(Handle<HeapObject> object); |
277 | 277 |
278 void LoadObject(Register result, Handle<Object> object) { | 278 void LoadObject(Register result, Handle<Object> object) { |
279 ALLOW_HANDLE_DEREF(isolate(), "heap object check"); | 279 ALLOW_DEFERRED_HANDLE_DEREF(isolate(), "heap object check"); |
280 if (object->IsHeapObject()) { | 280 if (object->IsHeapObject()) { |
281 LoadHeapObject(result, Handle<HeapObject>::cast(object)); | 281 LoadHeapObject(result, Handle<HeapObject>::cast(object)); |
282 } else { | 282 } else { |
283 Set(result, Immediate(object)); | 283 Set(result, Immediate(object)); |
284 } | 284 } |
285 } | 285 } |
286 | 286 |
287 void CmpObject(Register reg, Handle<Object> object) { | 287 void CmpObject(Register reg, Handle<Object> object) { |
288 ALLOW_HANDLE_DEREF(isolate(), "heap object check"); | 288 ALLOW_DEFERRED_HANDLE_DEREF(isolate(), "heap object check"); |
289 if (object->IsHeapObject()) { | 289 if (object->IsHeapObject()) { |
290 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); | 290 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); |
291 } else { | 291 } else { |
292 cmp(reg, Immediate(object)); | 292 cmp(reg, Immediate(object)); |
293 } | 293 } |
294 } | 294 } |
295 | 295 |
296 // --------------------------------------------------------------------------- | 296 // --------------------------------------------------------------------------- |
297 // JavaScript invokes | 297 // JavaScript invokes |
298 | 298 |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 } \ | 1042 } \ |
1043 masm-> | 1043 masm-> |
1044 #else | 1044 #else |
1045 #define ACCESS_MASM(masm) masm-> | 1045 #define ACCESS_MASM(masm) masm-> |
1046 #endif | 1046 #endif |
1047 | 1047 |
1048 | 1048 |
1049 } } // namespace v8::internal | 1049 } } // namespace v8::internal |
1050 | 1050 |
1051 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1051 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |