| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index d5305fa84f9cfde746c437c3c0c86e96b7097163..d2af93b7e60771ed57de3b05297ad709ccee54aa 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1170,8 +1170,7 @@ void BytecodeGenerator::VisitForInAssignment(Expression* expr,
|
| // Evaluate assignment starting with the value to be stored in the
|
| // accumulator.
|
| Property* property = expr->AsProperty();
|
| - LhsKind assign_type =
|
| - Property::GetAssignType(property, HandleDereferenceMode::kDisallowed);
|
| + LhsKind assign_type = Property::GetAssignType(property);
|
| switch (assign_type) {
|
| case VARIABLE: {
|
| Variable* variable = expr->AsVariableProxy()->var();
|
| @@ -2140,8 +2139,7 @@ void BytecodeGenerator::VisitAssignment(Assignment* expr) {
|
|
|
| // Left-hand side can only be a property, a global or a variable slot.
|
| Property* property = expr->target()->AsProperty();
|
| - LhsKind assign_type =
|
| - Property::GetAssignType(property, HandleDereferenceMode::kDisallowed);
|
| + LhsKind assign_type = Property::GetAssignType(property);
|
|
|
| // Evaluate LHS expression.
|
| switch (assign_type) {
|
| @@ -2371,8 +2369,7 @@ void BytecodeGenerator::VisitThrow(Throw* expr) {
|
| }
|
|
|
| void BytecodeGenerator::VisitPropertyLoad(Register obj, Property* expr) {
|
| - LhsKind property_kind =
|
| - Property::GetAssignType(expr, HandleDereferenceMode::kDisallowed);
|
| + LhsKind property_kind = Property::GetAssignType(expr);
|
| FeedbackVectorSlot slot = expr->PropertyFeedbackSlot();
|
| builder()->SetExpressionPosition(expr);
|
| switch (property_kind) {
|
| @@ -2450,8 +2447,7 @@ void BytecodeGenerator::VisitKeyedSuperPropertyLoad(Property* property,
|
| }
|
|
|
| void BytecodeGenerator::VisitProperty(Property* expr) {
|
| - LhsKind property_kind =
|
| - Property::GetAssignType(expr, HandleDereferenceMode::kDisallowed);
|
| + LhsKind property_kind = Property::GetAssignType(expr);
|
| if (property_kind != NAMED_SUPER_PROPERTY &&
|
| property_kind != KEYED_SUPER_PROPERTY) {
|
| Register obj = VisitForRegisterValue(expr->obj());
|
| @@ -2495,8 +2491,7 @@ Register BytecodeGenerator::VisitArguments(ZoneList<Expression*>* args) {
|
|
|
| void BytecodeGenerator::VisitCall(Call* expr) {
|
| Expression* callee_expr = expr->expression();
|
| - Call::CallType call_type =
|
| - expr->GetCallType(isolate(), HandleDereferenceMode::kDisallowed);
|
| + Call::CallType call_type = expr->GetCallType();
|
|
|
| if (call_type == Call::SUPER_CALL) {
|
| return VisitCallSuper(expr);
|
| @@ -2814,8 +2809,7 @@ void BytecodeGenerator::VisitCountOperation(CountOperation* expr) {
|
|
|
| // Left-hand side can only be a property, a global or a variable slot.
|
| Property* property = expr->expression()->AsProperty();
|
| - LhsKind assign_type =
|
| - Property::GetAssignType(property, HandleDereferenceMode::kDisallowed);
|
| + LhsKind assign_type = Property::GetAssignType(property);
|
|
|
| bool is_postfix = expr->is_postfix() && !execution_result()->IsEffect();
|
|
|
|
|