| 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 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2234   PopOperands(StoreDescriptor::ReceiverRegister(), |  2234   PopOperands(StoreDescriptor::ReceiverRegister(), | 
|  2235               StoreDescriptor::NameRegister()); |  2235               StoreDescriptor::NameRegister()); | 
|  2236   DCHECK(StoreDescriptor::ValueRegister().is(a0)); |  2236   DCHECK(StoreDescriptor::ValueRegister().is(a0)); | 
|  2237  |  2237  | 
|  2238   CallKeyedStoreIC(expr->AssignmentSlot()); |  2238   CallKeyedStoreIC(expr->AssignmentSlot()); | 
|  2239  |  2239  | 
|  2240   PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |  2240   PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); | 
|  2241   context()->Plug(v0); |  2241   context()->Plug(v0); | 
|  2242 } |  2242 } | 
|  2243  |  2243  | 
|  2244  |  | 
|  2245 void FullCodeGenerator::CallIC(Handle<Code> code, |  | 
|  2246                                TypeFeedbackId id) { |  | 
|  2247   ic_total_count_++; |  | 
|  2248   __ Call(code, RelocInfo::CODE_TARGET, id); |  | 
|  2249 } |  | 
|  2250  |  | 
|  2251  |  | 
|  2252 // Code common for calls using the IC. |  2244 // Code common for calls using the IC. | 
|  2253 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { |  2245 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { | 
|  2254   Expression* callee = expr->expression(); |  2246   Expression* callee = expr->expression(); | 
|  2255  |  2247  | 
|  2256   // Get the target function. |  2248   // Get the target function. | 
|  2257   ConvertReceiverMode convert_mode; |  2249   ConvertReceiverMode convert_mode; | 
|  2258   if (callee->IsVariableProxy()) { |  2250   if (callee->IsVariableProxy()) { | 
|  2259     { StackValueContext context(this); |  2251     { StackValueContext context(this); | 
|  2260       EmitVariableLoad(callee->AsVariableProxy()); |  2252       EmitVariableLoad(callee->AsVariableProxy()); | 
|  2261       PrepareForBailout(callee, BailoutState::NO_REGISTERS); |  2253       PrepareForBailout(callee, BailoutState::NO_REGISTERS); | 
| (...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3654          reinterpret_cast<uint64_t>( |  3646          reinterpret_cast<uint64_t>( | 
|  3655              isolate->builtins()->OnStackReplacement()->entry())); |  3647              isolate->builtins()->OnStackReplacement()->entry())); | 
|  3656   return ON_STACK_REPLACEMENT; |  3648   return ON_STACK_REPLACEMENT; | 
|  3657 } |  3649 } | 
|  3658  |  3650  | 
|  3659  |  3651  | 
|  3660 }  // namespace internal |  3652 }  // namespace internal | 
|  3661 }  // namespace v8 |  3653 }  // namespace v8 | 
|  3662  |  3654  | 
|  3663 #endif  // V8_TARGET_ARCH_MIPS64 |  3655 #endif  // V8_TARGET_ARCH_MIPS64 | 
| OLD | NEW |