| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index dd624b9c1f0e4cb6e0ac3ecb14bea93cde2eac77..fb0cb33aaafdfcd03d8238d516284299163f7075 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.cc
|
| @@ -66,8 +66,7 @@ void MacroAssembler::Store(Register src, const Operand& dst, Representation r) {
|
|
|
| void MacroAssembler::LoadRoot(Register destination, Heap::RootListIndex index) {
|
| if (isolate()->heap()->RootCanBeTreatedAsConstant(index)) {
|
| - Handle<Object> value(&isolate()->heap()->roots_array_start()[index]);
|
| - mov(destination, value);
|
| + mov(destination, isolate()->heap()->root_handle(index));
|
| return;
|
| }
|
| ExternalReference roots_array_start =
|
| @@ -105,16 +104,14 @@ void MacroAssembler::CompareRoot(Register with,
|
|
|
| void MacroAssembler::CompareRoot(Register with, Heap::RootListIndex index) {
|
| DCHECK(isolate()->heap()->RootCanBeTreatedAsConstant(index));
|
| - Handle<Object> value(&isolate()->heap()->roots_array_start()[index]);
|
| - cmp(with, value);
|
| + cmp(with, isolate()->heap()->root_handle(index));
|
| }
|
|
|
|
|
| void MacroAssembler::CompareRoot(const Operand& with,
|
| Heap::RootListIndex index) {
|
| DCHECK(isolate()->heap()->RootCanBeTreatedAsConstant(index));
|
| - Handle<Object> value(&isolate()->heap()->roots_array_start()[index]);
|
| - cmp(with, value);
|
| + cmp(with, isolate()->heap()->root_handle(index));
|
| }
|
|
|
|
|
|
|