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