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:
parent
c8ae359750
commit
9a4bbad80a
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user