Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::WriteErrorSlowPath Class Reference

#include <flow_graph_compiler.h>

Inheritance diagram for dart::WriteErrorSlowPath:
dart::ThrowErrorSlowPathCode dart::TemplateSlowPathCode< Instruction > dart::SlowPathCode dart::ZoneAllocated

Public Member Functions

 WriteErrorSlowPath (CheckWritableInstr *instruction)
 
virtual const char * name ()
 
virtual void EmitSharedStubCall (FlowGraphCompiler *compiler, bool save_fpu_registers)
 
virtual void PushArgumentsForRuntimeCall (FlowGraphCompiler *compiler)
 
virtual intptr_t GetNumberOfArgumentsForRuntimeCall ()
 
- Public Member Functions inherited from dart::ThrowErrorSlowPathCode
 ThrowErrorSlowPathCode (Instruction *instruction, const RuntimeEntry &runtime_entry)
 
virtual const char * name ()=0
 
virtual void EmitCodeAtSlowPathEntry (FlowGraphCompiler *compiler)
 
virtual void AddMetadataForRuntimeCall (FlowGraphCompiler *compiler)
 
virtual void PushArgumentsForRuntimeCall (FlowGraphCompiler *compiler)
 
virtual intptr_t GetNumberOfArgumentsForRuntimeCall ()
 
virtual void EmitSharedStubCall (FlowGraphCompiler *compiler, bool save_fpu_registers)
 
virtual void EmitNativeCode (FlowGraphCompiler *compiler)
 
- Public Member Functions inherited from dart::TemplateSlowPathCode< Instruction >
 TemplateSlowPathCode (Instruction *instruction)
 
Instructioninstruction () const
 
- Public Member Functions inherited from dart::SlowPathCode
 SlowPathCode (Instruction *instruction)
 
virtual ~SlowPathCode ()
 
Instructioninstruction () const
 
compiler::Labelentry_label ()
 
compiler::Labelexit_label ()
 
void GenerateCode (FlowGraphCompiler *compiler)
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Detailed Description

Definition at line 296 of file flow_graph_compiler.h.

Constructor & Destructor Documentation

◆ WriteErrorSlowPath()

dart::WriteErrorSlowPath::WriteErrorSlowPath ( CheckWritableInstr instruction)
inlineexplicit

Definition at line 298 of file flow_graph_compiler.h.

299 : ThrowErrorSlowPathCode(instruction, kWriteErrorRuntimeEntry) {}
ThrowErrorSlowPathCode(Instruction *instruction, const RuntimeEntry &runtime_entry)

Member Function Documentation

◆ EmitSharedStubCall()

void dart::WriteErrorSlowPath::EmitSharedStubCall ( FlowGraphCompiler compiler,
bool  save_fpu_registers 
)
virtual

Reimplemented from dart::ThrowErrorSlowPathCode.

Definition at line 3257 of file flow_graph_compiler.cc.

3258 {
3259#if defined(TARGET_ARCH_IA32)
3260 UNREACHABLE();
3261#else
3262 auto object_store = compiler->isolate_group()->object_store();
3263 const auto& stub = Code::ZoneHandle(
3264 compiler->zone(),
3265 save_fpu_registers
3266 ? object_store->write_error_stub_with_fpu_regs_stub()
3267 : object_store->write_error_stub_without_fpu_regs_stub());
3268 compiler->EmitCallToStub(stub);
3269#endif
3270}
#define UNREACHABLE()
Definition: assert.h:248
static Object & ZoneHandle()
Definition: object.h:419

◆ GetNumberOfArgumentsForRuntimeCall()

virtual intptr_t dart::WriteErrorSlowPath::GetNumberOfArgumentsForRuntimeCall ( )
inlinevirtual

Reimplemented from dart::ThrowErrorSlowPathCode.

Definition at line 307 of file flow_graph_compiler.h.

307 {
308 return 2; // receiver, kind
309 }

◆ name()

virtual const char * dart::WriteErrorSlowPath::name ( )
inlinevirtual

Implements dart::ThrowErrorSlowPathCode.

Definition at line 300 of file flow_graph_compiler.h.

300{ return "check writable"; }

◆ PushArgumentsForRuntimeCall()

void dart::WriteErrorSlowPath::PushArgumentsForRuntimeCall ( FlowGraphCompiler compiler)
virtual

Reimplemented from dart::ThrowErrorSlowPathCode.

Definition at line 3249 of file flow_graph_compiler.cc.

3250 {
3251 LocationSummary* locs = instruction()->locs();
3252 __ PushRegister(locs->in(CheckWritableInstr::kReceiver).reg());
3253 __ PushImmediate(
3254 compiler::target::ToRawSmi(instruction()->AsCheckWritable()->kind()));
3255}
LocationSummary * locs()
Definition: il.h:1192
#define __
word ToRawSmi(const dart::Object &a)
Definition: runtime_api.cc:960

The documentation for this class was generated from the following files: