5 #ifndef V8_COMPILER_JS_OPERATOR_H_
6 #define V8_COMPILER_JS_OPERATOR_H_
68 #define SIMPLE(name, properties, inputs, outputs) \
70 SimpleOperator(IrOpcode::k##name, properties, inputs, outputs, #name);
72 #define NOPROPS(name, inputs, outputs) \
73 SIMPLE(name, Operator::kNoProperties, inputs, outputs)
75 #define OP1(name, ptype, pname, properties, inputs, outputs) \
76 return new (zone_) Operator1<ptype>(IrOpcode::k##name, properties, inputs, \
77 outputs, #name, pname)
79 #define BINOP(name) NOPROPS(name, 2, 1)
80 #define UNOP(name) NOPROPS(name, 1, 1)
82 #define PURE_BINOP(name) SIMPLE(name, Operator::kPure, 2, 1)
123 arguments, 1,
"JSCallConstruct", arguments);
168 NOPROPS(JSCreateFunctionContext, 1, 1);
177 NOPROPS(JSCreateModuleContext, 2, 1);
180 NOPROPS(JSCreateGlobalContext, 2, 1);
204 return os << val.
depth() <<
"," << val.
index()
208 return (val.
depth() << 16) | (val.
index() & 0xffff);
221 return os << (f->
name ? f->
name :
"?Runtime?");
static const Function * FunctionForId(FunctionId id)
ContextAccess(int depth, int index, bool immutable)
const Operator * UnaryNot()
const Operator * BitwiseOr()
const Operator * CreateWithContext()
const Operator * GreaterThan()
const Operator * InstanceOf()
const Operator * Debugger()
const Operator * StrictEqual()
const Operator * StrictNotEqual()
const Operator * ShiftRightLogical()
const Operator * ToString()
const Operator * CreateCatchContext(Unique< String > name)
const Operator * ToBoolean()
const Operator * CreateModuleContext()
const Operator * Subtract()
const Operator * CreateBlockContext()
const Operator * LoadNamed(Unique< Name > name, ContextualMode contextual_mode=NOT_CONTEXTUAL)
const Operator * Runtime(Runtime::FunctionId function, int arguments)
const Operator * ShiftLeft()
const Operator * TypeOf()
const Operator * LoadContext(uint16_t depth, uint32_t index, bool immutable)
const Operator * StoreProperty(StrictMode strict_mode)
const Operator * Multiply()
const Operator * ShiftRight()
const Operator * BitwiseXor()
const Operator * CallNew(int arguments)
const Operator * GreaterThanOrEqual()
const Operator * HasProperty()
const Operator * StoreContext(uint16_t depth, uint32_t index)
const Operator * ToObject()
const Operator * Create()
const Operator * BitwiseAnd()
const Operator * NotEqual()
const Operator * DeleteProperty(StrictMode strict_mode)
const Operator * Divide()
const Operator * ToName()
const Operator * CreateFunctionContext()
const Operator * LoadProperty()
const Operator * ToNumber()
const Operator * LessThanOrEqual()
JSOperatorBuilder(Zone *zone)
const Operator * Call(int arguments, CallFunctionFlags flags)
const Operator * Modulus()
const Operator * CreateGlobalContext()
const Operator * StoreNamed(StrictMode strict_mode, Unique< Name > name)
const Operator * LessThan()
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define OP1(name, ptype, pname, properties, inputs, outputs)
#define SIMPLE(name, properties, inputs, outputs)
#define NOPROPS(name, inputs, outputs)
#define DCHECK(condition)
const uint32_t kMaxUInt32
Debugger support for the V8 JavaScript engine.
ContextualMode contextual_mode
static bool Equals(ContextAccess a, ContextAccess b)
static int HashCode(ContextAccess val)
static OStream & PrintTo(OStream &os, ContextAccess val)
static int HashCode(Runtime::FunctionId val)
static OStream & PrintTo(OStream &os, Runtime::FunctionId val)
static bool Equals(Runtime::FunctionId a, Runtime::FunctionId b)