| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #ifdef DEBUG | 127 #ifdef DEBUG |
| 128 if (strlen(FLAG_stop_at) > 0 && | 128 if (strlen(FLAG_stop_at) > 0 && |
| 129 info->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | 129 info->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
| 130 __ stop("stop-at"); | 130 __ stop("stop-at"); |
| 131 } | 131 } |
| 132 #endif | 132 #endif |
| 133 | 133 |
| 134 // Sloppy mode functions and builtins need to replace the receiver with the | 134 // Sloppy mode functions and builtins need to replace the receiver with the |
| 135 // global proxy when called as functions (without an explicit receiver | 135 // global proxy when called as functions (without an explicit receiver |
| 136 // object). | 136 // object). |
| 137 if (info->strict_mode() == SLOPPY && !info->is_native()) { | 137 if (is_sloppy(info->language_mode()) && !info->is_native()) { |
| 138 Label ok; | 138 Label ok; |
| 139 int receiver_offset = info->scope()->num_parameters() * kPointerSize; | 139 int receiver_offset = info->scope()->num_parameters() * kPointerSize; |
| 140 __ lw(at, MemOperand(sp, receiver_offset)); | 140 __ lw(at, MemOperand(sp, receiver_offset)); |
| 141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
| 142 __ Branch(&ok, ne, a2, Operand(at)); | 142 __ Branch(&ok, ne, a2, Operand(at)); |
| 143 | 143 |
| 144 __ lw(a2, GlobalObjectOperand()); | 144 __ lw(a2, GlobalObjectOperand()); |
| 145 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset)); | 145 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset)); |
| 146 | 146 |
| 147 __ sw(a2, MemOperand(sp, receiver_offset)); | 147 __ sw(a2, MemOperand(sp, receiver_offset)); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 __ Addu(a2, fp, | 265 __ Addu(a2, fp, |
| 266 Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 266 Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
| 267 __ li(a1, Operand(Smi::FromInt(num_parameters))); | 267 __ li(a1, Operand(Smi::FromInt(num_parameters))); |
| 268 __ Push(a3, a2, a1); | 268 __ Push(a3, a2, a1); |
| 269 | 269 |
| 270 // Arguments to ArgumentsAccessStub: | 270 // Arguments to ArgumentsAccessStub: |
| 271 // function, receiver address, parameter count. | 271 // function, receiver address, parameter count. |
| 272 // The stub will rewrite receiever and parameter count if the previous | 272 // The stub will rewrite receiever and parameter count if the previous |
| 273 // stack frame was an arguments adapter frame. | 273 // stack frame was an arguments adapter frame. |
| 274 ArgumentsAccessStub::Type type; | 274 ArgumentsAccessStub::Type type; |
| 275 if (strict_mode() == STRICT) { | 275 if (is_strict(language_mode())) { |
| 276 type = ArgumentsAccessStub::NEW_STRICT; | 276 type = ArgumentsAccessStub::NEW_STRICT; |
| 277 } else if (function()->has_duplicate_parameters()) { | 277 } else if (function()->has_duplicate_parameters()) { |
| 278 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; | 278 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
| 279 } else { | 279 } else { |
| 280 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; | 280 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
| 281 } | 281 } |
| 282 ArgumentsAccessStub stub(isolate(), type); | 282 ArgumentsAccessStub stub(isolate(), type); |
| 283 __ CallStub(&stub); | 283 __ CallStub(&stub); |
| 284 | 284 |
| 285 SetVar(arguments, v0, a1, a2); | 285 SetVar(arguments, v0, a1, a2); |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 // space for nested functions that don't need literals cloning. If | 1280 // space for nested functions that don't need literals cloning. If |
| 1281 // we're running with the --always-opt or the --prepare-always-opt | 1281 // we're running with the --always-opt or the --prepare-always-opt |
| 1282 // flag, we need to use the runtime function so that the new function | 1282 // flag, we need to use the runtime function so that the new function |
| 1283 // we are creating here gets a chance to have its code optimized and | 1283 // we are creating here gets a chance to have its code optimized and |
| 1284 // doesn't just get a copy of the existing unoptimized code. | 1284 // doesn't just get a copy of the existing unoptimized code. |
| 1285 if (!FLAG_always_opt && | 1285 if (!FLAG_always_opt && |
| 1286 !FLAG_prepare_always_opt && | 1286 !FLAG_prepare_always_opt && |
| 1287 !pretenure && | 1287 !pretenure && |
| 1288 scope()->is_function_scope() && | 1288 scope()->is_function_scope() && |
| 1289 info->num_literals() == 0) { | 1289 info->num_literals() == 0) { |
| 1290 FastNewClosureStub stub(isolate(), info->strict_mode(), info->kind()); | 1290 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind()); |
| 1291 __ li(a2, Operand(info)); | 1291 __ li(a2, Operand(info)); |
| 1292 __ CallStub(&stub); | 1292 __ CallStub(&stub); |
| 1293 } else { | 1293 } else { |
| 1294 __ li(a0, Operand(info)); | 1294 __ li(a0, Operand(info)); |
| 1295 __ LoadRoot(a1, pretenure ? Heap::kTrueValueRootIndex | 1295 __ LoadRoot(a1, pretenure ? Heap::kTrueValueRootIndex |
| 1296 : Heap::kFalseValueRootIndex); | 1296 : Heap::kFalseValueRootIndex); |
| 1297 __ Push(cp, a0, a1); | 1297 __ Push(cp, a0, a1); |
| 1298 __ CallRuntime(Runtime::kNewClosure, 3); | 1298 __ CallRuntime(Runtime::kNewClosure, 3); |
| 1299 } | 1299 } |
| 1300 context()->Plug(v0); | 1300 context()->Plug(v0); |
| (...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2634 break; | 2634 break; |
| 2635 } | 2635 } |
| 2636 case KEYED_PROPERTY: { | 2636 case KEYED_PROPERTY: { |
| 2637 __ push(result_register()); // Preserve value. | 2637 __ push(result_register()); // Preserve value. |
| 2638 VisitForStackValue(prop->obj()); | 2638 VisitForStackValue(prop->obj()); |
| 2639 VisitForAccumulatorValue(prop->key()); | 2639 VisitForAccumulatorValue(prop->key()); |
| 2640 __ mov(StoreDescriptor::NameRegister(), result_register()); | 2640 __ mov(StoreDescriptor::NameRegister(), result_register()); |
| 2641 __ Pop(StoreDescriptor::ValueRegister(), | 2641 __ Pop(StoreDescriptor::ValueRegister(), |
| 2642 StoreDescriptor::ReceiverRegister()); | 2642 StoreDescriptor::ReceiverRegister()); |
| 2643 Handle<Code> ic = | 2643 Handle<Code> ic = |
| 2644 CodeFactory::KeyedStoreIC(isolate(), strict_mode()).code(); | 2644 CodeFactory::KeyedStoreIC(isolate(), language_mode()).code(); |
| 2645 CallIC(ic); | 2645 CallIC(ic); |
| 2646 break; | 2646 break; |
| 2647 } | 2647 } |
| 2648 } | 2648 } |
| 2649 context()->Plug(v0); | 2649 context()->Plug(v0); |
| 2650 } | 2650 } |
| 2651 | 2651 |
| 2652 | 2652 |
| 2653 void FullCodeGenerator::EmitStoreToStackLocalOrContextSlot( | 2653 void FullCodeGenerator::EmitStoreToStackLocalOrContextSlot( |
| 2654 Variable* var, MemOperand location) { | 2654 Variable* var, MemOperand location) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2701 __ li(a3, Operand(var->name())); | 2701 __ li(a3, Operand(var->name())); |
| 2702 __ push(a3); | 2702 __ push(a3); |
| 2703 __ CallRuntime(Runtime::kThrowReferenceError, 1); | 2703 __ CallRuntime(Runtime::kThrowReferenceError, 1); |
| 2704 // Perform the assignment. | 2704 // Perform the assignment. |
| 2705 __ bind(&assign); | 2705 __ bind(&assign); |
| 2706 EmitStoreToStackLocalOrContextSlot(var, location); | 2706 EmitStoreToStackLocalOrContextSlot(var, location); |
| 2707 } else if (!var->is_const_mode() || op == Token::INIT_CONST) { | 2707 } else if (!var->is_const_mode() || op == Token::INIT_CONST) { |
| 2708 if (var->IsLookupSlot()) { | 2708 if (var->IsLookupSlot()) { |
| 2709 // Assignment to var. | 2709 // Assignment to var. |
| 2710 __ li(a1, Operand(var->name())); | 2710 __ li(a1, Operand(var->name())); |
| 2711 __ li(a0, Operand(Smi::FromInt(strict_mode()))); | 2711 __ li(a0, Operand(Smi::FromInt(language_mode()))); |
| 2712 __ Push(v0, cp, a1, a0); // Value, context, name, strict mode. | 2712 __ Push(v0, cp, a1, a0); // Value, context, name, language mode. |
| 2713 __ CallRuntime(Runtime::kStoreLookupSlot, 4); | 2713 __ CallRuntime(Runtime::kStoreLookupSlot, 4); |
| 2714 } else { | 2714 } else { |
| 2715 // Assignment to var or initializing assignment to let/const in harmony | 2715 // Assignment to var or initializing assignment to let/const in harmony |
| 2716 // mode. | 2716 // mode. |
| 2717 DCHECK((var->IsStackAllocated() || var->IsContextSlot())); | 2717 DCHECK((var->IsStackAllocated() || var->IsContextSlot())); |
| 2718 MemOperand location = VarOperand(var, a1); | 2718 MemOperand location = VarOperand(var, a1); |
| 2719 if (generate_debug_code_ && op == Token::INIT_LET) { | 2719 if (generate_debug_code_ && op == Token::INIT_LET) { |
| 2720 // Check for an uninitialized let binding. | 2720 // Check for an uninitialized let binding. |
| 2721 __ lw(a2, location); | 2721 __ lw(a2, location); |
| 2722 __ LoadRoot(t0, Heap::kTheHoleValueRootIndex); | 2722 __ LoadRoot(t0, Heap::kTheHoleValueRootIndex); |
| 2723 __ Check(eq, kLetBindingReInitialization, a2, Operand(t0)); | 2723 __ Check(eq, kLetBindingReInitialization, a2, Operand(t0)); |
| 2724 } | 2724 } |
| 2725 EmitStoreToStackLocalOrContextSlot(var, location); | 2725 EmitStoreToStackLocalOrContextSlot(var, location); |
| 2726 } | 2726 } |
| 2727 } else if (IsSignallingAssignmentToConst(var, op, strict_mode())) { | 2727 } else if (IsSignallingAssignmentToConst(var, op, language_mode())) { |
| 2728 __ CallRuntime(Runtime::kThrowConstAssignError, 0); | 2728 __ CallRuntime(Runtime::kThrowConstAssignError, 0); |
| 2729 } | 2729 } |
| 2730 } | 2730 } |
| 2731 | 2731 |
| 2732 | 2732 |
| 2733 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { | 2733 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
| 2734 // Assignment to a property, using a named store IC. | 2734 // Assignment to a property, using a named store IC. |
| 2735 Property* prop = expr->target()->AsProperty(); | 2735 Property* prop = expr->target()->AsProperty(); |
| 2736 DCHECK(prop != NULL); | 2736 DCHECK(prop != NULL); |
| 2737 DCHECK(prop->key()->IsLiteral()); | 2737 DCHECK(prop->key()->IsLiteral()); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2752 void FullCodeGenerator::EmitNamedSuperPropertyStore(Property* prop) { | 2752 void FullCodeGenerator::EmitNamedSuperPropertyStore(Property* prop) { |
| 2753 // Assignment to named property of super. | 2753 // Assignment to named property of super. |
| 2754 // v0 : value | 2754 // v0 : value |
| 2755 // stack : receiver ('this'), home_object | 2755 // stack : receiver ('this'), home_object |
| 2756 DCHECK(prop != NULL); | 2756 DCHECK(prop != NULL); |
| 2757 Literal* key = prop->key()->AsLiteral(); | 2757 Literal* key = prop->key()->AsLiteral(); |
| 2758 DCHECK(key != NULL); | 2758 DCHECK(key != NULL); |
| 2759 | 2759 |
| 2760 __ Push(key->value()); | 2760 __ Push(key->value()); |
| 2761 __ Push(v0); | 2761 __ Push(v0); |
| 2762 __ CallRuntime((strict_mode() == STRICT ? Runtime::kStoreToSuper_Strict | 2762 __ CallRuntime((is_strict(language_mode()) ? Runtime::kStoreToSuper_Strict |
| 2763 : Runtime::kStoreToSuper_Sloppy), | 2763 : Runtime::kStoreToSuper_Sloppy), |
| 2764 4); | 2764 4); |
| 2765 } | 2765 } |
| 2766 | 2766 |
| 2767 | 2767 |
| 2768 void FullCodeGenerator::EmitKeyedSuperPropertyStore(Property* prop) { | 2768 void FullCodeGenerator::EmitKeyedSuperPropertyStore(Property* prop) { |
| 2769 // Assignment to named property of super. | 2769 // Assignment to named property of super. |
| 2770 // v0 : value | 2770 // v0 : value |
| 2771 // stack : receiver ('this'), home_object, key | 2771 // stack : receiver ('this'), home_object, key |
| 2772 DCHECK(prop != NULL); | 2772 DCHECK(prop != NULL); |
| 2773 | 2773 |
| 2774 __ Push(v0); | 2774 __ Push(v0); |
| 2775 __ CallRuntime((strict_mode() == STRICT ? Runtime::kStoreKeyedToSuper_Strict | 2775 __ CallRuntime( |
| 2776 : Runtime::kStoreKeyedToSuper_Sloppy), | 2776 (is_strict(language_mode()) ? Runtime::kStoreKeyedToSuper_Strict |
| 2777 4); | 2777 : Runtime::kStoreKeyedToSuper_Sloppy), |
| 2778 4); |
| 2778 } | 2779 } |
| 2779 | 2780 |
| 2780 | 2781 |
| 2781 void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) { | 2782 void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) { |
| 2782 // Assignment to a property, using a keyed store IC. | 2783 // Assignment to a property, using a keyed store IC. |
| 2783 | 2784 |
| 2784 // Record source code position before IC call. | 2785 // Record source code position before IC call. |
| 2785 SetSourcePosition(expr->position()); | 2786 SetSourcePosition(expr->position()); |
| 2786 // Call keyed store IC. | 2787 // Call keyed store IC. |
| 2787 // The arguments are: | 2788 // The arguments are: |
| 2788 // - a0 is the value, | 2789 // - a0 is the value, |
| 2789 // - a1 is the key, | 2790 // - a1 is the key, |
| 2790 // - a2 is the receiver. | 2791 // - a2 is the receiver. |
| 2791 __ mov(StoreDescriptor::ValueRegister(), result_register()); | 2792 __ mov(StoreDescriptor::ValueRegister(), result_register()); |
| 2792 __ Pop(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister()); | 2793 __ Pop(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister()); |
| 2793 DCHECK(StoreDescriptor::ValueRegister().is(a0)); | 2794 DCHECK(StoreDescriptor::ValueRegister().is(a0)); |
| 2794 | 2795 |
| 2795 Handle<Code> ic = CodeFactory::KeyedStoreIC(isolate(), strict_mode()).code(); | 2796 Handle<Code> ic = |
| 2797 CodeFactory::KeyedStoreIC(isolate(), language_mode()).code(); |
| 2796 CallIC(ic, expr->AssignmentFeedbackId()); | 2798 CallIC(ic, expr->AssignmentFeedbackId()); |
| 2797 | 2799 |
| 2798 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); | 2800 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
| 2799 context()->Plug(v0); | 2801 context()->Plug(v0); |
| 2800 } | 2802 } |
| 2801 | 2803 |
| 2802 | 2804 |
| 2803 void FullCodeGenerator::VisitProperty(Property* expr) { | 2805 void FullCodeGenerator::VisitProperty(Property* expr) { |
| 2804 Comment cmnt(masm_, "[ Property"); | 2806 Comment cmnt(masm_, "[ Property"); |
| 2805 Expression* key = expr->key(); | 2807 Expression* key = expr->key(); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3003 __ LoadRoot(t3, Heap::kUndefinedValueRootIndex); | 3005 __ LoadRoot(t3, Heap::kUndefinedValueRootIndex); |
| 3004 } | 3006 } |
| 3005 | 3007 |
| 3006 // t2: the receiver of the enclosing function. | 3008 // t2: the receiver of the enclosing function. |
| 3007 __ lw(t2, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 3009 __ lw(t2, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 3008 | 3010 |
| 3009 // t1: the receiver of the enclosing function. | 3011 // t1: the receiver of the enclosing function. |
| 3010 int receiver_offset = 2 + info_->scope()->num_parameters(); | 3012 int receiver_offset = 2 + info_->scope()->num_parameters(); |
| 3011 __ lw(t1, MemOperand(fp, receiver_offset * kPointerSize)); | 3013 __ lw(t1, MemOperand(fp, receiver_offset * kPointerSize)); |
| 3012 | 3014 |
| 3013 // t0: the strict mode. | 3015 // t0: the language mode. |
| 3014 __ li(t0, Operand(Smi::FromInt(strict_mode()))); | 3016 __ li(t0, Operand(Smi::FromInt(language_mode()))); |
| 3015 | 3017 |
| 3016 // a1: the start position of the scope the calls resides in. | 3018 // a1: the start position of the scope the calls resides in. |
| 3017 __ li(a1, Operand(Smi::FromInt(scope()->start_position()))); | 3019 __ li(a1, Operand(Smi::FromInt(scope()->start_position()))); |
| 3018 | 3020 |
| 3019 // Do the runtime call. | 3021 // Do the runtime call. |
| 3020 __ Push(t3); | 3022 __ Push(t3); |
| 3021 __ Push(t2, t1, t0, a1); | 3023 __ Push(t2, t1, t0, a1); |
| 3022 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6); | 3024 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6); |
| 3023 } | 3025 } |
| 3024 | 3026 |
| (...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4568 void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { | 4570 void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
| 4569 switch (expr->op()) { | 4571 switch (expr->op()) { |
| 4570 case Token::DELETE: { | 4572 case Token::DELETE: { |
| 4571 Comment cmnt(masm_, "[ UnaryOperation (DELETE)"); | 4573 Comment cmnt(masm_, "[ UnaryOperation (DELETE)"); |
| 4572 Property* property = expr->expression()->AsProperty(); | 4574 Property* property = expr->expression()->AsProperty(); |
| 4573 VariableProxy* proxy = expr->expression()->AsVariableProxy(); | 4575 VariableProxy* proxy = expr->expression()->AsVariableProxy(); |
| 4574 | 4576 |
| 4575 if (property != NULL) { | 4577 if (property != NULL) { |
| 4576 VisitForStackValue(property->obj()); | 4578 VisitForStackValue(property->obj()); |
| 4577 VisitForStackValue(property->key()); | 4579 VisitForStackValue(property->key()); |
| 4578 __ li(a1, Operand(Smi::FromInt(strict_mode()))); | 4580 __ li(a1, Operand(Smi::FromInt(language_mode()))); |
| 4579 __ push(a1); | 4581 __ push(a1); |
| 4580 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); | 4582 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
| 4581 context()->Plug(v0); | 4583 context()->Plug(v0); |
| 4582 } else if (proxy != NULL) { | 4584 } else if (proxy != NULL) { |
| 4583 Variable* var = proxy->var(); | 4585 Variable* var = proxy->var(); |
| 4584 // Delete of an unqualified identifier is disallowed in strict mode | 4586 // Delete of an unqualified identifier is disallowed in strict mode |
| 4585 // but "delete this" is allowed. | 4587 // but "delete this" is allowed. |
| 4586 DCHECK(strict_mode() == SLOPPY || var->is_this()); | 4588 DCHECK(is_sloppy(language_mode()) || var->is_this()); |
| 4587 if (var->IsUnallocated()) { | 4589 if (var->IsUnallocated()) { |
| 4588 __ lw(a2, GlobalObjectOperand()); | 4590 __ lw(a2, GlobalObjectOperand()); |
| 4589 __ li(a1, Operand(var->name())); | 4591 __ li(a1, Operand(var->name())); |
| 4590 __ li(a0, Operand(Smi::FromInt(SLOPPY))); | 4592 __ li(a0, Operand(Smi::FromInt(SLOPPY))); |
| 4591 __ Push(a2, a1, a0); | 4593 __ Push(a2, a1, a0); |
| 4592 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); | 4594 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
| 4593 context()->Plug(v0); | 4595 context()->Plug(v0); |
| 4594 } else if (var->IsStackAllocated() || var->IsContextSlot()) { | 4596 } else if (var->IsStackAllocated() || var->IsContextSlot()) { |
| 4595 // Result of deleting non-global, non-dynamic variables is false. | 4597 // Result of deleting non-global, non-dynamic variables is false. |
| 4596 // The subexpression does not have side effects. | 4598 // The subexpression does not have side effects. |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4899 } else { | 4901 } else { |
| 4900 context()->Plug(v0); | 4902 context()->Plug(v0); |
| 4901 } | 4903 } |
| 4902 break; | 4904 break; |
| 4903 } | 4905 } |
| 4904 case KEYED_PROPERTY: { | 4906 case KEYED_PROPERTY: { |
| 4905 __ mov(StoreDescriptor::ValueRegister(), result_register()); | 4907 __ mov(StoreDescriptor::ValueRegister(), result_register()); |
| 4906 __ Pop(StoreDescriptor::ReceiverRegister(), | 4908 __ Pop(StoreDescriptor::ReceiverRegister(), |
| 4907 StoreDescriptor::NameRegister()); | 4909 StoreDescriptor::NameRegister()); |
| 4908 Handle<Code> ic = | 4910 Handle<Code> ic = |
| 4909 CodeFactory::KeyedStoreIC(isolate(), strict_mode()).code(); | 4911 CodeFactory::KeyedStoreIC(isolate(), language_mode()).code(); |
| 4910 CallIC(ic, expr->CountStoreFeedbackId()); | 4912 CallIC(ic, expr->CountStoreFeedbackId()); |
| 4911 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); | 4913 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
| 4912 if (expr->is_postfix()) { | 4914 if (expr->is_postfix()) { |
| 4913 if (!context()->IsEffect()) { | 4915 if (!context()->IsEffect()) { |
| 4914 context()->PlugTOS(); | 4916 context()->PlugTOS(); |
| 4915 } | 4917 } |
| 4916 } else { | 4918 } else { |
| 4917 context()->Plug(v0); | 4919 context()->Plug(v0); |
| 4918 } | 4920 } |
| 4919 break; | 4921 break; |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5357 Assembler::target_address_at(pc_immediate_load_address)) == | 5359 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5358 reinterpret_cast<uint32_t>( | 5360 reinterpret_cast<uint32_t>( |
| 5359 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5361 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5360 return OSR_AFTER_STACK_CHECK; | 5362 return OSR_AFTER_STACK_CHECK; |
| 5361 } | 5363 } |
| 5362 | 5364 |
| 5363 | 5365 |
| 5364 } } // namespace v8::internal | 5366 } } // namespace v8::internal |
| 5365 | 5367 |
| 5366 #endif // V8_TARGET_ARCH_MIPS | 5368 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |