Home
last modified time | relevance | path

Searched refs:literal (Results 1 - 25 of 289) sorted by relevance

12345678910>>...12

/third_party/glslang/glslang/MachineIndependent/preprocessor/
H A DPpScanner.cpp107 // accept the numeric literal along with whatever suffix it has, but
267 parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", ""); in lFloatConst()
286 parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", ""); in lFloatConst()
308 parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", ""); in lFloatConst()
317 parseContext.ppError(ppToken->loc, "float literal too long", "", ""); in lFloatConst()
370 // Recognize a character literal.
451 // accept the numeric literal along with whatever suffix it has, but
558 pp->parseContext.ppError(ppToken->loc, "bad digit in hexadecimal literal", "", ""); in scan()
563 pp->parseContext.ppError(ppToken->loc, "hexadecimal literal too big", "", ""); in scan()
565 pp->parseContext.ppError(ppToken->loc, "hexadecimal literal to in scan()
[all...]
/third_party/typescript/tests/baselines/reference/
H A DindirectTypeParameterReferences.js10 const literal = (fn: (aPlusB: A & B) => void) => null
12 return {combined, literal}
15 const {combined, literal} = flowtypes<{a: string}>({b: 'b-value'})
17 literal(aPlusB => {
37 var literal = function (fn) { return null; };
38 return { combined: combined, literal: literal };
40 var _a = flowtypes({ b: 'b-value' }), combined = _a.combined, literal = _a.literal;
41 literal(functio
[all...]
/third_party/python/Tools/peg_generator/pegen/
H A Dgrammar_parser.py98 (literal := self.expect("@"))
107 (literal := self.expect("@"))
118 (literal := self.expect("@"))
157 (literal := self.expect(":"))
176 (literal := self.expect(":"))
193 (literal := self.expect(":"))
226 (literal := self.expect('('))
243 (literal := self.expect("|"))
261 (literal := self.expect("|"))
272 (literal
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
H A Dsfn_instrfactory.cpp139 bool InstrFactory::load_const(nir_load_const_instr *literal, Shader& shader) in load_const() argument
143 if (literal->def.bit_size == 64) { in load_const()
144 for (int i = 0; i < literal->def.num_components; ++i) { in load_const()
145 auto dest0 = m_value_factory.dest(literal->def, 2 * i, pin_none); in load_const()
146 auto src0 = m_value_factory.literal(literal->value[i].u64 & 0xffffffff); in load_const()
149 auto dest1 = m_value_factory.dest(literal->def, 2 * i + 1, pin_none); in load_const()
150 auto src1 = m_value_factory.literal((literal->value[i].u64 >> 32) & 0xffffffff); in load_const()
154 Pin pin = literal in load_const()
[all...]
H A Dsfn_instr_mem.cpp216 shader.emit_instruction(new AluInstr(op3_muladd_uint24, tmp[0], uav_id, vf.literal(4), vf.literal(4 * offset), in emit_atomic_op2()
219 shader.emit_instruction(new AluInstr(op1_mov, tmp[0], vf.literal(4 * offset), AluInstr::write)); in emit_atomic_op2()
244 shader.emit_instruction(new AluInstr(op3_muladd_uint24, tmp[0], uav_id, vf.literal(4), vf.literal(4 * offset), in emit_atomic_read()
247 shader.emit_instruction(new AluInstr(op1_mov, tmp[0], vf.literal(4 * offset), AluInstr::write)); in emit_atomic_read()
276 shader.emit_instruction(new AluInstr(op3_muladd_uint24, tmp[0], uav_id, vf.literal(4), vf.literal(4 * offset), in emit_atomic_inc()
279 shader.emit_instruction(new AluInstr(op1_mov, tmp[0], vf.literal(4 * offset), AluInstr::write)); in emit_atomic_inc()
306 shader.emit_instruction(new AluInstr(op3_muladd_uint24, tmp[0], uav_id, vf.literal( in emit_atomic_pre_dec()
[all...]
/third_party/node/deps/v8/src/debug/
H A Dliveedit.cc533 FunctionLiteral* literal; member
537 SourcePositionEvent(FunctionLiteral* literal, bool is_start) in SourcePositionEvent()
538 : position(is_start ? literal->start_position() in SourcePositionEvent()
539 : literal->end_position()), in SourcePositionEvent()
541 literal(literal) {} in SourcePositionEvent()
555 if (a.literal->end_position() != b.literal->end_position()) { in LessThan()
556 return a.literal->end_position() > b.literal in LessThan()
704 FunctionLiteral* literal = change_pair.first; MapLiterals() local
793 FunctionLiteral* literal; global() member
806 AddInterestingLiteral(int script_id, FunctionLiteral* literal) AddInterestingLiteral() argument
819 Lookup(Handle<Script> script, FunctionLiteral* literal, FunctionData** data) Lookup() argument
865 GetFuncId(int script_id, FunctionLiteral* literal) GetFuncId() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/sb/
H A Dsb_expr.h63 value* get_const(const literal &l);
81 bool eval_const_op(unsigned op, literal &r, literal cv0, literal cv1);
84 static void apply_alu_src_mod(const bc_alu &bc, unsigned src, literal &v);
85 static void apply_alu_dst_mod(const bc_alu &bc, literal &v);
89 static bool evaluate_condition(unsigned alu_cnd_flags, literal s1,
90 literal s2);
H A Dsb_expr.cpp62 value * expr_handler::get_const(const literal &l) { in get_const()
206 literal dv, cv0, cv1; in fold_setcc()
265 literal result; in fold_setcc()
269 literal(0xFFFFFFFFu) : literal(1.0f); in fold_setcc()
271 result = literal(0); in fold_setcc()
313 literal &v) { in apply_alu_src_mod()
322 void expr_handler::apply_alu_dst_mod(const bc_alu &bc, literal &v) { in apply_alu_dst_mod()
411 literal dv, cv = v0->get_const_value(); in fold_alu_op1()
550 bool expr_handler::eval_const_op(unsigned op, literal
[all...]
H A Dsb_bc_finalize.cpp417 literal lv = v->literal_value; in finalize_alu_src()
420 if (lv == literal(0)) in finalize_alu_src()
422 else if (lv == literal(0.5f)) in finalize_alu_src()
424 else if (lv == literal(1.0f)) in finalize_alu_src()
426 else if (lv == literal(1)) in finalize_alu_src()
428 else if (lv == literal(-1)) in finalize_alu_src()
503 literal l = v->literal_value; in copy_fetch_src()
504 if (l == literal(0)) in copy_fetch_src()
506 else if (l == literal(1.0f)) in copy_fetch_src()
610 literal in finalize_fetch()
[all...]
/third_party/node/deps/v8/src/ast/
H A Dast-value-factory.cc302 base::Vector<const uint8_t> literal( \ in AstStringConstants()
306 literal.begin(), literal.length(), hash_seed_); \ in AstStringConstants()
307 name##_string_ = zone_.New<AstRawString>(true, literal, raw_hash_field); \ in AstStringConstants()
318 base::Vector<const uint8_t> literal) { in GetOneByteStringInternal()
319 if (literal.length() == 1 && literal[0] < kMaxOneCharStringValue) { in GetOneByteStringInternal()
320 int key = literal[0]; in GetOneByteStringInternal()
323 literal.begin(), literal in GetOneByteStringInternal()
317 GetOneByteStringInternal( base::Vector<const uint8_t> literal) GetOneByteStringInternal() argument
333 GetTwoByteStringInternal( base::Vector<const uint16_t> literal) GetTwoByteStringInternal() argument
341 GetString( String literal, const SharedStringAccessGuardIfNeeded& access_guard) GetString() argument
[all...]
H A Dast.cc25 #include "src/objects/literal-objects-inl.h"
26 #include "src/objects/literal-objects.h"
112 MaterializedLiteral* literal = AsMaterializedLiteral(); in IsCompileTimeValue()
113 if (literal == nullptr) return false; in IsCompileTimeValue()
114 return literal->IsSimple(); in IsCompileTimeValue()
339 Literal* literal = property->key()->AsLiteral(); in CalculateEmitStore() local
340 DCHECK(!literal->IsNullLiteral()); in CalculateEmitStore()
342 uint32_t hash = literal->Hash(); in CalculateEmitStore()
343 ZoneHashMap::Entry* entry = table.LookupOrInsert(literal, hash); in CalculateEmitStore()
355 // part of the initial literal objec in CalculateEmitStore()
431 MaterializedLiteral* literal = property->value()->AsMaterializedLiteral(); InitDepthAndFlags() local
601 Literal* literal = element->AsLiteral(); InitDepthAndFlags() local
674 Literal* literal = element->AsLiteral(); BuildBoilerplateDescription() local
849 MatchSmiLiteralOperation(Expression* left, Expression* right, Expression** expr, Smi* literal) MatchSmiLiteralOperation() argument
859 IsSmiLiteralOperation(Expression** subexpr, Smi* literal) IsSmiLiteralOperation() argument
872 MatchLiteralCompareTypeof(Expression* left, Token::Value op, Expression* right, Expression** expr, Literal** literal) MatchLiteralCompareTypeof() argument
883 IsLiteralCompareTypeof(Expression** expr, Literal** literal) IsLiteralCompareTypeof() argument
[all...]
/third_party/python/Lib/lib2to3/fixes/
H A Dfix_set_literal.py37 # Build the contents of the literal
38 literal = [pytree.Leaf(token.LBRACE, "{")]
39 literal.extend(n.clone() for n in items.children)
40 literal.append(pytree.Leaf(token.RBRACE, "}"))
42 literal[-1].prefix = items.next_sibling.prefix
43 maker = pytree.Node(syms.dictsetmaker, literal)
52 # Finally, replace the set call with our shiny new literal.
/third_party/gn/src/gn/
H A Dsubstitution_pattern_unittest.cc14 EXPECT_TRUE(pattern.Parse("This is a literal", nullptr, &err)); in TEST()
18 EXPECT_EQ("This is a literal", pattern.ranges()[0].literal); in TEST()
30 EXPECT_EQ("AA", pattern.ranges()[0].literal); in TEST()
34 EXPECT_EQ("BB", pattern.ranges()[3].literal); in TEST()
63 EXPECT_EQ("AA", pattern.ranges()[0].literal); in TEST()
67 EXPECT_EQ("BB", pattern.ranges()[3].literal); in TEST()
71 EXPECT_EQ("CC", pattern.ranges()[6].literal); in TEST()
H A Dstring_utils.cc185 "It you want a literal $ use \"\\$\"."); in AppendStringInterpolation()
200 // Handles a hex literal: $0xFF
238 const Token& literal, in ExpandStringLiteral()
241 DCHECK(literal.type() == Token::STRING); in ExpandStringLiteral()
242 DCHECK(literal.value().size() > 1); // Should include quotes. in ExpandStringLiteral()
246 const char* input = &literal.value().data()[1]; in ExpandStringLiteral()
247 size_t size = literal.value().size() - 2; in ExpandStringLiteral()
261 default: // Everything else has no meaning: pass the literal. in ExpandStringLiteral()
270 literal, i - 1, 1, "$ at end of string.", in ExpandStringLiteral()
275 if (!AppendHexByte(scope, literal, inpu in ExpandStringLiteral()
237 ExpandStringLiteral(Scope* scope, const Token& literal, Value* result, Err* err) ExpandStringLiteral() argument
[all...]
/third_party/node/deps/v8/src/codegen/
H A Dunoptimized-compilation-info.h35 FunctionLiteral* literal);
45 FunctionLiteral* literal() const { return literal_; } in literal() function in v8::internal::final
46 void set_literal(FunctionLiteral* literal) { in set_literal() argument
47 DCHECK_NOT_NULL(literal); in set_literal()
48 literal_ = literal; in set_literal()
97 // The root AST node of the function literal being compiled.
H A Dunoptimized-compilation-info.cc20 FunctionLiteral* literal) in UnoptimizedCompilationInfo()
27 // function literal being compiled for this OptimizedCompilationInfo. As such, in UnoptimizedCompilationInfo()
28 // parse_info->literal() might be different from literal, and only global in UnoptimizedCompilationInfo()
31 DCHECK_NOT_NULL(literal); in UnoptimizedCompilationInfo()
32 literal_ = literal; in UnoptimizedCompilationInfo()
18 UnoptimizedCompilationInfo(Zone* zone, ParseInfo* parse_info, FunctionLiteral* literal) UnoptimizedCompilationInfo() argument
/third_party/node/deps/v8/src/interpreter/
H A Dinterpreter.cc37 InterpreterCompilationJob(ParseInfo* parse_info, FunctionLiteral* literal,
149 std::unique_ptr<char[]> name = compilation_info->literal()->GetDebugName(); in MaybePrintAst()
154 .PrintProgram(compilation_info->literal()) in MaybePrintAst()
175 ParseInfo* parse_info, FunctionLiteral* literal, Handle<Script> script, in InterpreterCompilationJob()
182 compilation_info_(&zone_, parse_info, literal), in InterpreterCompilationJob()
227 MaybeHandle<String> maybe_name = parse_info()->literal()->GetName(isolate); in CheckAndPrintBytecodeMismatch()
238 std::cerr << ":" << parse_info()->literal()->start_position(); in CheckAndPrintBytecodeMismatch()
291 compilation_info()->literal()->GetDebugName(); in DoFinalizeJobImpl()
308 ParseInfo* parse_info, FunctionLiteral* literal, Handle<Script> script, in NewCompilationJob()
313 parse_info, literal, scrip in NewCompilationJob()
174 InterpreterCompilationJob( ParseInfo* parse_info, FunctionLiteral* literal, Handle<Script> script, AccountingAllocator* allocator, std::vector<FunctionLiteral*>* eager_inner_literals, LocalIsolate* local_isolate) InterpreterCompilationJob() argument
307 NewCompilationJob( ParseInfo* parse_info, FunctionLiteral* literal, Handle<Script> script, AccountingAllocator* allocator, std::vector<FunctionLiteral*>* eager_inner_literals, LocalIsolate* local_isolate) NewCompilationJob() argument
318 NewSourcePositionCollectionJob( ParseInfo* parse_info, FunctionLiteral* literal, Handle<BytecodeArray> existing_bytecode, AccountingAllocator* allocator, LocalIsolate* local_isolate) NewSourcePositionCollectionJob() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/
H A DMf2DataModel.java477 private final String literal; field in Mf2DataModel.Value
481 this.literal = builder.literal; in Value()
483 // this(builder.literal, builder.variableName); in Value()
505 return literal; in getLiteral()
523 return literal != null; in isLiteral()
542 return isLiteral() ? "(" + literal + ")" : "$" + variableName; in toString()
551 private String literal; field in Mf2DataModel.Value.Builder
563 public Builder setLiteral(String literal) { in setLiteral() argument
564 this.literal in setLiteral()
[all...]
/third_party/icu/icu4c/source/common/
H A Duniset_props.cpp302 UBool literal = false; in applyPattern() local
324 c = chars.next(opts, literal, ec); in applyPattern()
327 if (c == u'[' && !literal) { in applyPattern()
336 c = chars.next(opts, literal, ec); in applyPattern()
338 if (c == u'^' && !literal) { in applyPattern()
342 c = chars.next(opts, literal, ec); in applyPattern()
348 literal = true; in applyPattern()
349 // Fall through to handle literal '-' below in applyPattern()
452 if (!literal) { in applyPattern()
459 // Treat final trailing '-' as a literal in applyPattern()
1001 UBool result = false, literal; resemblesPropertyPattern() local
[all...]
/third_party/node/deps/icu-small/source/common/
H A Duniset_props.cpp302 UBool literal = false; in applyPattern() local
324 c = chars.next(opts, literal, ec); in applyPattern()
327 if (c == u'[' && !literal) { in applyPattern()
336 c = chars.next(opts, literal, ec); in applyPattern()
338 if (c == u'^' && !literal) { in applyPattern()
342 c = chars.next(opts, literal, ec); in applyPattern()
348 literal = true; in applyPattern()
349 // Fall through to handle literal '-' below in applyPattern()
452 if (!literal) { in applyPattern()
459 // Treat final trailing '-' as a literal in applyPattern()
998 UBool result = false, literal; resemblesPropertyPattern() local
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Duniset_props.cpp302 UBool literal = FALSE; in applyPattern() local
324 c = chars.next(opts, literal, ec); in applyPattern()
327 if (c == u'[' && !literal) { in applyPattern()
336 c = chars.next(opts, literal, ec); in applyPattern()
338 if (c == u'^' && !literal) { in applyPattern()
342 c = chars.next(opts, literal, ec); in applyPattern()
348 literal = TRUE; in applyPattern()
349 // Fall through to handle literal '-' below in applyPattern()
452 if (!literal) { in applyPattern()
459 // Treat final trailing '-' as a literal in applyPattern()
1001 UBool result = FALSE, literal; resemblesPropertyPattern() local
[all...]
/third_party/mesa3d/src/gallium/tools/trace/
H A Dformat.py51 def literal(self, value): member in Formatter
86 def literal(self, value): member in AnsiFormatter
88 Formatter.literal(self, value)
155 def literal(self, value): member in WindowsConsoleFormatter
157 Formatter.literal(self, value)
/third_party/skia/third_party/externals/tint/src/resolver/
H A Dresolver_constants.cc43 const ast::LiteralExpression* literal, in EvaluateConstantValue()
45 if (auto* lit = literal->As<ast::SintLiteralExpression>()) { in EvaluateConstantValue()
48 if (auto* lit = literal->As<ast::UintLiteralExpression>()) { in EvaluateConstantValue()
51 if (auto* lit = literal->As<ast::FloatLiteralExpression>()) { in EvaluateConstantValue()
54 if (auto* lit = literal->As<ast::BoolLiteralExpression>()) { in EvaluateConstantValue()
42 EvaluateConstantValue( const ast::LiteralExpression* literal, const sem::Type* type) EvaluateConstantValue() argument
/third_party/rust/crates/syn/src/
H A Dbuffer.rs42 TokenTree::Literal(literal) => entries.push(Entry::Literal(literal)), in recursive_new()
252 pub fn literal(mut self) -> Option<(Literal, Cursor<'a>)> { in literal() functions
255 Entry::Literal(literal) => Some((literal.clone(), unsafe { self.bump_ignore_group() })),
300 Entry::Literal(literal) => (literal.clone().into(), 1), in token_tree()
315 Entry::Literal(literal) => literal.span(), in span()
/third_party/python/Objects/stringlib/
H A Dunicode_format.h655 /* MarkupIterator breaks the string into pieces of either literal
675 MarkupIterator_next(MarkupIterator *self, SubString *literal, in MarkupIterator_next() argument
687 SubString_init(literal, NULL, 0, 0); in MarkupIterator_next()
701 /* First read any literal text. Read until the end of string, an in MarkupIterator_next()
704 there's an escaped '{' or '}' then we'll return the literal in MarkupIterator_next()
706 through, we'll return the rest of the literal, skipping past in MarkupIterator_next()
738 markup object following us, just this literal text */ in MarkupIterator_next()
746 /* record the literal text */ in MarkupIterator_next()
747 literal->str = self->str.str; in MarkupIterator_next()
748 literal in MarkupIterator_next()
875 SubString literal; do_markup() local
1002 SubString literal; formatteriter_next() local
[all...]

Completed in 18 milliseconds

12345678910>>...12