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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 push(Immediate(x.x_ ^ jit_cookie())); | 345 push(Immediate(x.x_ ^ jit_cookie())); |
346 xor_(Operand(esp, 0), Immediate(jit_cookie())); | 346 xor_(Operand(esp, 0), Immediate(jit_cookie())); |
347 } else { | 347 } else { |
348 push(x); | 348 push(x); |
349 } | 349 } |
350 } | 350 } |
351 | 351 |
352 | 352 |
353 void MacroAssembler::CompareRoot(Register with, Heap::RootListIndex index) { | 353 void MacroAssembler::CompareRoot(Register with, Heap::RootListIndex index) { |
354 // see ROOT_ACCESSOR macro in factory.h | 354 // see ROOT_ACCESSOR macro in factory.h |
355 Handle<Object> value(&isolate()->heap()->roots_address()[index]); | 355 Handle<Object> value(&isolate()->heap()->roots_array_start()[index]); |
356 cmp(with, value); | 356 cmp(with, value); |
357 } | 357 } |
358 | 358 |
359 | 359 |
360 void MacroAssembler::CmpObjectType(Register heap_object, | 360 void MacroAssembler::CmpObjectType(Register heap_object, |
361 InstanceType type, | 361 InstanceType type, |
362 Register map) { | 362 Register map) { |
363 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); | 363 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); |
364 CmpInstanceType(map, type); | 364 CmpInstanceType(map, type); |
365 } | 365 } |
(...skipping 2368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2734 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset)); | 2734 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset)); |
2735 Check(less_equal, "Live Bytes Count overflow chunk size"); | 2735 Check(less_equal, "Live Bytes Count overflow chunk size"); |
2736 } | 2736 } |
2737 | 2737 |
2738 bind(&done); | 2738 bind(&done); |
2739 } | 2739 } |
2740 | 2740 |
2741 } } // namespace v8::internal | 2741 } } // namespace v8::internal |
2742 | 2742 |
2743 #endif // V8_TARGET_ARCH_IA32 | 2743 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |