V8 Project
|
#include <js-generic-lowering.h>
Public Member Functions | |
JSGenericLowering (CompilationInfo *info, JSGraph *graph) | |
virtual | ~JSGenericLowering () |
virtual Reduction | Reduce (Node *node) |
![]() | |
Reducer () | |
virtual | ~Reducer () |
Protected Member Functions | |
Node * | SmiConstant (int immediate) |
Node * | Int32Constant (int immediate) |
Node * | CodeConstant (Handle< Code > code) |
Node * | FunctionConstant (Handle< JSFunction > function) |
Node * | ExternalConstant (ExternalReference ref) |
void | PatchOperator (Node *node, const Operator *new_op) |
void | PatchInsertInput (Node *node, int index, Node *input) |
void | ReplaceWithCompareIC (Node *node, Token::Value token, bool pure) |
void | ReplaceWithStubCall (Node *node, Callable c, CallDescriptor::Flags flags) |
void | ReplaceWithBuiltinCall (Node *node, Builtins::JavaScript id, int args) |
void | ReplaceWithRuntimeCall (Node *node, Runtime::FunctionId f, int args=-1) |
Zone * | zone () const |
Isolate * | isolate () const |
JSGraph * | jsgraph () const |
Graph * | graph () const |
Linkage * | linkage () const |
CompilationInfo * | info () const |
CommonOperatorBuilder * | common () const |
MachineOperatorBuilder * | machine () const |
Private Attributes | |
CompilationInfo * | info_ |
JSGraph * | jsgraph_ |
Linkage * | linkage_ |
SetOncePointer< Node > | centrystub_constant_ |
Additional Inherited Members | |
![]() | |
static Reduction | NoChange () |
static Reduction | Replace (Node *node) |
static Reduction | Changed (Node *node) |
Definition at line 27 of file js-generic-lowering.h.
v8::internal::compiler::JSGenericLowering::JSGenericLowering | ( | CompilationInfo * | info, |
JSGraph * | graph | ||
) |
Definition at line 19 of file js-generic-lowering.cc.
|
inlinevirtual |
Definition at line 30 of file js-generic-lowering.h.
Definition at line 45 of file js-generic-lowering.cc.
References v8::internal::compiler::JSGraph::HeapConstant(), and jsgraph().
Referenced by ReplaceWithBuiltinCall(), ReplaceWithCompareIC(), ReplaceWithRuntimeCall(), and ReplaceWithStubCall().
|
inlineprotected |
Definition at line 63 of file js-generic-lowering.h.
References v8::internal::compiler::JSGraph::common(), and jsgraph().
Referenced by ReplaceWithBuiltinCall(), ReplaceWithCompareIC(), ReplaceWithRuntimeCall(), and ReplaceWithStubCall().
|
protected |
Definition at line 55 of file js-generic-lowering.cc.
References v8::internal::compiler::JSGraph::ExternalConstant(), and jsgraph().
Referenced by ReplaceWithRuntimeCall().
|
protected |
Definition at line 50 of file js-generic-lowering.cc.
References v8::internal::compiler::JSGraph::HeapConstant(), and jsgraph().
Referenced by ReplaceWithBuiltinCall().
|
inlineprotected |
Definition at line 60 of file js-generic-lowering.h.
References v8::internal::compiler::JSGraph::graph(), and jsgraph().
Referenced by ReplaceWithCompareIC(), and zone().
|
inlineprotected |
Definition at line 62 of file js-generic-lowering.h.
References info_.
Referenced by ReplaceWithBuiltinCall().
|
protected |
Definition at line 40 of file js-generic-lowering.cc.
References v8::internal::compiler::JSGraph::Int32Constant(), and jsgraph().
Referenced by ReplaceWithRuntimeCall().
|
inlineprotected |
Definition at line 58 of file js-generic-lowering.h.
References v8::internal::Zone::isolate(), and zone().
Referenced by ReplaceWithBuiltinCall(), ReplaceWithCompareIC(), and ReplaceWithRuntimeCall().
|
inlineprotected |
Definition at line 59 of file js-generic-lowering.h.
References jsgraph_.
Referenced by CodeConstant(), common(), ExternalConstant(), FunctionConstant(), graph(), Int32Constant(), machine(), and SmiConstant().
|
inlineprotected |
Definition at line 61 of file js-generic-lowering.h.
References linkage_.
Referenced by ReplaceWithBuiltinCall(), ReplaceWithCompareIC(), ReplaceWithRuntimeCall(), and ReplaceWithStubCall().
|
inlineprotected |
Definition at line 64 of file js-generic-lowering.h.
References jsgraph(), and v8::internal::compiler::JSGraph::machine().
|
protected |
Definition at line 30 of file js-generic-lowering.cc.
References zone().
Referenced by ReplaceWithBuiltinCall(), ReplaceWithRuntimeCall(), and ReplaceWithStubCall().
|
protected |
Definition at line 25 of file js-generic-lowering.cc.
Referenced by ReplaceWithBuiltinCall(), ReplaceWithRuntimeCall(), and ReplaceWithStubCall().
|
virtual |
Implements v8::internal::compiler::Reducer.
Definition at line 60 of file js-generic-lowering.cc.
References v8::internal::compiler::Reducer::Changed(), DECLARE_CASE, JS_OP_LIST, and v8::internal::compiler::Reducer::NoChange().
|
protected |
Definition at line 196 of file js-generic-lowering.cc.
References CodeConstant(), common(), FunctionConstant(), v8::internal::compiler::Linkage::GetStubCallDescriptor(), info(), isolate(), linkage(), v8::internal::NO_CALL_FUNCTION_FLAGS, PatchInsertInput(), and PatchOperator().
|
protected |
Definition at line 143 of file js-generic-lowering.cc.
References CodeConstant(), common(), DCHECK, v8::internal::compiler::NodeProperties::FirstFrameStateIndex(), v8::internal::compiler::FlagsForNode(), v8::internal::compiler::NodeProperties::GetContextInput(), v8::internal::compiler::NodeProperties::GetControlInput(), v8::internal::compiler::NodeProperties::GetEffectInput(), v8::internal::compiler::NodeProperties::GetFrameStateInput(), v8::internal::compiler::Linkage::GetStubCallDescriptor(), v8::internal::compiler::NodeProperties::GetValueInput(), graph(), v8::internal::compiler::OperatorProperties::HasFrameStateInput(), isolate(), linkage(), v8::internal::compiler::Graph::NewNode(), ReplaceWithRuntimeCall(), SmiConstant(), and zone().
|
protected |
Definition at line 215 of file js-generic-lowering.cc.
References centrystub_constant_, CodeConstant(), common(), ExternalConstant(), v8::internal::Runtime::FunctionForId(), v8::internal::SetOncePointer< T >::get(), v8::internal::compiler::Linkage::GetRuntimeCallDescriptor(), Int32Constant(), v8::internal::SetOncePointer< T >::is_set(), isolate(), linkage(), v8::internal::Runtime::Function::nargs, PatchInsertInput(), PatchOperator(), and v8::internal::SetOncePointer< T >::set().
Referenced by ReplaceWithCompareIC().
|
protected |
Definition at line 186 of file js-generic-lowering.cc.
References CodeConstant(), common(), v8::internal::anonymous_namespace{flags.cc}::flags, v8::internal::compiler::FlagsForNode(), v8::internal::compiler::Linkage::GetStubCallDescriptor(), linkage(), PatchInsertInput(), and PatchOperator().
|
protected |
Definition at line 35 of file js-generic-lowering.cc.
References jsgraph(), and v8::internal::compiler::JSGraph::SmiConstant().
Referenced by ReplaceWithCompareIC().
|
inlineprotected |
Definition at line 57 of file js-generic-lowering.h.
References graph(), and v8::internal::compiler::GenericGraphBase::zone().
Referenced by isolate(), PatchInsertInput(), and ReplaceWithCompareIC().
|
private |
Definition at line 70 of file js-generic-lowering.h.
Referenced by ReplaceWithRuntimeCall().
|
private |
Definition at line 67 of file js-generic-lowering.h.
Referenced by info().
|
private |
Definition at line 68 of file js-generic-lowering.h.
Referenced by jsgraph().
|
private |
Definition at line 69 of file js-generic-lowering.h.
Referenced by linkage().