| OLD | NEW |
| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 push(Immediate(x.x_ ^ jit_cookie())); | 258 push(Immediate(x.x_ ^ jit_cookie())); |
| 259 xor_(Operand(esp, 0), Immediate(jit_cookie())); | 259 xor_(Operand(esp, 0), Immediate(jit_cookie())); |
| 260 } else { | 260 } else { |
| 261 push(x); | 261 push(x); |
| 262 } | 262 } |
| 263 } | 263 } |
| 264 | 264 |
| 265 | 265 |
| 266 void MacroAssembler::CompareRoot(Register with, Heap::RootListIndex index) { | 266 void MacroAssembler::CompareRoot(Register with, Heap::RootListIndex index) { |
| 267 // see ROOT_ACCESSOR macro in factory.h | 267 // see ROOT_ACCESSOR macro in factory.h |
| 268 Handle<Object> value(BitCast<Object**>( | 268 Handle<Object> value(&isolate()->heap()->roots_address()[index]); |
| 269 &isolate()->heap()->roots_address()[index])); | |
| 270 cmp(with, value); | 269 cmp(with, value); |
| 271 } | 270 } |
| 272 | 271 |
| 273 | 272 |
| 274 void MacroAssembler::CmpObjectType(Register heap_object, | 273 void MacroAssembler::CmpObjectType(Register heap_object, |
| 275 InstanceType type, | 274 InstanceType type, |
| 276 Register map) { | 275 Register map) { |
| 277 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); | 276 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); |
| 278 CmpInstanceType(map, type); | 277 CmpInstanceType(map, type); |
| 279 } | 278 } |
| (...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2238 | 2237 |
| 2239 // Check that the code was patched as expected. | 2238 // Check that the code was patched as expected. |
| 2240 ASSERT(masm_.pc_ == address_ + size_); | 2239 ASSERT(masm_.pc_ == address_ + size_); |
| 2241 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 2240 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
| 2242 } | 2241 } |
| 2243 | 2242 |
| 2244 | 2243 |
| 2245 } } // namespace v8::internal | 2244 } } // namespace v8::internal |
| 2246 | 2245 |
| 2247 #endif // V8_TARGET_ARCH_IA32 | 2246 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |