/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | dsfield.c | 177 arg->common.value.string, ACPI_TYPE_ANY, in acpi_ds_create_buffer_field() 185 arg->common.value.string, status); in acpi_ds_create_buffer_field() 294 (u64)arg->common.value.size; in acpi_ds_get_field_names() 311 * NOTE. These three bytes are encoded in the integer value in acpi_ds_get_field_names() 323 ((u8)((u32)(arg->common.value.integer & 0x07)))); in acpi_ds_get_field_names() 328 ((arg->common.value.integer >> 8) & 0xFF); in acpi_ds_get_field_names() 333 ((arg->common.value.integer >> 16) & 0xFF); in acpi_ds_get_field_names() 349 child = arg->common.value.arg; in acpi_ds_get_field_names() 353 (u16)child->named.value.integer; in acpi_ds_get_field_names() 358 child->common.value in acpi_ds_get_field_names() [all...] |
H A D | hwxface.c | 56 * hardcode it here and ignore the FADT value. This maintains in acpi_reset() 64 /* Write the reset value to the reset register */ in acpi_reset() 78 * PARAMETERS: value - Where the value is returned in ACPI_EXPORT_SYMBOL() 108 * PARAMETERS: value - Value to be written in ACPI_EXPORT_SYMBOL() 116 acpi_status acpi_write(u64 value, struct acpi_generic_address *reg) in ACPI_EXPORT_SYMBOL() 122 status = acpi_hw_write(value, reg); in ACPI_EXPORT_SYMBOL() 137 * RETURN: Status and the value read from the specified Register. Value in ACPI_EXPORT_SYMBOL() 157 u32 value; in ACPI_EXPORT_SYMBOL() local 177 /* Normalize the value tha in ACPI_EXPORT_SYMBOL() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | debugfs.h | 118 u8 *value); 120 u16 *value); 122 u32 *value); 124 u64 *value); 126 unsigned long *value); 128 u8 *value); 130 u16 *value); 132 u32 *value); 134 u64 *value); 136 struct dentry *parent, size_t *value); 278 debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent, u8 *value) debugfs_create_u8() argument 281 debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent, u16 *value) debugfs_create_u16() argument 284 debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent, u32 *value) debugfs_create_u32() argument 287 debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent, u64 *value) debugfs_create_u64() argument 290 debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent, unsigned long *value) debugfs_create_ulong() argument 294 debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value) debugfs_create_x8() argument 297 debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value) debugfs_create_x16() argument 300 debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent, u32 *value) debugfs_create_x32() argument 303 debugfs_create_x64(const char *name, umode_t mode, struct dentry *parent, u64 *value) debugfs_create_x64() argument 306 debugfs_create_size_t(const char *name, umode_t mode, struct dentry *parent, size_t *value) debugfs_create_size_t() argument 310 debugfs_create_atomic_t(const char *name, umode_t mode, struct dentry *parent, atomic_t *value) debugfs_create_atomic_t() argument 315 debugfs_create_bool(const char *name, umode_t mode, struct dentry *parent, bool *value) debugfs_create_bool() argument 318 debugfs_create_str(const char *name, umode_t mode, struct dentry *parent, char **value) debugfs_create_str() argument 394 debugfs_create_xul(const char *name, umode_t mode, struct dentry *parent, unsigned long *value) debugfs_create_xul() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/hievent/ |
H A D | hiview_hievent.c | 34 char *value; member 59 payload->value = NULL; in hievent_payload_create() 70 kfree(p->value); in hievent_payload_destroy() 122 const char *key, long value) in hievent_put_integer() 141 kfree(payload->value); in hievent_put_integer() 143 payload->value = kmalloc(INT_TYPE_MAX_LEN, GFP_KERNEL); in hievent_put_integer() 144 if (!payload->value) in hievent_put_integer() 147 (void)memset(payload->value, 0, INT_TYPE_MAX_LEN); in hievent_put_integer() 148 ret = snprintf(payload->value, INT_TYPE_MAX_LEN, "%d", (int)value); in hievent_put_integer() 121 hievent_put_integer(struct hiview_hievent *event, const char *key, long value) hievent_put_integer() argument 155 hievent_put_string(struct hiview_hievent *event, const char *key, const char *value) hievent_put_string() argument 249 hievent_make_regular(char *value) hievent_make_regular() argument 333 char *value = NULL; hievent_fill_payload() local [all...] |
/kernel/linux/linux-6.6/kernel/power/ |
H A D | qos.c | 50 * pm_qos_read_value - Return the current effective constraint value. 76 static void pm_qos_set_value(struct pm_qos_constraints *c, s32 value) in pm_qos_set_value() argument 78 WRITE_ONCE(c->target_value, value); in pm_qos_set_value() 86 * @value: New request value for the target list entry. 89 * @action involving the @node list entry and @value on it. 91 * The recognized values of @action are PM_QOS_ADD_REQ (store @value in @node 93 * @value in it and add it to the list again), and PM_QOS_REMOVE_REQ (remove 94 * @node from the list, ignore @value). 96 * Return: 1 if the aggregate constraint value ha 98 pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node, enum pm_qos_req_action action, int value) pm_qos_update_target() argument 223 cpu_latency_qos_value_invalid(s32 value) cpu_latency_qos_value_invalid() argument 249 cpu_latency_qos_apply(struct pm_qos_request *req, enum pm_qos_req_action action, s32 value) cpu_latency_qos_apply() argument 269 cpu_latency_qos_add_request(struct pm_qos_request *req, s32 value) cpu_latency_qos_add_request() argument 371 s32 value; cpu_latency_qos_read() local 386 s32 value; cpu_latency_qos_write() local 434 freq_qos_value_invalid(s32 value) freq_qos_value_invalid() argument 503 freq_qos_apply(struct freq_qos_request *req, enum pm_qos_req_action action, s32 value) freq_qos_apply() argument 538 freq_qos_add_request(struct freq_constraints *qos, struct freq_qos_request *req, enum freq_qos_req_type type, s32 value) freq_qos_add_request() argument [all...] |
/third_party/mesa3d/src/vulkan/util/ |
H A D | gen_enum_to_str.py | 82 return "Unknown ${enum.name} value."; 119 return "Unknown VkObjectType value."; 284 def add_value(self, name, value=None, 288 assert value is None and offset is None 296 # Use the value from the alias 297 value = self.name_to_value[alias] 299 assert value is not None or extnum is not None 300 if value is None: 301 value = 1000000000 + (extnum - 1) * 1000 + offset 303 value [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | PackedGLEnums_autogen.h | 44 std::ostream &operator<<(std::ostream &os, AlphaTestFunc value); 69 std::ostream &operator<<(std::ostream &os, BufferBinding value); 90 std::ostream &operator<<(std::ostream &os, BufferUsage value); 107 std::ostream &operator<<(std::ostream &os, ClientVertexArrayType value); 122 std::ostream &operator<<(std::ostream &os, CullFaceMode value); 139 std::ostream &operator<<(std::ostream &os, FilterMode value); 154 std::ostream &operator<<(std::ostream &os, FogMode value); 171 std::ostream &operator<<(std::ostream &os, GraphicsResetStatus value); 186 std::ostream &operator<<(std::ostream &os, HandleType value); 201 std::ostream &operator<<(std::ostream &os, HintSetting value); [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/apic/ |
H A D | apic.c | 325 * value, second time for real. The other (noncalibrating) CPUs 326 * call this function only once, with the real, calibrated value. 671 * Monitoring the jiffies value is inaccurate and the clockevents 750 /* Correct the lapic counter value */ in calibrate_by_pmtimer() 757 /* Correct the tsc counter value */ in calibrate_by_pmtimer() 1203 u32 value; in apic_soft_disable() local 1208 value = apic_read(APIC_SPIV); in apic_soft_disable() 1209 value &= ~APIC_SPIV_APIC_ENABLED; in apic_soft_disable() 1210 apic_write(APIC_SPIV, value); in apic_soft_disable() 1362 unsigned int value; in init_bsp_APIC() local 1443 unsigned int oldvalue, value, maxlvt; lapic_setup_esr() local 1559 unsigned int value; setup_local_APIC() local 1722 unsigned int value; end_local_APIC_setup() local 2246 unsigned int value; disconnect_bsp_APIC() local [all...] |
/kernel/linux/linux-5.10/drivers/net/bonding/ |
H A D | bond_options.c | 454 /* Searches for a value in opt's values[] table */ 464 if (opt->values[i].value == val) in bond_opt_get_val() 470 /* Searches for a value in opt's values[] table which matches the flagmask */ 492 if (!maxval || (minval && val < minval->value) || val > maxval->value) in bond_opt_check_range() 499 * bond_opt_parse - parse option value 501 * @val: value to parse 503 * This function tries to extract the value from @val and check if it's 526 checkval = val->value != ULLONG_MAX; in bond_opt_parse() 536 /* The following code extracts the string to match or the value in bond_opt_parse() 904 int value = newval->value; _bond_option_delay_set() local [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | rt715.c | 38 unsigned int value) in rt715_index_write() 43 ret = regmap_write(regmap, addr, value); in rt715_index_write() 45 pr_err("Failed to set private value: %08x <= %04x %d\n", ret, in rt715_index_write() 46 addr, value); in rt715_index_write() 53 unsigned int nid, unsigned int reg, unsigned int value) in rt715_index_write_nid() 58 ret = regmap_write(regmap, addr, value); in rt715_index_write_nid() 60 pr_err("Failed to set private value: %06x <= %04x ret=%d\n", in rt715_index_write_nid() 61 addr, value, ret); in rt715_index_write_nid() 67 unsigned int nid, unsigned int reg, unsigned int *value) in rt715_index_read_nid() 72 *value in rt715_index_read_nid() 37 rt715_index_write(struct regmap *regmap, unsigned int reg, unsigned int value) rt715_index_write() argument 52 rt715_index_write_nid(struct regmap *regmap, unsigned int nid, unsigned int reg, unsigned int value) rt715_index_write_nid() argument 66 rt715_index_read_nid(struct regmap *regmap, unsigned int nid, unsigned int reg, unsigned int *value) rt715_index_read_nid() argument 994 unsigned int clk_freq, value; rt715_clock_config() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | MutableCodePointTrie.java | 23 * add the source value into the value of each trie range. 29 * Constructs a mutable trie that initially maps each Unicode code point to the same value. 34 * determines the number of bits in the data value in the resulting {@link CodePointTrie}. 36 * @param initialValue the initial value that is set for all code points 37 * @param errorValue the value for out-of-range code points and ill-formed UTF-8/16 102 int value = range.getValue(); in fromCodePointMap() 103 if (value != initialValue) { in fromCodePointMap() 105 mutableTrie.set(start, value); in fromCodePointMap() 107 mutableTrie.setRange(start, end, value); in fromCodePointMap() 143 maybeFilterValue(int value, int initialValue, int nullValue, ValueFilter filter) maybeFilterValue() argument 240 writeBlock(int block, int value) writeBlock() argument 252 set(int c, int value) set() argument 262 fillBlock(int block, int start, int limit, int value) fillBlock() argument 275 setRange(int start, int end, int value) setRange() argument 531 allValuesSameAs(int[] p, int pi, int length, int value) allValuesSameAs() argument 552 findAllSameBlock(int[] p, int start, int limit, int value, int blockLength) findAllSameBlock() argument 604 getAllSameOverlap(int[] p, int length, int value, int blockLength) getAllSameOverlap() argument 658 findOrAdd(int index, int count, int value) findOrAdd() argument 681 add(int index, int count, int value) add() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | MutableCodePointTrie.java | 24 * add the source value into the value of each trie range. 30 * Constructs a mutable trie that initially maps each Unicode code point to the same value. 35 * determines the number of bits in the data value in the resulting {@link CodePointTrie}. 37 * @param initialValue the initial value that is set for all code points 38 * @param errorValue the value for out-of-range code points and ill-formed UTF-8/16 100 int value = range.getValue(); in fromCodePointMap() 101 if (value != initialValue) { in fromCodePointMap() 103 mutableTrie.set(start, value); in fromCodePointMap() 105 mutableTrie.setRange(start, end, value); in fromCodePointMap() 140 maybeFilterValue(int value, int initialValue, int nullValue, ValueFilter filter) maybeFilterValue() argument 235 writeBlock(int block, int value) writeBlock() argument 246 set(int c, int value) set() argument 256 fillBlock(int block, int start, int limit, int value) fillBlock() argument 268 setRange(int start, int end, int value) setRange() argument 523 allValuesSameAs(int[] p, int pi, int length, int value) allValuesSameAs() argument 544 findAllSameBlock(int[] p, int start, int limit, int value, int blockLength) findAllSameBlock() argument 596 getAllSameOverlap(int[] p, int length, int value, int blockLength) getAllSameOverlap() argument 650 findOrAdd(int index, int count, int value) findOrAdd() argument 673 add(int index, int count, int value) add() argument [all...] |
/third_party/node/deps/v8/src/json/ |
H A D | json-parser.cc | 140 Handle<Object> value; in InternalizeJsonProperty() local 142 isolate_, value, Object::GetPropertyOrElement(isolate_, holder, name), in InternalizeJsonProperty() 144 if (value->IsJSReceiver()) { in InternalizeJsonProperty() 145 Handle<JSReceiver> object = Handle<JSReceiver>::cast(value); in InternalizeJsonProperty() 175 Handle<Object> argv[] = {name, value}; in InternalizeJsonProperty() 352 base::uc32 value = 0; in ScanUnicodeCharacter() local 356 value = value * 16 + digit; in ScanUnicodeCharacter() 358 return value; in ScanUnicodeCharacter() 361 // Parse any JSON value 444 Handle<Object> value = property.value; BuildJsonObject() local 460 Handle<Object> value = property.value; BuildJsonObject() local 461 elms->set(static_cast<int>(index), *value, mode); BuildJsonObject() local 514 Handle<Object> value = property.value; BuildJsonObject() local 596 Object value = *property.value; BuildJsonObject() local 660 Handle<Object> value = property.value; BuildJsonObject() local 677 Object value = *element_stack[i]; BuildJsonArray() local 719 Handle<Object> value; ParseJsonValue() local 1100 base::uc32 value = 0; DecodeString() local 1175 base::uc32 value = ScanUnicodeCharacter(); ScanJsonString() local [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/ |
H A D | hash_test.cc | 58 SpyHashState SpyHash(const T& value) { in SpyHash() argument 59 return SpyHashState::combine(SpyHashState(), value); in SpyHash() 68 EXPECT_TRUE((is_hashable<TypeParam>::value)); in TYPED_TEST_P() 94 EXPECT_TRUE((is_hashable<LegacyEnum>::value)); in TEST() 95 EXPECT_TRUE((is_hashable<EnumClass>::value)); in TEST() 96 EXPECT_TRUE((is_hashable<bool>::value)); in TEST() 107 EXPECT_TRUE((is_hashable<float>::value)); in TEST() 108 EXPECT_TRUE((is_hashable<double>::value)); in TEST() 109 EXPECT_TRUE((is_hashable<long double>::value)); in TEST() 129 EXPECT_TRUE((is_hashable<int*>::value)); in TEST() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 39 long long key, next_key, first_key, value; in test_hashmap() local 42 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in test_hashmap() 50 value = 1234; in test_hashmap() 52 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 54 value = 0; in test_hashmap() 56 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap() 61 assert(bpf_map_update_elem(fd, &key, &value, -1) == -1 && in test_hashmap() 65 assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap() 69 assert(bpf_map_lookup_elem(fd, &key, &value) in test_hashmap() 255 long long key, value; helper_fill_hashmap() local 277 long long key, value, next_key; test_hashmap_walk() local 348 long long value; test_arraymap() local 499 __u32 key, value; test_devmap() local 514 __u32 key, value; test_devmap_hash() local 661 __u32 key, value; test_sockmap() local 1231 int fd, i, value; test_map_large() local 1318 int i, key, value; test_update_delete() local 1336 int i, fd, key = 0, value = 0; test_map_parallel() local 1387 int fd, key = 0, value = 0; test_map_rdonly() local 1412 int fd, key = 0, value = 0; test_map_wronly_hash() local 1436 int fd, value = 0; test_map_wronly_stack_or_queue() local 1482 void *value; prepare_reuseport_grp() local [all...] |
/base/hiviewdfx/hisysevent/test/moduletest/common/ |
H A D | hisysevent_delay_test.cpp | 114 bool value = true; in HWTEST_F() local 115 WriteSingleValue("HiSysEventDelayTest002", "Write sysevent with a bool parameter", value); in HWTEST_F() 126 char value = 'a'; in HWTEST_F() local 127 WriteSingleValue("HiSysEventDelayTest003", "Write sysevent with a char parameter", value); in HWTEST_F() 138 double value = 30949.374; in HWTEST_F() local 139 WriteSingleValue("HiSysEventDelayTest004", "Write sysevent with a double parameter", value); in HWTEST_F() 150 float value = 230.47; in HWTEST_F() local 151 WriteSingleValue("HiSysEventDelayTest005", "Write sysevent with a float parameter", value); in HWTEST_F() 162 int value = 100; in HWTEST_F() local 163 WriteSingleValue("HiSysEventDelayTest006", "Write sysevent with a integer parameter", value); in HWTEST_F() 174 long value = 1000000; HWTEST_F() local 186 short value = 10; HWTEST_F() local [all...] |
/base/startup/init/scripts/ |
H A D | param_cfg_to_code.py | 40 name, value = decode_cfg_line(data) 41 if len(name) != 0 and len(value) != 0: 42 data_dict[name] = value 43 print("sample file name={%s %s}" % (name, value)) 67 name, value = decode_code_line(data) 68 if len(name) != 0 and len(value) != 0: 69 data_dict[name] = value 93 f.write(' const char *value;' + os.linesep) 95 f.write('#define PARAM_MAP(name, value) {(const char *)#name, (const char *)#value},') [all...] |
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | hwxface.c | 56 * hardcode it here and ignore the FADT value. This maintains in acpi_reset() 64 /* Write the reset value to the reset register */ in acpi_reset() 78 * PARAMETERS: value - Where the value is returned in ACPI_EXPORT_SYMBOL() 108 * PARAMETERS: value - Value to be written in ACPI_EXPORT_SYMBOL() 116 acpi_status acpi_write(u64 value, struct acpi_generic_address *reg) in ACPI_EXPORT_SYMBOL() 122 status = acpi_hw_write(value, reg); in ACPI_EXPORT_SYMBOL() 137 * RETURN: Status and the value read from the specified Register. Value in ACPI_EXPORT_SYMBOL() 157 u32 value; in ACPI_EXPORT_SYMBOL() local 177 /* Normalize the value tha in ACPI_EXPORT_SYMBOL() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/xmon/ |
H A D | spu-dis.c | 85 int value; in print_insn_spu() local 196 value = DECODE_INSN_I16 (insn) * 4; in print_insn_spu() 197 if (value == 0) in print_insn_spu() 198 printf("%d", value); in print_insn_spu() 201 hex_value = memaddr + value; in print_insn_spu() 206 value = DECODE_INSN_U16 (insn) * 4; in print_insn_spu() 207 if (value == 0) in print_insn_spu() 208 printf("%d", value); in print_insn_spu() 210 print_address(value); in print_insn_spu() 213 value in print_insn_spu() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/xmon/ |
H A D | spu-dis.c | 85 int value; in print_insn_spu() local 196 value = DECODE_INSN_I16 (insn) * 4; in print_insn_spu() 197 if (value == 0) in print_insn_spu() 198 printf("%d", value); in print_insn_spu() 201 hex_value = memaddr + value; in print_insn_spu() 206 value = DECODE_INSN_U16 (insn) * 4; in print_insn_spu() 207 if (value == 0) in print_insn_spu() 208 printf("%d", value); in print_insn_spu() 210 print_address(value); in print_insn_spu() 213 value in print_insn_spu() [all...] |
/kernel/linux/linux-5.10/sound/soc/fsl/ |
H A D | mx27vis-aic32x4.c | 70 int value = ucontrol->value.integer.value[0]; in mx27vis_amp_set() local 74 if (value > max) in mx27vis_amp_set() 79 gpio_set_value(mx27vis_amp_gain0_gpio, value & 1); in mx27vis_amp_set() 80 gpio_set_value(mx27vis_amp_gain1_gpio, value >> 1); in mx27vis_amp_set() 81 mx27vis_amp_gain = value; in mx27vis_amp_set() 84 gpio_set_value(mx27vis_amp_mutel_gpio, value & 1); in mx27vis_amp_set() 85 gpio_set_value(mx27vis_amp_muter_gpio, value >> 1); in mx27vis_amp_set() 86 mx27vis_amp_mute = value; in mx27vis_amp_set() [all...] |
/third_party/astc-encoder/Source/ |
H A D | astcenc_diagnostic_trace.cpp | 132 std::string value in add_attrib() 150 << value << " ]"; in add_attrib() local 197 std::string value = "\"" + std::string(buffer) + "\""; in trace_add_data() local 200 node->add_attrib("str", key, value); in trace_add_data() 206 float value in trace_add_data() 209 if (std::isinf(value)) in trace_add_data() 211 if (value > 0.0f) in trace_add_data() 213 value = std::numeric_limits<float>::max(); in trace_add_data() 217 value = -std::numeric_limits<float>::max(); in trace_add_data() 222 sprintf(buffer, "%.20g", (double)value); in trace_add_data() [all...] |
/third_party/googletest/googletest/test/ |
H A D | gtest_xml_test_utils.py | 48 them are CDATA nodes and have the same value, or both are DOM 53 the same value as the corresponding attribute of expected_node. 87 expected_attr.value, actual_attr.value, 90 expected_attr.value, actual_attr.value)) 117 elements, the ID is the value of their "name" attribute; for <failure> 118 elements, it is the value of the "message" attribute; for <properties> 119 elements, it is the value of their parent's "name" attribute plus the 162 single asterisk, if it contains a valid ISO8601 datetime value [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/range/ |
H A D | StandardPluralRanges.java | 46 public void put(UResource.Key key, UResource.Value value, boolean noFallback) { in put() argument 47 UResource.Table table = value.getTable(); in put() 48 for (int i = 0; table.getKeyAndValue(i, key, value); ++i) { in put() 52 output.put(key.toString(), value.toString()); in put() 83 public void put(UResource.Key key, UResource.Value value, boolean noFallback) { in put() argument 84 UResource.Array entriesArray = value.getArray(); in put() 86 for (int i = 0; entriesArray.getValue(i, value); ++i) { in put() 87 UResource.Array pluralFormsArray = value.getArray(); in put() 92 pluralFormsArray.getValue(0, value); in put() 93 StandardPlural first = StandardPlural.fromString(value in put() [all...] |
/third_party/node/deps/npm/node_modules/exponential-backoff/dist/ |
H A D | backoff.js | 3 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 5 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 6 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } 7 function step(result) { result.done ? resolve(result.value) : adopt(result.value) [all...] |