Home
last modified time | relevance | path

Searched full:op (Results 1 – 25 of 148) sorted by relevance

123456

/arkcompiler/runtime_core/templates/options/
Doptions.h.erb46 % Common::options.each do |op|
47 % next if op.sub_option?
48 % next if op.deprecated?
49 parser->Add(&<%= op.field_name %>);
65 % Common::options.each do |op|
66 % if !op.lang_specific? && !op.has_lang_suboptions?
67 <%= op.type %> <%= op.getter_name %>([[maybe_unused]] std::string_view lang = "") const {
68 % if op.deprecated?
69 std::cerr << "WARNING: Option '<%= op.name %>' is deprecated and should not be used\n";
71 return <%= op.field_name %>.GetValue();
[all …]
/arkcompiler/ets_runtime/ecmascript/ic/
Dic_handler.h100 …tatic inline JSHandle<JSTaggedValue> LoadProperty(const JSThread *thread, const ObjectOperator &op) in LoadProperty() argument
103 ASSERT(!op.IsElement()); in LoadProperty()
104 if (!op.IsFound()) { in LoadProperty()
108 ASSERT(op.IsFastMode()); in LoadProperty()
110 JSTaggedValue val = op.GetValue(); in LoadProperty()
114 bool hasAccessor = op.IsAccessorDescriptor(); in LoadProperty()
120 if (op.IsInlinedProps()) { in LoadProperty()
122 JSHandle<JSObject> holder = JSHandle<JSObject>::Cast(op.GetHolder()); in LoadProperty()
123 auto index = holder->GetJSHClass()->GetInlinedPropertiesIndex(op.GetIndex()); in LoadProperty()
125 AttrIndexBit::Set<uint32_t>(op.GetIndex(), &handler); in LoadProperty()
[all …]
Dic_runtime.cpp34 void ICRuntime::UpdateLoadHandler(const ObjectOperator &op, JSHandle<JSTaggedValue> key, in UpdateLoadHandler() argument
45 if (op.IsElement()) { in UpdateLoadHandler()
46 if (!op.IsFound() && hclass->IsDictionaryElement()) { in UpdateLoadHandler()
51 if (!op.IsFound()) { in UpdateLoadHandler()
54 handlerValue = LoadHandler::LoadProperty(thread_, op); in UpdateLoadHandler()
56 handlerValue = PrototypeHandler::LoadPrototype(thread_, op, hclass); in UpdateLoadHandler()
58 } else if (!op.IsOnPrototype()) { in UpdateLoadHandler()
59 handlerValue = LoadHandler::LoadProperty(thread_, op); in UpdateLoadHandler()
65 handlerValue = PrototypeHandler::LoadPrototype(thread_, op, hclass); in UpdateLoadHandler()
71 } else if (op.IsElement()) { in UpdateLoadHandler()
[all …]
/arkcompiler/ets_frontend/ts2panda/ts2abc/tests/sources/
Dadd.json10 "op": "mov.dyn", string
21 "op": "mov.dyn", string
32 "op": "mov.dyn", string
43 "op": "mov.dyn", string
54 "op": "mov.dyn", string
65 "op": "ecma.ldlexenvdyn", string
72 "op": "sta.dyn", string
82 "op": "lda.dyn", string
92 "op": "sta.dyn", string
102 "op": "lda.dyn", string
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dgate_meta_data_builder.h58 #define DECLARE_CACHED_GATE_META(NAME, OP, R, S, D, V) \ argument
59 GateMetaData cached##NAME##_ { OpCode::OP, R, S, D, V };
74 #define DECLARE_CACHED_GATE_META(NAME, OP, R, S, D, V) \ argument
75 GateMetaData cached##NAME##1_{ OpCode::OP, R, S, D, ONE_VALUE }; \
76 GateMetaData cached##NAME##2_{ OpCode::OP, R, S, D, TWO_VALUE }; \
77 GateMetaData cached##NAME##3_{ OpCode::OP, R, S, D, THREE_VALUE }; \
78 GateMetaData cached##NAME##4_{ OpCode::OP, R, S, D, FOUR_VALUE }; \
79 GateMetaData cached##NAME##5_{ OpCode::OP, R, S, D, FIVE_VALUE };
83 #define DECLARE_CACHED_GATE_META(NAME, OP, R, S, D, V) \ argument
84 OneParameterMetaData cached##NAME##1_{ OpCode::OP, R, S, D, V, ONE_VALUE }; \
[all …]
Dnumber_speculative_lowering.h53 template<TypedBinOp Op>
55 template<TypedBinOp Op>
57 template<TypedBinOp Op>
59 template<TypedBinOp Op>
61 template<TypedUnOp Op>
64 template<TypedBinOp Op>
69 template<TypedBinOp Op>
71 template<TypedBinOp Op>
73 template<TypedBinOp Op>
75 template<TypedBinOp Op>
[all …]
Drange_analysis.cpp48 auto op = acc_.GetOpCode(gate); in VisitGate() local
49 switch (op) { in VisitGate()
107 auto op = acc_.GetTypedUnAccessor(gate).GetTypedUnOp(); in VisitTypedUnaryOp() local
112 switch (op) { in VisitTypedUnaryOp()
133 auto op = acc_.GetTypedBinaryOp(gate); in VisitTypedBinaryOp() local
135 switch (op) { in VisitTypedBinaryOp()
181 template<TypedBinOp Op>
184 ASSERT((Op == TypedBinOp::TYPED_ADD) || (Op == TypedBinOp::TYPED_SUB)); in GetRangeOfCalculate()
190 switch (Op) { in GetRangeOfCalculate()
200 template<TypedBinOp Op>
[all …]
Dnumber_speculative_lowering.cpp35 auto op = acc_.GetOpCode(gate); in Run() local
36 switch (op) { in Run()
53 OpCode op = acc_.GetOpCode(gate); in VisitGate() local
54 switch (op) { in VisitGate()
117 TypedBinOp Op = acc_.GetTypedBinaryOp(gate); in VisitNumberBinaryOp() local
118 switch (Op) { in VisitNumberBinaryOp()
199 TypedUnOp Op = acc_.GetTypedUnAccessor(gate).GetTypedUnOp(); in VisitTypedUnaryOp() local
200 switch (Op) { in VisitTypedUnaryOp()
241 template<TypedBinOp Op>
257 result = CalculateInts<Op>(left, right); // int op int in VisitNumberCalculate()
[all …]
Dgate_meta_data.cpp112 #define GATE_NAME_MAP(NAME, OP, R, S, D, V) { OpCode::OP, #OP }, in Str() argument
122 #define GATE_NAME_MAP(OP) { OpCode::OP, #OP }, in Str() argument
129 return "OP-" + std::to_string(static_cast<uint8_t>(opcode)); in Str()
305 #define DECLARE_GATE_META(NAME, OP, R, S, D, V) \ argument
313 #define DECLARE_GATE_META(NAME, OP, R, S, D, V) \ argument
316 auto meta = new (chunk_) BoolMetaData(OpCode::OP, R, S, D, V, value); \
322 #define DECLARE_GATE_META_WITH_BOOL_VALUE_IN(NAME, OP, R, S, D, V) \ in GATE_META_DATA_LIST_WITH_BOOL() argument
325 auto meta = new (chunk_) BoolMetaData(OpCode::OP, R, S, D, V, flag); \ in GATE_META_DATA_LIST_WITH_BOOL()
331 #define DECLARE_GATE_META(NAME, OP, R, S, D, V) \ argument
348 auto meta = new (chunk_) GateMetaData(OpCode::OP, R, S, D, V); \
[all …]
/arkcompiler/ets_runtime/tools/circuit_viewer/examples/
Dlog_loop.txt182 [compiler] ("id"=41, "op"="FRAME_STATE", "MType"="NOVALUE, bitfield=0, type=EMPTY-GT(M=0, L=0), ", …
183 [compiler] ("id"=44, "op"="FRAME_STATE", "MType"="NOVALUE, bitfield=0, type=EMPTY-GT(M=0, L=0), ", …
184 [compiler] ("id"=47, "op"="FRAME_STATE", "MType"="NOVALUE, bitfield=0, type=EMPTY-GT(M=0, L=0), ", …
185 [compiler] ("id"=50, "op"="FRAME_STATE", "MType"="NOVALUE, bitfield=0, type=EMPTY-GT(M=0, L=0), ", …
186 [compiler] ("id"=53, "op"="FRAME_STATE", "MType"="NOVALUE, bitfield=0, type=EMPTY-GT(M=0, L=0), ", …
198 [compiler] ("id"=11, "op"="CONSTANT", "MType"="I64, bitfield=18446462598732840970, type=-GT(M=0, L=…
201 [compiler] ("id"=12, "op"="CONSTANT", "MType"="I64, bitfield=18446462598732840960, type=-GT(M=0, L=…
215 [compiler] ("id"=16, "op"="JS_BYTECODE", "MType"="I64, bitfield=0, type=ANY_TYPE-GT(M=0, L=0), ", i…
217 [compiler] ("id"=17, "op"="JS_BYTECODE", "MType"="I64, bitfield=0, type=ANY_TYPE-GT(M=0, L=0), ", i…
219 [compiler] ("id"=18, "op"="JS_BYTECODE", "MType"="NOVALUE, bitfield=0, type=EMPTY-GT(M=0, L=0), ", …
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/templates/
Dformats.h.erb31 % def get_operand_kind(op, insn)
32 % if op.reg?
33 % if op.src? and op.dst?
35 % elsif op.src?
37 % elsif op.dst?
41 % elsif op.imm?
44 % elsif op.id?
53 % operands = fmt.operands.map {|op| "{#{get_operand_kind(op, insn)}, #{op.width}}"}
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DnonInferrableTypePropagation1.ts21 type Op<I, O> = (thing: Thing<I>) => Thing<O>;
25 opA: Op<T, A>,
26 opB: Op<A, B>,
34 declare function map<T, R>(project: (value: T) => R): Op<T, R>;
35 declare function tap<T>(next: (value: T) => void): Op<T, T>;
46 AssertType(thing.pipe, "<A, B>(Op<number, A>, Op<A, B>) => Thing<B>");
49 AssertType(map((data) => box(data)), "Op<number, Box<number>>");
50 AssertType(map, "<T, R>((T) => R) => Op<T, R>");
58 AssertType(tap((v) => log(v)), "Op<Box<number>, Box<number>>");
59 AssertType(tap, "<T>((T) => void) => Op<T, T>");
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Dbytecode_optimizer_isapi.rb18 op = acc_and_operands.select { |op| op.acc? && op.src? }.first
19 raise "There is no src acc for #{mnemonic}" unless op
20 data_kind_helper(op)
24 op = acc_and_operands.select { |op| op.acc? && op.dst? }.first
25 raise "There is no dst acc for #{mnemonic}" unless op
26 data_kind_helper(op)
31 def data_kind_helper(op) argument
32 m = /[fiub](?<size>\d+)/.match(op.type)
41 return 'ref' if op.type == 'ref'
42 raise "Unexpected operand type #{op.type} in data_kind_helper"
[all …]
/arkcompiler/runtime_core/libpandabase/templates/
Dlogger.rb60 @levels = data.levels.map { |op| Level.new(op) }
61 @components = data.components.map { |op| Component.new(op) }
62 @dfx_components = data.dfx_components.map { |op| Component.new(op) }
/arkcompiler/runtime_core/assembler/templates/
Doperand_types_print.h.erb19 inline std::string OperandTypePrint(panda::pandasm::Opcode op) {
20 switch (op) {
26 % operands_list = operands.map do |op|
27 % if op.reg?
29 % elsif op.imm?
31 % elsif op.id?
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_atomics.h61 const callbackfun &op);
65 const callbackfun &op);
68 EcmaRuntimeCallInfo *argv, const callbackfun &op);
71 EcmaRuntimeCallInfo *argv, const callbackfun &op);
74 EcmaRuntimeCallInfo *argv, const callbackfun &op);
77 EcmaRuntimeCallInfo *argv, const callbackfun &op);
80 EcmaRuntimeCallInfo *argv, const callbackfun &op);
83 EcmaRuntimeCallInfo *argv, const callbackfun &op);
86 EcmaRuntimeCallInfo *argv, const callbackfun &op);
89 EcmaRuntimeCallInfo *argv, const callbackfun &op);
Dbuiltins_atomics.cpp277 const callbackfun &op) in AtomicReadModifyWrite() argument
302 // 9. Return GetModifySetValueInBuffer(buffer, indexedPosition, elementType, v, op). in AtomicReadModifyWrite()
303 …AtomicReadModifyWriteCase(thread, buffer.GetTaggedValue(), elementType, indexedPosition, argv, op); in AtomicReadModifyWrite()
309 … EcmaRuntimeCallInfo *argv, const callbackfun &op) in AtomicReadModifyWriteCase() argument
317 return HandleWithUint8(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase()
319 return HandleWithInt8(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase()
321 return HandleWithUint16(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase()
323 return HandleWithInt16(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase()
325 return HandleWithUint32(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase()
327 return HandleWithInt32(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase()
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/core/
DbinaryLikeExpression.cpp24 … const ir::Expression *rightExpr, const ir::AstNode *expr, lexer::TokenType op) in CheckBinaryOperator() argument
31 switch (op) { in CheckBinaryOperator()
55 …{"The ", op, " operator is not allowed for boolean types. Consider using ", suggestedOp, " instead… in CheckBinaryOperator()
81 if (op == lexer::TokenType::PUNCTUATOR_UNSIGNED_RIGHT_SHIFT || in CheckBinaryOperator()
82 op == lexer::TokenType::PUNCTUATOR_UNSIGNED_RIGHT_SHIFT_EQUAL) { in CheckBinaryOperator()
83 …ThrowTypeError({"operator ", op, " cannot be applied to types 'bigint' and 'bigint'"}, expr->Start… in CheckBinaryOperator()
87 ThrowBinaryLikeError(op, leftType, rightType, expr->Start()); in CheckBinaryOperator()
90 CheckAssignmentOperator(op, leftExpr, leftType, resultType); in CheckBinaryOperator()
95 … const ir::Expression *rightExpr, const ir::AstNode *expr, lexer::TokenType op) in CheckPlusOperator() argument
116 ThrowBinaryLikeError(op, leftType, rightType, expr->Start()); in CheckPlusOperator()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
Dassembler_aarch64.cpp91 uint32_t op = 0; in Ldp() local
95 op = LoadStorePairOpCode::LDP_Offset; in Ldp()
98 op = LoadStorePairOpCode::LDP_Pre; in Ldp()
101 op = LoadStorePairOpCode::LDP_Post; in Ldp()
114 uint32_t instructionCode = Sf(sf) | op | LoadAndStorePairImm(imm) | Rt2(rt2.GetId()) | in Ldp()
125 uint32_t op = 0; in Stp() local
129 op = LoadStorePairOpCode::STP_Offset; in Stp()
132 op = LoadStorePairOpCode::STP_Pre; in Stp()
135 op = LoadStorePairOpCode::STP_Post; in Stp()
148 uint32_t instructionCode = Sf(sf) | op | LoadAndStorePairImm(imm) | Rt2(rt2.GetId()) | in Stp()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/
Dcommon_call.cpp99 Register argv, Register op, Register currentSlot, Label *next, Label *stackOverflow) in PushArgsWithArgv() argument
107 StackOverflowCheck(assembler, glue, currentSlot, argc, op, stackOverflow); in PushArgsWithArgv()
111 __ Ldr(op, MemoryOperand(argv, -FRAME_SLOT_SIZE, PREINDEX)); // -8: 8 bytes in PushArgsWithArgv()
112 __ Str(op, MemoryOperand(currentSlot, -FRAME_SLOT_SIZE, PREINDEX)); // -8: 8 bytes in PushArgsWithArgv()
136 Register numArgs, Register op, Label *stackOverflow) in StackOverflowCheck() argument
138 __ Ldr(op, MemoryOperand(glue, JSThread::GlueData::GetStackLimitOffset(false))); in StackOverflowCheck()
140 __ Sub(op, currentSlot, Operand(op, UXTX, 0)); in StackOverflowCheck()
141 __ Cmp(op, Operand(numArgs, LSL, 3)); // 3: each args occupies 8 bytes in StackOverflowCheck()
143 __ Ldr(op, MemoryOperand(glue, JSThread::GlueData::GetAllowCrossThreadExecutionOffset(false))); in StackOverflowCheck()
144 __ Cbz(op, stackOverflow); in StackOverflowCheck()
Doptimized_fast_call.cpp105 Register op = __ AvailableRegister1(); in OptimizedFastCallAndPushUndefined() local
181 __ Ldr(op, MemoryOperand(argV, 0)); in OptimizedFastCallAndPushUndefined()
182 __ Mov(Register(X6), op); in OptimizedFastCallAndPushUndefined()
192 __ Ldr(op, MemoryOperand(argV, 0)); in OptimizedFastCallAndPushUndefined()
193 __ Mov(Register(X7), op); in OptimizedFastCallAndPushUndefined()
261 Register op = __ TempRegister2(); in JSFastCallWithArgV() local
269 __ Ldr(op, MemoryOperand(argV, 0)); in JSFastCallWithArgV()
270 __ Mov(Register(X3), op); // first arg in JSFastCallWithArgV()
276 __ Ldr(op, MemoryOperand(argV, 0)); in JSFastCallWithArgV()
277 __ Mov(Register(X4), op); // second arg in JSFastCallWithArgV()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_object.cpp232 ObjectOperator op(thread, receiver, lengthKey, OperatorType::OWN); in IsArrayLengthWritable() local
233 return op.GetAttr().IsWritable(); in IsArrayLengthWritable()
493 ObjectOperator op(thread, objValue, i, OperatorType::OWN); in GetAllElementKeysByFilter() local
494 bool bIgnore = FilterHelper::IgnoreKeyByFilter<ObjectOperator>(op, filter); in GetAllElementKeysByFilter()
604 ObjectOperator op(thread, key); in GlobalSetProperty() local
605 if (!op.IsFound()) { in GlobalSetProperty()
607 op.SetAttr(attr); in GlobalSetProperty()
609 return SetProperty(&op, value, mayThrow); in GlobalSetProperty()
643 ObjectOperator op(thread, obj, receiver, key); in SetProperty() local
644 return SetProperty(&op, value, mayThrow); in SetProperty()
[all …]
/arkcompiler/runtime_core/templates/
Dcpu_features.inc.erb20 % Common::options.each do |op|
21 % if op.name == 'compiler-cpu-features'
22 % op.possible_values.each do |val|
24 …DEF(<%= val.upcase.gsub( "-", "_") %>, "<%= val %>")<%= op.possible_values.last != val ? " \\" : "…
/arkcompiler/runtime_core/templates/logger_components/
Dlogger_components.inc.erb20 % Common::options.each do |op|
21 % if op.name == 'compiler-log'
22 % op.possible_values.each do |val|
24 …DEF(<%= val.upcase.gsub( "-", "_") %>, "<%= val %>")<%= op.possible_values.last != val ? " \\" : "…
/arkcompiler/runtime_core/tests/cts-assembly/
Darrays-07.pa32 # if op == fldarr.32 then
34 # else if op == ldarr.8 then
36 # else if op == ldarru.8 then
38 # else if op == ldarr.16 then
40 # else if op == ldarru.16 then

123456