Home
last modified time | relevance | path

Searched refs:ToInt32 (Results 1 – 25 of 38) sorted by relevance

12

/external/pdfium/fxjs/
Dfxjs_v8_embeddertest.cpp85 EXPECT_EQ(0, engine()->ToInt32(empty)); in TEST_F()
99 EXPECT_EQ(0, engine()->ToInt32(nullz)); in TEST_F()
113 EXPECT_EQ(1, engine()->ToInt32(boolz)); in TEST_F()
127 EXPECT_EQ(42, engine()->ToInt32(num)); in TEST_F()
141 EXPECT_EQ(123, engine()->ToInt32(str)); in TEST_F()
155 EXPECT_EQ(1111111111, engine()->ToInt32(date)); in TEST_F()
181 EXPECT_EQ(0, engine()->ToInt32(array)); in TEST_F()
207 EXPECT_EQ(0, engine()->ToInt32(object)); in TEST_F()
Dfxjs_v8.h192 int ToInt32(v8::Local<v8::Value> pValue);
Dfxjs_v8.cpp689 int CFXJS_Engine::ToInt32(v8::Local<v8::Value> pValue) { in ToInt32() function in CFXJS_Engine
693 return pValue->ToInt32(context).ToLocalChecked()->Value(); in ToInt32()
/external/zlib/src/contrib/dotzlib/DotZLib/
DChecksumImpl.cs140 … _current = crc32(_current, hData.AddrOfPinnedObject().ToInt32()+offset, (uint)count); in Update()
191 … _current = adler32(_current, hData.AddrOfPinnedObject().ToInt32()+offset, (uint)count); in Update()
DGZipStream.cs166 result = gzread(_gzFile, h.AddrOfPinnedObject().ToInt32() + offset, count); in Read()
210 int result = gzwrite(_gzFile, h.AddrOfPinnedObject().ToInt32() + offset, count); in Write()
/external/v8/src/runtime/
Druntime-utils.h75 CHECK(args[index]->ToInt32(&__tmp_##name)); \
84 CHECK(args[index]->ToInt32(&name));
Druntime-strings.cc262 if (!args[1]->ToInt32(&array_length)) { in RUNTIME_FUNCTION()
335 if (!args[1]->ToInt32(&array_length)) { in RUNTIME_FUNCTION()
/external/flatbuffers/tests/FlatBuffers.Test/
DFuzzTestData.cs31 public static readonly int Int32Value = BitConverter.ToInt32(_overflowInt32, 0);
/external/protobuf/src/google/protobuf/util/internal/
Dobject_writer.cc45 ow->RenderInt32(name, data.ToInt32().ValueOrDie()); in RenderDataPieceTo()
Ddatapiece.cc115 StatusOr<int32> DataPiece::ToInt32() const { in ToInt32() function in google::protobuf::util::converter::DataPiece
278 StatusOr<int32> value = ToInt32(); in ToEnum()
Ddatapiece.h117 util::StatusOr<int32> ToInt32() const;
Dproto_writer.cc115 StatusOr<int32> i32 = data.ToInt32(); in WriteInt32()
125 StatusOr<int32> i32 = data.ToInt32(); in WriteSFixed32()
135 StatusOr<int32> i32 = data.ToInt32(); in WriteSInt32()
/external/v8/src/compiler/
Dcode-generator.cc911 handle(reinterpret_cast<Smi*>(constant.ToInt32()), isolate()); in AddTranslationForOperand()
914 if (constant.ToInt32() == 0) { in AddTranslationForOperand()
917 DCHECK_EQ(1, constant.ToInt32()); in AddTranslationForOperand()
928 constant.ToInt32() == FrameStateDescriptor::kImpossibleValue); in AddTranslationForOperand()
931 isolate()->factory()->NewNumberFromUint(constant.ToInt32()); in AddTranslationForOperand()
934 isolate()->factory()->NewNumberFromInt(constant.ToInt32()); in AddTranslationForOperand()
Dcode-generator-impl.h51 return ToConstant(instr_->InputAt(index)).ToInt32(); in InputInt32()
Dinstruction.h1057 int32_t ToInt32() const { in ToInt32() function
1065 if (type() == kInt32) return ToInt32(); in ToInt64()
1087 if (type() == kInt32) return ToInt32(); in ToFloat64()
1093 if (type() == kInt32) return ToInt32(); in ToFloat64AsInt()
1549 return ImmediateOperand(ImmediateOperand::INLINE, constant.ToInt32()); in NON_EXPORTED_BASE()
/external/v8/src/asmjs/
Dasm-js.cc72 if (!member_id->ToInt32(&member_kind)) { in IsStdlibMemberValid()
326 if (!wasm_data->get(kWasmDataScriptPosition)->ToInt32(&position)) { in InstantiateAsmWasm()
Dasm-typer.cc525 if (literal->value()->ToInt32(&i)) { in TypeOf()
1531 return lbl_expr->value()->ToInt32(lbl); in ExtractInt32CaseLabel()
1780 if (!literal->value()->ToInt32(&value)) { in ValidateNumericLiteral()
1951 if (!literal->value()->ToInt32(factor)) { in IsIntishLiteralFactor()
2776 } else if (IsLiteralInt(literal) && literal->value()->ToInt32(&_)) { in ReturnTypeAnnotations()
2854 } else if (literal->value()->ToInt32(&i32)) { in VariableTypeAnnotations()
/external/v8/src/compiler/x87/
Dcode-generator-x87.cc64 return Immediate(reinterpret_cast<Address>(constant.ToInt32()), in ToImmediate()
69 return Immediate(constant.ToInt32()); in ToImmediate()
116 return Operand(base, ctant.ToInt32(), ctant.rmode()); in MemoryOperand()
136 return Operand(base, index, scale, ctant.ToInt32(), ctant.rmode()); in MemoryOperand()
154 return Operand(index, scale, ctant.ToInt32(), ctant.rmode()); in MemoryOperand()
158 return Operand(ctant.ToInt32(), ctant.rmode()); in MemoryOperand()
2516 if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { in AssembleReturn()
2532 pop_size += g.ToConstant(pop).ToInt32() * kPointerSize; in AssembleReturn()
/external/v8/src/compiler/ia32/
Dcode-generator-ia32.cc70 return Immediate(reinterpret_cast<Address>(constant.ToInt32()), in ToImmediate()
75 return Immediate(constant.ToInt32()); in ToImmediate()
122 return Operand(base, ctant.ToInt32(), ctant.rmode()); in MemoryOperand()
142 return Operand(base, index, scale, ctant.ToInt32(), ctant.rmode()); in MemoryOperand()
160 return Operand(index, scale, ctant.ToInt32(), ctant.rmode()); in MemoryOperand()
164 return Operand(ctant.ToInt32(), ctant.rmode()); in MemoryOperand()
2399 if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { in AssembleReturn()
2415 pop_size += g.ToConstant(pop).ToInt32() * kPointerSize; in AssembleReturn()
/external/v8/src/compiler/mips/
Dcode-generator-mips.cc81 return Operand(constant.ToInt32()); in InputImmediate()
2099 if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { in AssembleReturn()
2113 pop_count += g.ToConstant(pop).ToInt32(); in AssembleReturn()
2158 __ li(dst, Operand(src.ToInt32(), src.rmode())); in AssembleMove()
2160 __ li(dst, Operand(src.ToInt32())); in AssembleMove()
/external/v8/src/compiler/ppc/
Dcode-generator-ppc.cc64 return Operand(constant.ToInt32()); in InputImmediate()
2318 if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { in AssembleReturn()
2332 pop_count += g.ToConstant(pop).ToInt32(); in AssembleReturn()
2376 __ mov(dst, Operand(src.ToInt32(), src.rmode())); in AssembleMove()
2378 __ mov(dst, Operand(src.ToInt32())); in AssembleMove()
/external/v8/src/compiler/mips64/
Dcode-generator-mips64.cc80 return Operand(constant.ToInt32()); in InputImmediate()
2440 if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { in AssembleReturn()
2455 pop_count += g.ToConstant(pop).ToInt32(); in AssembleReturn()
2500 __ li(dst, Operand(src.ToInt32(), src.rmode())); in AssembleMove()
2502 __ li(dst, Operand(src.ToInt32())); in AssembleMove()
/external/v8/src/compiler/arm/
Dcode-generator-arm.cc48 return Operand(constant.ToInt32()); in InputImmediate()
2272 if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { in AssembleReturn()
2287 pop_count += g.ToConstant(pop).ToInt32(); in AssembleReturn()
2326 __ mov(dst, Operand(src.ToInt32(), src.rmode())); in AssembleMove()
2328 __ mov(dst, Operand(src.ToInt32())); in AssembleMove()
/external/v8/src/compiler/arm64/
Dcode-generator-arm64.cc213 return Operand(constant.ToInt32(), constant.rmode()); in ToImmediate()
215 return Operand(constant.ToInt32()); in ToImmediate()
1958 if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { in AssembleReturn()
1981 pop_count += g.ToConstant(pop).ToInt32(); in AssembleReturn()
/external/v8/src/compiler/x64/
Dcode-generator-x64.cc48 return Immediate(constant.ToInt32(), constant.rmode()); in ToImmediate()
50 return Immediate(constant.ToInt32()); in ToImmediate()
2580 if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { in AssembleReturn()
2596 pop_size += g.ToConstant(pop).ToInt32() * kPointerSize; in AssembleReturn()
2648 int32_t value = src.ToInt32(); in AssembleMove()

12