| 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 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1418 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1418 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 1419 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); | 1419 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
| 1420 __ li(a1, Operand(constant_properties)); | 1420 __ li(a1, Operand(constant_properties)); |
| 1421 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); | 1421 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); |
| 1422 if (MustCreateObjectLiteralWithRuntime(expr)) { | 1422 if (MustCreateObjectLiteralWithRuntime(expr)) { |
| 1423 __ Push(a3, a2, a1, a0); | 1423 __ Push(a3, a2, a1, a0); |
| 1424 __ CallRuntime(Runtime::kCreateObjectLiteral); | 1424 __ CallRuntime(Runtime::kCreateObjectLiteral); |
| 1425 } else { | 1425 } else { |
| 1426 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); | 1426 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); |
| 1427 __ CallStub(&stub); | 1427 __ CallStub(&stub); |
| 1428 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | |
| 1429 } | 1428 } |
| 1430 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); | 1429 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); |
| 1431 | 1430 |
| 1432 // If result_saved is true the result is on top of the stack. If | 1431 // If result_saved is true the result is on top of the stack. If |
| 1433 // result_saved is false the result is in v0. | 1432 // result_saved is false the result is in v0. |
| 1434 bool result_saved = false; | 1433 bool result_saved = false; |
| 1435 | 1434 |
| 1436 AccessorTable accessor_table(zone()); | 1435 AccessorTable accessor_table(zone()); |
| 1437 int property_index = 0; | 1436 int property_index = 0; |
| 1438 for (; property_index < expr->properties()->length(); property_index++) { | 1437 for (; property_index < expr->properties()->length(); property_index++) { |
| (...skipping 2579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4018 reinterpret_cast<uint64_t>( | 4017 reinterpret_cast<uint64_t>( |
| 4019 isolate->builtins()->OnStackReplacement()->entry())); | 4018 isolate->builtins()->OnStackReplacement()->entry())); |
| 4020 return ON_STACK_REPLACEMENT; | 4019 return ON_STACK_REPLACEMENT; |
| 4021 } | 4020 } |
| 4022 | 4021 |
| 4023 | 4022 |
| 4024 } // namespace internal | 4023 } // namespace internal |
| 4025 } // namespace v8 | 4024 } // namespace v8 |
| 4026 | 4025 |
| 4027 #endif // V8_TARGET_ARCH_MIPS64 | 4026 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |