Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 void EmitCodeAtSlowPathEntry (FlowGraphCompiler *compiler)
 
virtual void AddMetadataForRuntimeCall (FlowGraphCompiler *compiler)
 
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 3246 of file flow_graph_compiler.cc.

3247 {
3248#if defined(TARGET_ARCH_IA32)
3249 UNREACHABLE();
3250#else
3251 auto object_store = compiler->isolate_group()->object_store();
3252 const auto& stub = Code::ZoneHandle(
3253 compiler->zone(),
3254 save_fpu_registers
3255 ? object_store->write_error_stub_with_fpu_regs_stub()
3256 : object_store->write_error_stub_without_fpu_regs_stub());
3257 compiler->EmitCallToStub(stub);
3258#endif
3259}
#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 3238 of file flow_graph_compiler.cc.

3239 {
3240 LocationSummary* locs = instruction()->locs();
3241 __ PushRegister(locs->in(CheckWritableInstr::kReceiver).reg());
3242 __ PushImmediate(
3243 compiler::target::ToRawSmi(instruction()->AsCheckWritable()->kind()));
3244}
#define __
LocationSummary * locs()
Definition il.h:1186
word ToRawSmi(const dart::Object &a)

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