| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| (...skipping 3051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3062 VisitForStackValue(property->obj()); | 3062 VisitForStackValue(property->obj()); |
| 3063 VisitForStackValue(property->key()); | 3063 VisitForStackValue(property->key()); |
| 3064 CallRuntimeWithOperands(is_strict(language_mode()) | 3064 CallRuntimeWithOperands(is_strict(language_mode()) |
| 3065 ? Runtime::kDeleteProperty_Strict | 3065 ? Runtime::kDeleteProperty_Strict |
| 3066 : Runtime::kDeleteProperty_Sloppy); | 3066 : Runtime::kDeleteProperty_Sloppy); |
| 3067 context()->Plug(v0); | 3067 context()->Plug(v0); |
| 3068 } else if (proxy != NULL) { | 3068 } else if (proxy != NULL) { |
| 3069 Variable* var = proxy->var(); | 3069 Variable* var = proxy->var(); |
| 3070 // Delete of an unqualified identifier is disallowed in strict mode but | 3070 // Delete of an unqualified identifier is disallowed in strict mode but |
| 3071 // "delete this" is allowed. | 3071 // "delete this" is allowed. |
| 3072 bool is_this = var->HasThisName(isolate()); | 3072 bool is_this = var->is_this(); |
| 3073 DCHECK(is_sloppy(language_mode()) || is_this); | 3073 DCHECK(is_sloppy(language_mode()) || is_this); |
| 3074 if (var->IsUnallocatedOrGlobalSlot()) { | 3074 if (var->IsUnallocatedOrGlobalSlot()) { |
| 3075 __ LoadGlobalObject(a2); | 3075 __ LoadGlobalObject(a2); |
| 3076 __ li(a1, Operand(var->name())); | 3076 __ li(a1, Operand(var->name())); |
| 3077 __ Push(a2, a1); | 3077 __ Push(a2, a1); |
| 3078 __ CallRuntime(Runtime::kDeleteProperty_Sloppy); | 3078 __ CallRuntime(Runtime::kDeleteProperty_Sloppy); |
| 3079 context()->Plug(v0); | 3079 context()->Plug(v0); |
| 3080 } else if (var->IsStackAllocated() || var->IsContextSlot()) { | 3080 } else if (var->IsStackAllocated() || var->IsContextSlot()) { |
| 3081 // Result of deleting non-global, non-dynamic variables is false. | 3081 // Result of deleting non-global, non-dynamic variables is false. |
| 3082 // The subexpression does not have side effects. | 3082 // The subexpression does not have side effects. |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3786 reinterpret_cast<uint64_t>( | 3786 reinterpret_cast<uint64_t>( |
| 3787 isolate->builtins()->OnStackReplacement()->entry())); | 3787 isolate->builtins()->OnStackReplacement()->entry())); |
| 3788 return ON_STACK_REPLACEMENT; | 3788 return ON_STACK_REPLACEMENT; |
| 3789 } | 3789 } |
| 3790 | 3790 |
| 3791 | 3791 |
| 3792 } // namespace internal | 3792 } // namespace internal |
| 3793 } // namespace v8 | 3793 } // namespace v8 |
| 3794 | 3794 |
| 3795 #endif // V8_TARGET_ARCH_MIPS64 | 3795 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |