| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index b4195350cbb4641f21c07225681efab25d5e89d9..5bd3c1d7efc400dbc04d72dd5c00ca5639d2a0fa 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -1460,6 +1460,9 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
|
| bool skip_init_check;
|
| if (var->scope()->DeclarationScope() != scope()->DeclarationScope()) {
|
| skip_init_check = false;
|
| + } else if (var->is_this()) {
|
| + // TODO(dslomov): implement 'this' hole check elimination.
|
| + skip_init_check = false;
|
| } else {
|
| // Check that we always have valid source position.
|
| DCHECK(var->initializer_position() != RelocInfo::kNoPosition);
|
| @@ -3174,7 +3177,7 @@ void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
|
| RecordJSReturnSite(expr);
|
|
|
| // TODO(dslomov): implement TDZ for `this`.
|
| - EmitVariableAssignment(super_ref->this_var()->var(), Token::ASSIGN);
|
| + EmitVariableAssignment(super_ref->this_var()->var(), Token::INIT_CONST);
|
| context()->Plug(eax);
|
| }
|
|
|
|
|