diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2016-01-20 09:45:45 -0800 |
---|---|---|
committer | Ali Ijaz Sheikh <ofrobots@google.com> | 2016-01-21 16:53:58 -0800 |
commit | ef4170ea03a80b21b2d8a65ce432efaa370fe2fa (patch) | |
tree | e382b1b38b729cd8155b56b441c3a563914854a3 /deps/v8/test/cctest/test-assembler-mips64.cc | |
parent | 5f6dfab832979999d2f806fc1a2f1c11a25b0f35 (diff) | |
download | android-node-v8-ef4170ea03a80b21b2d8a65ce432efaa370fe2fa.tar.gz android-node-v8-ef4170ea03a80b21b2d8a65ce432efaa370fe2fa.tar.bz2 android-node-v8-ef4170ea03a80b21b2d8a65ce432efaa370fe2fa.zip |
deps: upgrade to V8 4.8.271.17
Pick up V8 4.8 branch-head. This branch brings in @@isConcatSpreadable,
@@toPrimitive and ToLength ES6 changes. For full details see:
http://v8project.blogspot.de/2015/11/v8-release-48.html
https://github.com/v8/v8/commit/fa163e2
Ref: https://github.com/nodejs/node/pull/4399
PR-URL: https://github.com/nodejs/node/pull/4785
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/test/cctest/test-assembler-mips64.cc')
-rw-r--r-- | deps/v8/test/cctest/test-assembler-mips64.cc | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/deps/v8/test/cctest/test-assembler-mips64.cc b/deps/v8/test/cctest/test-assembler-mips64.cc index ee6755f259..d13a8b46a3 100644 --- a/deps/v8/test/cctest/test-assembler-mips64.cc +++ b/deps/v8/test/cctest/test-assembler-mips64.cc @@ -2131,11 +2131,10 @@ TEST(movz_movn) { __ ldc1(f2, MemOperand(a0, offsetof(TestFloat, a)) ); __ lwc1(f6, MemOperand(a0, offsetof(TestFloat, c)) ); __ lw(t0, MemOperand(a0, offsetof(TestFloat, rt)) ); - __ li(t1, 0x0); - __ mtc1(t1, f12); - __ mtc1(t1, f10); - __ mtc1(t1, f16); - __ mtc1(t1, f14); + __ Move(f12, 0.0); + __ Move(f10, 0.0); + __ Move(f16, 0.0); + __ Move(f14, 0.0); __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, bold)) ); __ swc1(f10, MemOperand(a0, offsetof(TestFloat, dold)) ); __ sdc1(f16, MemOperand(a0, offsetof(TestFloat, bold1)) ); @@ -5493,4 +5492,35 @@ TEST(bal) { } +TEST(Trampoline) { + // Private member of Assembler class. + static const int kMaxBranchOffset = (1 << (18 - 1)) - 1; + + CcTest::InitializeVM(); + Isolate* isolate = CcTest::i_isolate(); + HandleScope scope(isolate); + + MacroAssembler assm(isolate, nullptr, 0); + Label done; + size_t nr_calls = kMaxBranchOffset / (2 * Instruction::kInstrSize) + 2; + + for (size_t i = 0; i < nr_calls; ++i) { + __ BranchShort(&done, eq, a0, Operand(a1)); + } + __ bind(&done); + __ Ret(USE_DELAY_SLOT); + __ mov(v0, zero_reg); + + CodeDesc desc; + assm.GetCode(&desc); + Handle<Code> code = isolate->factory()->NewCode( + desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); + F2 f = FUNCTION_CAST<F2>(code->entry()); + + int64_t res = + reinterpret_cast<int64_t>(CALL_GENERATED_CODE(f, 42, 42, 0, 0, 0)); + CHECK_EQ(res, 0); +} + + #undef __ |