Commit 928a9462 authored by ivica.bogosavljevic's avatar ivica.bogosavljevic Committed by Commit bot

MIPS[64]: Fix `[es2015] Simplify contract between parser and stub for derived constructors.`

Fix 776d89f9

Fix typo in MIPS implementation
BUG=

Review-Url: https://codereview.chromium.org/2788123002
Cr-Commit-Position: refs/heads/master@{#44337}
parent c5ad59f4
......@@ -580,7 +580,7 @@ void Generate_JSConstructStubHelper(MacroAssembler* masm, bool is_api_function,
// from a derived class is neither undefined nor an Object.
if (check_derived_construct) {
Label do_throw, dont_throw;
__ JumpIfNotSmi(v0, &do_throw);
__ JumpIfSmi(v0, &do_throw);
__ GetObjectType(v0, a1, a3);
STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
__ Branch(&dont_throw, greater_equal, a3, Operand(FIRST_JS_RECEIVER_TYPE));
......
......@@ -577,7 +577,7 @@ void Generate_JSConstructStubHelper(MacroAssembler* masm, bool is_api_function,
// from a derived class is neither undefined nor an Object.
if (check_derived_construct) {
Label do_throw, dont_throw;
__ JumpIfNotSmi(v0, &do_throw);
__ JumpIfSmi(v0, &do_throw);
__ GetObjectType(v0, a1, a3);
STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
__ Branch(&dont_throw, greater_equal, a3, Operand(FIRST_JS_RECEIVER_TYPE));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment