| 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 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 // doesn't just get a copy of the existing unoptimized code. | 1232 // doesn't just get a copy of the existing unoptimized code. |
| 1233 if (!FLAG_always_opt && | 1233 if (!FLAG_always_opt && |
| 1234 !FLAG_prepare_always_opt && | 1234 !FLAG_prepare_always_opt && |
| 1235 !pretenure && | 1235 !pretenure && |
| 1236 scope()->is_function_scope() && | 1236 scope()->is_function_scope() && |
| 1237 info->num_literals() == 0) { | 1237 info->num_literals() == 0) { |
| 1238 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind()); | 1238 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind()); |
| 1239 __ li(a2, Operand(info)); | 1239 __ li(a2, Operand(info)); |
| 1240 __ CallStub(&stub); | 1240 __ CallStub(&stub); |
| 1241 } else { | 1241 } else { |
| 1242 __ li(a0, Operand(info)); | 1242 __ Push(info); |
| 1243 __ LoadRoot(a1, pretenure ? Heap::kTrueValueRootIndex | 1243 __ CallRuntime( |
| 1244 : Heap::kFalseValueRootIndex); | 1244 pretenure ? Runtime::kNewClosure_Tenured : Runtime::kNewClosure, 1); |
| 1245 __ Push(cp, a0, a1); | |
| 1246 __ CallRuntime(Runtime::kNewClosure, 3); | |
| 1247 } | 1245 } |
| 1248 context()->Plug(v0); | 1246 context()->Plug(v0); |
| 1249 } | 1247 } |
| 1250 | 1248 |
| 1251 | 1249 |
| 1252 void FullCodeGenerator::EmitSetHomeObjectIfNeeded(Expression* initializer, | 1250 void FullCodeGenerator::EmitSetHomeObjectIfNeeded(Expression* initializer, |
| 1253 int offset, | 1251 int offset, |
| 1254 FeedbackVectorICSlot slot) { | 1252 FeedbackVectorICSlot slot) { |
| 1255 if (NeedsHomeObject(initializer)) { | 1253 if (NeedsHomeObject(initializer)) { |
| 1256 __ ld(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); | 1254 __ ld(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
| (...skipping 4084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5341 reinterpret_cast<uint64_t>( | 5339 reinterpret_cast<uint64_t>( |
| 5342 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5340 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5343 return OSR_AFTER_STACK_CHECK; | 5341 return OSR_AFTER_STACK_CHECK; |
| 5344 } | 5342 } |
| 5345 | 5343 |
| 5346 | 5344 |
| 5347 } // namespace internal | 5345 } // namespace internal |
| 5348 } // namespace v8 | 5346 } // namespace v8 |
| 5349 | 5347 |
| 5350 #endif // V8_TARGET_ARCH_MIPS64 | 5348 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |