Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 1754288b6ed751b066519c6871cf6e0b1380e424..a8fd60844efd1d46e56060d3f4c9bcf64b770fc3 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -96,6 +96,12 @@ Code::Kind CodeStub::GetCodeKind() const { |
} |
+Code::Flags CodeStub::GetCodeFlags() const { |
+ return Code::ComputeFlags(GetCodeKind(), GetICState(), GetExtraICState(), |
+ GetStubType()); |
+} |
+ |
+ |
Handle<Code> CodeStub::GetCodeCopy(const Code::FindAndReplacePattern& pattern) { |
Handle<Code> ic = GetCode(); |
ic = isolate()->factory()->CopyCode(ic); |
@@ -474,7 +480,7 @@ Handle<Code> TurboFanCodeStub::GenerateCode() { |
Zone zone; |
CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); |
compiler::CodeStubAssembler assembler(isolate(), &zone, descriptor, |
- GetCodeKind(), name); |
+ GetCodeFlags(), name); |
GenerateAssembly(&assembler); |
return assembler.GenerateCode(); |
} |