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

Fix 776d89f9ce

Fix typo in MIPS implementation
BUG=

Review-Url: https://codereview.chromium.org/2788123002
Cr-Commit-Position: refs/heads/master@{#44337}
This commit is contained in:
ivica.bogosavljevic 2017-04-03 06:12:20 -07:00 committed by Commit bot
parent c5ad59f4d4
commit 928a9462c9
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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));