V8 Project
|
#include <ast-graph-builder.h>
Public Member Functions | |
Environment (AstGraphBuilder *builder, Scope *scope, Node *control_dependency) | |
Environment (const Environment ©) | |
int | parameters_count () const |
int | locals_count () const |
int | stack_height () |
void | Bind (Variable *variable, Node *node) |
Node * | Lookup (Variable *variable) |
void | Push (Node *node) |
Node * | Top () |
Node * | Pop () |
void | Poke (int depth, Node *node) |
Node * | Peek (int depth) |
void | Drop (int depth) |
Node * | Checkpoint (BailoutId ast_id, OutputFrameStateCombine combine) |
![]() | |
Environment (StructuredGraphBuilder *builder, Node *control_dependency) | |
Environment (const Environment ©) | |
Node * | GetControlDependency () |
void | UpdateControlDependency (Node *dependency) |
Node * | GetEffectDependency () |
void | UpdateEffectDependency (Node *dependency) |
void | MarkAsUnreachable () |
bool | IsMarkedAsUnreachable () |
void | Merge (Environment *other) |
Environment * | CopyForConditional () |
Environment * | CopyAsUnreachable () |
Environment * | CopyForLoop () |
Node * | GetContext () |
![]() | |
INLINE (void *operator new(size_t size, Zone *zone)) | |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone) |
Protected Member Functions | |
AstGraphBuilder * | builder () const |
![]() | |
Zone * | zone () const |
Graph * | graph () const |
StructuredGraphBuilder * | builder () const |
CommonOperatorBuilder * | common () |
NodeVector * | values () |
void | PrepareForLoop () |
Private Member Functions | |
void | UpdateStateValues (Node **state_values, int offset, int count) |
Private Attributes | |
int | parameters_count_ |
int | locals_count_ |
Node * | parameters_node_ |
Node * | locals_node_ |
Node * | stack_node_ |
Definition at line 194 of file ast-graph-builder.h.
v8::internal::compiler::AstGraphBuilder::Environment::Environment | ( | AstGraphBuilder * | builder, |
Scope * | scope, | ||
Node * | control_dependency | ||
) |
Definition at line 158 of file ast-graph-builder.cc.
References builder(), v8::internal::compiler::StructuredGraphBuilder::Environment::common(), DCHECK_EQ, v8::internal::compiler::GraphBuilder::graph(), v8::internal::compiler::AstGraphBuilder::jsgraph(), locals_count(), v8::internal::compiler::Graph::NewNode(), v8::internal::Scope::num_parameters(), parameters_count(), v8::internal::compiler::GenericGraph< V >::start(), v8::internal::compiler::JSGraph::UndefinedConstant(), and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
v8::internal::compiler::AstGraphBuilder::Environment::Environment | ( | const Environment & | copy | ) |
Definition at line 188 of file ast-graph-builder.cc.
|
inline |
Definition at line 209 of file ast-graph-builder.h.
References DCHECK, v8::internal::Variable::index(), v8::internal::Variable::IsParameter(), v8::internal::Variable::IsStackAllocated(), v8::internal::Variable::IsStackLocal(), parameters_count_, and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
Referenced by v8::internal::compiler::AstGraphBuilder::BuildVariableAssignment().
|
inlineprotected |
Definition at line 264 of file ast-graph-builder.h.
References v8::internal::compiler::StructuredGraphBuilder::Environment::builder().
Referenced by Environment().
Node * v8::internal::compiler::AstGraphBuilder::Environment::Checkpoint | ( | BailoutId | ast_id, |
OutputFrameStateCombine | combine | ||
) |
Definition at line 220 of file ast-graph-builder.cc.
References v8::internal::compiler::StructuredGraphBuilder::common(), v8::internal::compiler::GraphBuilder::graph(), v8::internal::compiler::JS_FRAME, v8::internal::compiler::AstGraphBuilder::jsgraph(), and v8::internal::compiler::Graph::NewNode().
|
inline |
Definition at line 254 of file ast-graph-builder.h.
References DCHECK, stack_height(), and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
|
inline |
Definition at line 201 of file ast-graph-builder.h.
References locals_count_.
Referenced by Environment().
|
inline |
Definition at line 218 of file ast-graph-builder.h.
References DCHECK, v8::internal::Variable::index(), v8::internal::Variable::IsParameter(), v8::internal::Variable::IsStackAllocated(), v8::internal::Variable::IsStackLocal(), parameters_count_, and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
Referenced by v8::internal::compiler::AstGraphBuilder::BuildVariableAssignment(), and v8::internal::compiler::AstGraphBuilder::BuildVariableLoad().
|
inline |
Definition at line 200 of file ast-graph-builder.h.
References parameters_count_.
Referenced by Environment().
|
inline |
Definition at line 249 of file ast-graph-builder.h.
References DCHECK, stack_height(), and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
|
inline |
Definition at line 244 of file ast-graph-builder.h.
References DCHECK, stack_height(), and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
|
inline |
Definition at line 236 of file ast-graph-builder.h.
References DCHECK, stack_height(), and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
Referenced by v8::internal::compiler::AstGraphBuilder::BuildHoleCheckSilent(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckThrow(), v8::internal::compiler::AstGraphBuilder::ProcessArguments(), v8::internal::compiler::AstGraphBuilder::VisitDelete(), v8::internal::compiler::AstGraphBuilder::VisitForInAssignment(), v8::internal::compiler::AstGraphBuilder::VisitLogicalExpression(), v8::internal::compiler::AstGraphBuilder::VisitNot(), and v8::internal::compiler::AstGraphBuilder::VisitTypeof().
|
inline |
Definition at line 229 of file ast-graph-builder.h.
References v8::internal::compiler::StructuredGraphBuilder::Environment::values().
Referenced by v8::internal::compiler::AstGraphBuilder::BuildHoleCheckSilent(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckThrow(), v8::internal::compiler::AstGraphBuilder::VisitCallJSRuntime(), v8::internal::compiler::AstGraphBuilder::VisitForInAssignment(), and v8::internal::compiler::AstGraphBuilder::VisitForValueOrNull().
|
inline |
Definition at line 202 of file ast-graph-builder.h.
References locals_count_, parameters_count_, and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
Referenced by Drop(), Peek(), Poke(), Pop(), and Top().
|
inline |
Definition at line 232 of file ast-graph-builder.h.
References DCHECK, stack_height(), and v8::internal::compiler::StructuredGraphBuilder::Environment::values().
Referenced by v8::internal::compiler::AstGraphBuilder::VisitLogicalExpression().
|
private |
Definition at line 198 of file ast-graph-builder.cc.
References v8::internal::compiler::StructuredGraphBuilder::common(), DCHECK, v8::internal::compiler::GraphBuilder::graph(), v8::internal::compiler::Graph::NewNode(), NULL, and size.
|
private |
Definition at line 273 of file ast-graph-builder.h.
Referenced by locals_count(), and stack_height().
|
private |
Definition at line 275 of file ast-graph-builder.h.
|
private |
Definition at line 272 of file ast-graph-builder.h.
Referenced by Bind(), Lookup(), parameters_count(), and stack_height().
|
private |
Definition at line 274 of file ast-graph-builder.h.
|
private |
Definition at line 276 of file ast-graph-builder.h.