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:
parent
c5ad59f4d4
commit
928a9462c9
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user