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