/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/ |
D | Preconditions.java | 72 public static int checkNibbleLiteral(int literal) { in checkNibbleLiteral() argument 73 if (literal < -8 || literal > 7) { in checkNibbleLiteral() 75 … String.format("Invalid literal value: %d. Must be between -8 and 7, inclusive.", literal)); in checkNibbleLiteral() 77 return literal; in checkNibbleLiteral() 80 public static int checkByteLiteral(int literal) { in checkByteLiteral() argument 81 if (literal < -128 || literal > 127) { in checkByteLiteral() 83 … String.format("Invalid literal value: %d. Must be between -128 and 127, inclusive.", literal)); in checkByteLiteral() 85 return literal; in checkByteLiteral() 88 public static int checkShortLiteral(int literal) { in checkShortLiteral() argument 89 if (literal < -32768 || literal > 32767) { in checkShortLiteral() [all …]
|
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
D | DecodedInstruction.java | 64 private final long literal; field in DecodedInstruction 102 int index, IndexType indexType, int target, long literal) { in DecodedInstruction() argument 116 this.literal = literal; in DecodedInstruction() 196 return literal; in getLiteral() 204 if (literal != (int) literal) { in getLiteralInt() 205 throw new DexException("Literal out of range: " + Hex.u8(literal)); in getLiteralInt() 208 return (int) literal; in getLiteralInt() 216 if (literal != (short) literal) { in getLiteralUnit() 217 throw new DexException("Literal out of range: " + Hex.u8(literal)); in getLiteralUnit() 220 return (short) literal; in getLiteralUnit() [all …]
|
/external/clang/test/SemaObjC/ |
D | objc-literal-comparison.m | 1 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare "-Dnil=((id)0)" -verify %s 2 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare "-Dnil=(id)0" -verify %s 3 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare "-Dnil=0" -verify %s 5 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare -fobjc-arc "-Dnil=((id)0)" … 6 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare -fobjc-arc "-Dnil=(id)0" -v… 7 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare -fobjc-arc "-Dnil=0" -verif… 39 …if (obj == @"") return; // expected-warning{{direct comparison of a string literal has undefined b… 40 …if (obj != @"") return; // expected-warning{{direct comparison of a string literal has undefined b… 41 …if (@"" == obj) return; // expected-warning{{direct comparison of a string literal has undefined b… 42 …if (@"" == @"") return; // expected-warning{{direct comparison of a string literal has undefined b… [all …]
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
D | ObjCTarget.java | 50 String literal) in getTargetCharLiteralFromANTLRCharLiteral() argument 52 if (literal.startsWith("'\\u") ) { in getTargetCharLiteralFromANTLRCharLiteral() 53 literal = "0x" +literal.substring(3, 7); in getTargetCharLiteralFromANTLRCharLiteral() 55 int c = literal.charAt(1); // TJP in getTargetCharLiteralFromANTLRCharLiteral() 57 literal = "0x" + Integer.toHexString(c); in getTargetCharLiteralFromANTLRCharLiteral() 61 return literal; in getTargetCharLiteralFromANTLRCharLiteral() 71 String literal) in getTargetStringLiteralFromANTLRStringLiteral() argument 73 literal = Utils.replace(literal,"\"","\\\""); in getTargetStringLiteralFromANTLRStringLiteral() 74 StringBuffer buf = new StringBuffer(literal); in getTargetStringLiteralFromANTLRStringLiteral() 76 buf.setCharAt(literal.length()-1,'"'); in getTargetStringLiteralFromANTLRStringLiteral()
|
D | DelphiTarget.java | 71 String literal) in getTargetCharLiteralFromANTLRCharLiteral() argument 74 int c = Grammar.getCharValueFromGrammarCharLiteral(literal); in getTargetCharLiteralFromANTLRCharLiteral() 118 String literal) in getTargetStringLiteralFromANTLRStringLiteral() argument 120 literal = Utils.replace(literal,"\\\'","''"); // \' to ' to normalize in getTargetStringLiteralFromANTLRStringLiteral() 121 literal = Utils.replace(literal,"\\r\\n","'#13#10'"); in getTargetStringLiteralFromANTLRStringLiteral() 122 literal = Utils.replace(literal,"\\r","'#13'"); in getTargetStringLiteralFromANTLRStringLiteral() 123 literal = Utils.replace(literal,"\\n","'#10'"); in getTargetStringLiteralFromANTLRStringLiteral() 124 StringBuffer buf = new StringBuffer(literal); in getTargetStringLiteralFromANTLRStringLiteral() 126 buf.setCharAt(literal.length()-1,'\''); in getTargetStringLiteralFromANTLRStringLiteral()
|
D | CTarget.java | 168 String literal) { in getTargetCharLiteralFromANTLRCharLiteral() argument 170 if (literal.startsWith("'\\u")) { in getTargetCharLiteralFromANTLRCharLiteral() 171 literal = "0x" + literal.substring(3, 7); in getTargetCharLiteralFromANTLRCharLiteral() 173 int c = literal.charAt(1); in getTargetCharLiteralFromANTLRCharLiteral() 176 literal = "0x" + Integer.toHexString(c); in getTargetCharLiteralFromANTLRCharLiteral() 180 return literal; in getTargetCharLiteralFromANTLRCharLiteral() 194 String literal) { in getTargetStringLiteralFromANTLRStringLiteral() argument 205 for (int i = 1; i < literal.length() - 1; i++) { in getTargetStringLiteralFromANTLRStringLiteral() 208 if (literal.charAt(i) == '\\') { in getTargetStringLiteralFromANTLRStringLiteral() 211 switch (literal.charAt(i)) { in getTargetStringLiteralFromANTLRStringLiteral() [all …]
|
/external/clang/test/SemaObjCXX/ |
D | warn-objc-literal-conversion.mm | 1 // RUN: %clang_cc1 -fsyntax-only -verify -Wobjc-literal-conversion %s 24 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 29 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 31 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 33 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 35 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 40 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 42 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 44 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 46 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/ |
D | ImmutableInstructionFactory.java | 60 int literal) { in makeInstruction11n() argument 61 return new ImmutableInstruction11n(opcode, registerA, literal); in makeInstruction11n() 94 int literal) { in makeInstruction21ih() argument 95 return new ImmutableInstruction21ih(opcode, registerA, literal); in makeInstruction21ih() 100 long literal) { in makeInstruction21lh() argument 101 return new ImmutableInstruction21lh(opcode, registerA, literal); in makeInstruction21lh() 106 int literal) { in makeInstruction21s() argument 107 return new ImmutableInstruction21s(opcode, registerA, literal); in makeInstruction21s() 119 int literal) { in makeInstruction22b() argument 120 return new ImmutableInstruction22b(opcode, registerA, registerB, literal); in makeInstruction22b() [all …]
|
D | ImmutableInstruction21ih.java | 45 protected final int literal; field in ImmutableInstruction21ih 49 int literal) { in ImmutableInstruction21ih() argument 52 this.literal = Preconditions.checkIntegerHatLiteral(literal); in ImmutableInstruction21ih() 66 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 67 @Override public long getWideLiteral() { return literal; } in getWideLiteral() 68 @Override public short getHatLiteral() { return (short)(literal >>> 16); } in getHatLiteral()
|
D | ImmutableInstruction31i.java | 45 protected final int literal; field in ImmutableInstruction31i 49 int literal) { in ImmutableInstruction31i() argument 52 this.literal = literal; in ImmutableInstruction31i() 66 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 67 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | ImmutableInstruction11n.java | 45 protected final int literal; field in ImmutableInstruction11n 49 int literal) { in ImmutableInstruction11n() argument 52 this.literal = Preconditions.checkNibbleLiteral(literal); in ImmutableInstruction11n() 66 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 67 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | ImmutableInstruction21lh.java | 45 protected final long literal; field in ImmutableInstruction21lh 49 long literal) { in ImmutableInstruction21lh() argument 52 this.literal = Preconditions.checkLongHatLiteral(literal); in ImmutableInstruction21lh() 66 @Override public long getWideLiteral() { return literal; } in getWideLiteral() 67 @Override public short getHatLiteral() { return (short)(literal >>> 48); } in getHatLiteral()
|
/external/dbus/tools/ |
D | dbus-print-message.c | 146 print_iter (DBusMessageIter *iter, dbus_bool_t literal, int depth) in print_iter() argument 163 if (!literal) in print_iter() 166 if (!literal) in print_iter() 175 if (!literal) in print_iter() 178 if (!literal) in print_iter() 187 if (!literal) in print_iter() 190 if (!literal) in print_iter() 282 print_iter (&subiter, literal, depth+1); in print_iter() 303 print_iter (&subiter, literal, depth+1); in print_iter() 322 print_iter (&subiter, literal, depth+1); in print_iter() [all …]
|
/external/v8/test/mjsunit/ |
D | allocation-site-info.js | 99 function fastliteralcase(literal, value) { argument 100 literal[0] = value; 101 return literal; 105 var literal = [1, 2, 3]; 106 return literal; 146 var literal = [1, 2, 3, 4]; 147 literal[0] = value; 148 return literal; 160 var literal = [1, 2, 3, 4]; 161 literal[index] = value; [all …]
|
D | big-object-literal.js | 37 var literal = "function f() { return "; 40 literal += "{a:"; 43 literal += array_in_middle ? " [42.2]" : "{a:42.2}"; 46 literal += "}"; 48 literal += ", b:42, c:/asd/, x:'foo', y:[], z:new Object()"; 52 literal += "; }"; 55 eval(literal);
|
/external/v8/test/mjsunit/regress/ |
D | regress-117409.js | 33 var literal = [1.2]; variable 36 KeyedStoreIC(literal); 37 KeyedStoreIC(literal); 41 literal.length = 0; 46 literal.push(Math.E, Math.E); 49 KeyedStoreIC(literal);
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | sra.ll | 71 ;EG: SUB_INT {{\*? *}}[[COMPSH:T[0-9]+\.[XYZW]]], {{literal.[xy]}}, [[SHIFT:T[0-9]+\.[XYZW]]] 73 ;EG-DAG: ADD_INT {{\*? *}}[[BIGSH:T[0-9]+\.[XYZW]]], [[SHIFT]], literal 78 ;EG-DAG: ASHR {{\*? *}}[[LOBIG:T[0-9]+\.[XYZW]]], [[OPHI]], literal 79 ;EG-DAG: ASHR {{\*? *}}[[HIBIG:T[0-9]+\.[XYZW]]], [[OPHI]], literal 80 ;EG-DAG: SETGT_UINT {{\*? *}}[[RESC:T[0-9]+\.[XYZW]]], [[SHIFT]], literal 101 ;EG-DAG: SUB_INT {{\*? *}}[[COMPSHA:T[0-9]+\.[XYZW]]], {{literal.[xy]}}, [[SHA:T[0-9]+\.[XYZW]]] 102 ;EG-DAG: SUB_INT {{\*? *}}[[COMPSHB:T[0-9]+\.[XYZW]]], {{literal.[xy]}}, [[SHB:T[0-9]+\.[XYZW]]] 113 ;EG-DAG: ADD_INT {{\*? *}}[[BIGSHA:T[0-9]+\.[XYZW]]]{{.*}}, literal 114 ;EG-DAG: ADD_INT {{\*? *}}[[BIGSHB:T[0-9]+\.[XYZW]]]{{.*}}, literal 117 ;EG-DAG: ASHR {{.*}}, literal [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/instruction/ |
D | BuilderInstruction21ih.java | 46 protected final int literal; field in BuilderInstruction21ih 50 int literal) { in BuilderInstruction21ih() argument 53 this.literal = Preconditions.checkIntegerHatLiteral(literal); in BuilderInstruction21ih() 57 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 58 @Override public long getWideLiteral() { return literal; } in getWideLiteral() 59 @Override public short getHatLiteral() { return (short)(literal >>> 16); } in getHatLiteral()
|
D | BuilderInstruction21s.java | 46 protected final int literal; field in BuilderInstruction21s 50 int literal) { in BuilderInstruction21s() argument 53 this.literal = Preconditions.checkShortLiteral(literal); in BuilderInstruction21s() 57 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 58 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | BuilderInstruction11n.java | 46 protected final int literal; field in BuilderInstruction11n 50 int literal) { in BuilderInstruction11n() argument 53 this.literal = Preconditions.checkNibbleLiteral(literal); in BuilderInstruction11n() 57 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 58 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | BuilderInstruction21lh.java | 46 protected final long literal; field in BuilderInstruction21lh 50 long literal) { in BuilderInstruction21lh() argument 53 this.literal = Preconditions.checkLongHatLiteral(literal); in BuilderInstruction21lh() 57 @Override public long getWideLiteral() { return literal; } in getWideLiteral() 58 @Override public short getHatLiteral() { return (short)(literal >>> 48); } in getHatLiteral()
|
D | BuilderInstruction31i.java | 46 protected final int literal; field in BuilderInstruction31i 50 int literal) { in BuilderInstruction31i() argument 53 this.literal = literal; in BuilderInstruction31i() 57 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 58 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | BuilderInstruction22s.java | 47 protected final int literal; field in BuilderInstruction22s 52 int literal) { in BuilderInstruction22s() argument 56 this.literal = Preconditions.checkShortLiteral(literal); in BuilderInstruction22s() 61 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 62 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | BuilderInstruction22b.java | 47 protected final int literal; field in BuilderInstruction22b 52 int literal) { in BuilderInstruction22b() argument 56 this.literal = Preconditions.checkByteLiteral(literal); in BuilderInstruction22b() 61 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 62 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
D | StringLiteral.java | 70 private final String literal; field in StringLiteral 72 private StringLiteral(String value, String literal) { in StringLiteral() argument 74 this.literal = literal; in StringLiteral() 81 public String literal() { in literal() method in StringLiteral 82 return literal; in literal() 87 return literal; in toString()
|