MIPS[64]: One more fix for derived construct stub

Avoid clobbering argument count when loading instance type.

TBR=bmeurer@chromium.org, ivica.bogosavljevic@imgtec.com

Bug: chromium:706642
Change-Id: I82ceb6f1270420ec683f0659f9433795562ab1b4
Reviewed-on: https://chromium-review.googlesource.com/471872
Reviewed-by: Adam Klein <adamk@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44497}
This commit is contained in:
Adam Klein 2017-04-07 14:52:18 -07:00 committed by Commit Bot
parent c8ae359750
commit 9a4bbad80a
2 changed files with 2 additions and 2 deletions

View File

@ -581,7 +581,7 @@ void Generate_JSConstructStubHelper(MacroAssembler* masm, bool is_api_function,
if (check_derived_construct) {
Label do_throw, dont_throw;
__ JumpIfSmi(v0, &do_throw);
__ GetObjectType(v0, a1, a3);
__ GetObjectType(v0, a3, a3);
STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
__ Branch(&dont_throw, greater_equal, a3, Operand(FIRST_JS_RECEIVER_TYPE));
__ bind(&do_throw);

View File

@ -578,7 +578,7 @@ void Generate_JSConstructStubHelper(MacroAssembler* masm, bool is_api_function,
if (check_derived_construct) {
Label do_throw, dont_throw;
__ JumpIfSmi(v0, &do_throw);
__ GetObjectType(v0, a1, a3);
__ GetObjectType(v0, a3, a3);
STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
__ Branch(&dont_throw, greater_equal, a3, Operand(FIRST_JS_RECEIVER_TYPE));
__ bind(&do_throw);