V8 Project
|
#include <control-builders.h>
Public Member Functions | |
SwitchBuilder (StructuredGraphBuilder *builder, int case_count) | |
void | BeginSwitch () |
void | BeginLabel (int index, Node *condition) |
void | EndLabel () |
void | DefaultAt (int index) |
void | BeginCase (int index) |
void | EndCase () |
void | EndSwitch () |
virtual void | Break () |
int | case_count () const |
![]() | |
ControlBuilder (StructuredGraphBuilder *builder) | |
virtual | ~ControlBuilder () |
virtual void | Continue () |
Private Attributes | |
Environment * | body_environment_ |
Environment * | label_environment_ |
Environment * | break_environment_ |
ZoneList< Environment * > | body_environments_ |
Additional Inherited Members | |
![]() | |
typedef StructuredGraphBuilder | Builder |
typedef StructuredGraphBuilder::Environment | Environment |
![]() | |
Zone * | zone () const |
Environment * | environment () |
void | set_environment (Environment *env) |
![]() | |
Builder * | builder_ |
Definition at line 92 of file control-builders.h.
|
inlineexplicit |
Definition at line 94 of file control-builders.h.
void v8::internal::compiler::SwitchBuilder::BeginCase | ( | int | index | ) |
Definition at line 105 of file control-builders.cc.
References body_environment_, body_environments_, v8::internal::compiler::ControlBuilder::environment(), v8::internal::compiler::StructuredGraphBuilder::Environment::Merge(), and v8::internal::compiler::ControlBuilder::set_environment().
void v8::internal::compiler::SwitchBuilder::BeginLabel | ( | int | index, |
Node * | condition | ||
) |
Definition at line 85 of file control-builders.cc.
References body_environments_, v8::internal::compiler::ControlBuilder::builder_, v8::internal::compiler::StructuredGraphBuilder::Environment::CopyForConditional(), v8::internal::compiler::ControlBuilder::environment(), label_environment_, v8::internal::compiler::StructuredGraphBuilder::NewBranch(), and v8::internal::compiler::StructuredGraphBuilder::NewIfTrue().
void v8::internal::compiler::SwitchBuilder::BeginSwitch | ( | ) |
Definition at line 77 of file control-builders.cc.
References v8::internal::List< T, AllocationPolicy >::AddBlock(), body_environment_, body_environments_, break_environment_, case_count(), v8::internal::compiler::StructuredGraphBuilder::Environment::CopyAsUnreachable(), v8::internal::compiler::ControlBuilder::environment(), label_environment_, NULL, and v8::internal::compiler::ControlBuilder::zone().
|
virtual |
Reimplemented from v8::internal::compiler::ControlBuilder.
Definition at line 111 of file control-builders.cc.
References break_environment_, v8::internal::compiler::ControlBuilder::environment(), v8::internal::compiler::StructuredGraphBuilder::Environment::MarkAsUnreachable(), and v8::internal::compiler::StructuredGraphBuilder::Environment::Merge().
|
inline |
Definition at line 114 of file control-builders.h.
References body_environments_.
Referenced by BeginSwitch().
void v8::internal::compiler::SwitchBuilder::DefaultAt | ( | int | index | ) |
Definition at line 99 of file control-builders.cc.
References body_environments_, v8::internal::compiler::StructuredGraphBuilder::Environment::CopyAsUnreachable(), v8::internal::compiler::ControlBuilder::environment(), and label_environment_.
void v8::internal::compiler::SwitchBuilder::EndCase | ( | ) |
Definition at line 117 of file control-builders.cc.
References body_environment_, and v8::internal::compiler::ControlBuilder::environment().
void v8::internal::compiler::SwitchBuilder::EndLabel | ( | ) |
Definition at line 93 of file control-builders.cc.
References v8::internal::compiler::ControlBuilder::builder_, label_environment_, v8::internal::compiler::StructuredGraphBuilder::NewIfFalse(), and v8::internal::compiler::ControlBuilder::set_environment().
void v8::internal::compiler::SwitchBuilder::EndSwitch | ( | ) |
Definition at line 120 of file control-builders.cc.
References break_environment_, v8::internal::compiler::ControlBuilder::environment(), label_environment_, v8::internal::compiler::StructuredGraphBuilder::Environment::Merge(), and v8::internal::compiler::ControlBuilder::set_environment().
|
private |
Definition at line 117 of file control-builders.h.
Referenced by BeginCase(), BeginSwitch(), and EndCase().
|
private |
Definition at line 120 of file control-builders.h.
Referenced by BeginCase(), BeginLabel(), BeginSwitch(), case_count(), and DefaultAt().
|
private |
Definition at line 119 of file control-builders.h.
Referenced by BeginSwitch(), Break(), and EndSwitch().
|
private |
Definition at line 118 of file control-builders.h.
Referenced by BeginLabel(), BeginSwitch(), DefaultAt(), EndLabel(), and EndSwitch().