Index: src/a64/stub-cache-a64.cc |
diff --git a/src/a64/stub-cache-a64.cc b/src/a64/stub-cache-a64.cc |
index f6c2d398058f140c8283e6f5d0785fc29d3eaf17..bf7677f3021dec0e3bd64f6b33c21752ca7fc494 100644 |
--- a/src/a64/stub-cache-a64.cc |
+++ b/src/a64/stub-cache-a64.cc |
@@ -479,10 +479,9 @@ void BaseStoreStubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
Representation representation = details.representation(); |
ASSERT(!representation.IsNone()); |
- if (details.type() == CONSTANT_FUNCTION) { |
- Handle<HeapObject> constant( |
- HeapObject::cast(descriptors->GetValue(descriptor))); |
- __ LoadHeapObject(scratch1, constant); |
+ if (details.type() == CONSTANT) { |
+ Handle<Object> constant(descriptors->GetValue(descriptor), masm->isolate()); |
+ __ LoadObject(scratch1, constant); |
__ Cmp(value_reg, scratch1); |
__ B(ne, miss_label); |
} else if (FLAG_track_fields && representation.IsSmi()) { |
@@ -540,7 +539,7 @@ void BaseStoreStubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
OMIT_REMEMBERED_SET, |
OMIT_SMI_CHECK); |
- if (details.type() == CONSTANT_FUNCTION) { |
+ if (details.type() == CONSTANT) { |
ASSERT(value_reg.is(x0)); |
__ Ret(); |
return; |
@@ -1424,9 +1423,9 @@ void BaseLoadStubCompiler::GenerateLoadField(Register reg, |
} |
-void BaseLoadStubCompiler::GenerateLoadConstant(Handle<JSFunction> value) { |
+void BaseLoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { |
// Return the constant value. |
- __ LoadHeapObject(x0, value); |
+ __ LoadObject(x0, value); |
__ Ret(); |
} |
@@ -2759,7 +2758,7 @@ Handle<Code> CallStubCompiler::CompileCallConstant( |
Handle<Code> code = CompileCustomCall(object, holder, |
Handle<Cell>::null(), |
function, Handle<String>::cast(name), |
- Code::CONSTANT_FUNCTION); |
+ Code::CONSTANT); |
// A null handle means bail out to the regular compiler code below. |
if (!code.is_null()) return code; |
} |