| /arkcompiler/runtime_core/templates/options/ |
| D | options.h.erb | 46 % 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/runtime_core/irtoc/scripts/ |
| D | interpreter.irt | 430 macro(:acc_receiver) do |op, imm| 434 res2 := vreg_value(op).ref 596 ['Add', 'Sub', 'And', 'Mul', 'Or', 'Xor', 'Shl', 'Shr', 'AShr'].each do |op| 598 macro(:"handle_#{op.downcase}_v4_v4") do |vs1, vs2| 599 v_ := send(op, vs1, vs2).i32 603 macro(:"handle_#{op.downcase}2_v8") do |vs| 604 v_ := send(op, acc_value.i32, vs).i32 608 macro(:"handle_#{op.downcase}2_64_v8") do |vs| 609 v_ := send(op, acc_value.i64, vs).i64 613 macro(:"handle_#{op.downcase}i_imm") do |imm| [all …]
|
| /arkcompiler/ets_frontend/ts2panda/ts2abc/tests/sources/ |
| D | add.json | 10 "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/ic/ |
| D | ic_handler.h | 98 …tatic inline JSHandle<JSTaggedValue> LoadProperty(const JSThread *thread, const ObjectOperator &op) in LoadProperty() argument 101 ASSERT(!op.IsElement()); in LoadProperty() 102 if (!op.IsFound()) { in LoadProperty() 106 ASSERT(op.IsFastMode()); in LoadProperty() 108 JSTaggedValue val = op.GetValue(); in LoadProperty() 112 bool hasAccessor = op.IsAccessorDescriptor(); in LoadProperty() 118 if (op.IsInlinedProps()) { in LoadProperty() 120 JSHandle<JSObject> holder = JSHandle<JSObject>::Cast(op.GetHolder()); in LoadProperty() 121 auto index = holder->GetJSHClass()->GetInlinedPropertiesIndex(op.GetIndex()); in LoadProperty() 125 if (op.IsFastMode()) { in LoadProperty() [all …]
|
| D | ic_runtime.cpp | 34 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_runtime/ecmascript/compiler/ |
| D | gate_meta_data_builder.h | 58 #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 …]
|
| D | gate_meta_data.cpp | 50 #define GATE_NAME_MAP(NAME, OP, R, S, D, V) { OpCode::OP, #OP }, in Str() argument 55 #define GATE_NAME_MAP(OP) { OpCode::OP, #OP }, in Str() argument 62 return "OP-" + std::to_string(static_cast<uint8_t>(opcode)); in Str() 175 #define DECLARE_GATE_META(NAME, OP, R, S, D, V) \ argument 183 #define DECLARE_GATE_META(NAME, OP, R, S, D, V) \ argument 200 auto meta = new (chunk_) GateMetaData(OpCode::OP, R, S, D, V); \ 207 #define DECLARE_GATE_META(NAME, OP, R, S, D, V) \ in GATE_META_DATA_LIST_WITH_SIZE() argument 224 auto meta = new (chunk_) OneParameterMetaData(OpCode::OP, R, S, D, V, value); \ in GATE_META_DATA_LIST_WITH_SIZE() 231 #define DECLARE_GATE_META(NAME, OP, R, S, D, V) \ argument 234 auto meta = new (chunk_) OneParameterMetaData(OpCode::OP, R, S, D, V, value); \
|
| D | check_elimination.cpp | 41 auto op = acc_.GetOpCode(gate); in IsPrimitiveTypeCheck() local 42 return op == OpCode::PRIMITIVE_TYPE_CHECK; in IsPrimitiveTypeCheck() 139 auto op = OpCode(acc_.GetOpCode(gate)); in RemovePassedCheck() local 142 auto tp = std::make_tuple(op, bit, v0); in RemovePassedCheck() 150 auto op = OpCode(acc_.GetOpCode(gate)); in RemovePassedCheck() local 154 auto tp = std::make_tuple(op, bit, v0, v1); in RemovePassedCheck() 167 auto op = acc_.GetOpCode(gate); in RemovePassedCheck() local 168 if (op == OpCode::LOOP_BACK || op == OpCode::LOOP_BEGIN || op == OpCode::MERGE) { in RemovePassedCheck()
|
| /arkcompiler/ets_frontend/es2panda/compiler/templates/ |
| D | formats.h.erb | 31 % 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/runtime_core/bytecode_optimizer/ |
| D | bytecode_optimizer_isapi.rb | 18 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/ets_runtime/ecmascript/builtins/ |
| D | builtins_atomics.h | 61 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);
|
| D | builtins_atomics.cpp | 274 const callbackfun &op) in AtomicReadModifyWrite() argument 298 // 9. Return GetModifySetValueInBuffer(buffer, indexedPosition, elementType, v, op). in AtomicReadModifyWrite() 299 …AtomicReadModifyWriteCase(thread, buffer.GetTaggedValue(), elementType, indexedPosition, argv, op); in AtomicReadModifyWrite() 305 … EcmaRuntimeCallInfo *argv, const callbackfun &op) in AtomicReadModifyWriteCase() argument 312 return HandleWithUint8(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase() 314 return HandleWithInt8(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase() 316 return HandleWithUint16(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase() 318 return HandleWithInt16(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase() 320 return HandleWithUint32(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase() 322 return HandleWithInt32(thread, size, block, indexedPosition, argv, op); in AtomicReadModifyWriteCase() [all …]
|
| /arkcompiler/runtime_core/libpandabase/templates/ |
| D | logger.rb | 60 @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/ |
| D | operand_types_print.h.erb | 19 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/ |
| D | js_object.cpp | 224 ObjectOperator op(thread, receiver, lengthKey, OperatorType::OWN); in IsArrayLengthWritable() local 225 return op.GetAttr().IsWritable(); in IsArrayLengthWritable() 477 ObjectOperator op(thread, key); in GlobalSetProperty() local 478 if (!op.IsFound()) { in GlobalSetProperty() 480 op.SetAttr(attr); in GlobalSetProperty() 482 return SetProperty(&op, value, mayThrow); in GlobalSetProperty() 516 ObjectOperator op(thread, obj, receiver, key); in SetProperty() local 517 return SetProperty(&op, value, mayThrow); in SetProperty() 526 ObjectOperator op(thread, obj, key); in SetProperty() local 527 return SetProperty(&op, value, mayThrow); in SetProperty() [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | binaryLikeExpression.cpp | 24 … 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/ |
| D | assembler_aarch64.cpp | 91 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() 113 uint32_t instructionCode = Sf(sf) | op | LoadAndStorePairImm(imm) | Rt2(rt2.GetId()) | in Ldp() 123 uint32_t op = 0; in Stp() local 127 op = LoadStorePairOpCode::STP_Offset; in Stp() 130 op = LoadStorePairOpCode::STP_Pre; in Stp() 133 op = LoadStorePairOpCode::STP_Post; in Stp() 145 uint32_t instructionCode = Sf(sf) | op | LoadAndStorePairImm(imm) | Rt2(rt2.GetId()) | in Stp() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
| D | common_call.cpp | 99 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() 139 __ Sub(op, currentSlot, Operand(op, UXTX, 0)); in StackOverflowCheck() 140 __ Cmp(op, Operand(numArgs, LSL, 3)); // 3: each args occupies 8 bytes in StackOverflowCheck()
|
| /arkcompiler/runtime_core/templates/ |
| D | cpu_features.inc.erb | 20 % 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/tests/cts-assembly/ |
| D | arrays-07.pa | 32 # 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
|
| D | arrays-08.pa | 32 # 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
|
| /arkcompiler/runtime_core/templates/logger_components/ |
| D | logger_components.inc.erb | 20 % 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/ets_frontend/ts2panda/templates/ |
| D | irnodes.ts.erb | 46 % dst_operands = insn.operands.select { |op| op.dst? } 146 % def get_operand_kind(op, insn) 147 % if op.reg? 148 % if op.src? and op.dst? 150 % elsif op.src? 152 % elsif op.dst? 156 % elsif op.imm? 159 % elsif op.id? 168 % operands = fmt.operands.map {|op| "[#{get_operand_kind(op, insn)}, #{op.width}]"} 434 % ops = ops_list.map { |op| "#{op}"}.join(", ") [all …]
|
| /arkcompiler/runtime_core/templates/events/ |
| D | events.h.erb | 41 % Common::events.each do |op| 42 void <%= op.method_name %>(<%= op.args_list %>) { 43 …events_file << class_name_.data() << "::" << method_name_.data() << ',' << "<%= op.name %>" << ','; 44 <%= op.print_line %>;
|
| /arkcompiler/runtime_core/isa/ |
| D | isapi.rb | 188 operands.each_with_object(res) do |op, ops| 189 if op.dst? && op.src? 190 ops << Operand.new(op.name, 'out', op.type, op.width, op.offset) 191 ops << Operand.new(op.name, 'in', op.type, op.width, op.offset) 193 ops << op 317 op = OpenStruct.new 318 op.name = name 319 op.width = width.to_i 320 op.offset = offset 321 offset += op.width [all …]
|