Index: src/fast-accessor-assembler.cc |
diff --git a/src/fast-accessor-assembler.cc b/src/fast-accessor-assembler.cc |
index dd4fe01520a623852bf82f9e69b03d14a545fb3b..ee9b241186e0e76218071dbbc44de5da97f79c89 100644 |
--- a/src/fast-accessor-assembler.cc |
+++ b/src/fast-accessor-assembler.cc |
@@ -10,6 +10,7 @@ |
#include "src/handles-inl.h" |
#include "src/objects.h" // For FAA::LoadInternalField impl. |
+using v8::internal::CodeStubAssembler; |
using v8::internal::compiler::Node; |
namespace v8 { |
@@ -18,9 +19,9 @@ |
FastAccessorAssembler::FastAccessorAssembler(Isolate* isolate) |
: zone_(isolate->allocator(), ZONE_NAME), |
isolate_(isolate), |
- assembler_state_(isolate, zone(), 1, Code::ComputeFlags(Code::STUB), |
- "FastAccessorAssembler"), |
- assembler_(new CodeStubAssembler(&assembler_state_)), |
+ assembler_(new CodeStubAssembler(isolate, zone(), 1, |
+ Code::ComputeFlags(Code::STUB), |
+ "FastAccessorAssembler")), |
state_(kBuilding) {} |
FastAccessorAssembler::~FastAccessorAssembler() { Clear(); } |
@@ -247,7 +248,7 @@ |
MaybeHandle<Code> FastAccessorAssembler::Build() { |
CHECK_EQ(kBuilding, state_); |
- Handle<Code> code = compiler::CodeAssembler::GenerateCode(&assembler_state_); |
+ Handle<Code> code = assembler_->GenerateCode(); |
state_ = !code.is_null() ? kBuilt : kError; |
Clear(); |
return code; |