| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
| 8 | 8 |
| 9 #include "src/api-arguments.h" | 9 #include "src/api-arguments.h" |
| 10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); | 656 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
| 657 __ Branch(&miss, eq, result, Operand(at)); | 657 __ Branch(&miss, eq, result, Operand(at)); |
| 658 } | 658 } |
| 659 | 659 |
| 660 Counters* counters = isolate()->counters(); | 660 Counters* counters = isolate()->counters(); |
| 661 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, a1, a3); | 661 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, a1, a3); |
| 662 if (IC::ICUseVector(kind())) { | 662 if (IC::ICUseVector(kind())) { |
| 663 DiscardVectorAndSlot(); | 663 DiscardVectorAndSlot(); |
| 664 } | 664 } |
| 665 __ Ret(USE_DELAY_SLOT); | 665 __ Ret(USE_DELAY_SLOT); |
| 666 __ mov(v0, result); | 666 __ Move(v0, result); // Ensure the stub returns correct value. |
| 667 | 667 |
| 668 FrontendFooter(name, &miss); | 668 FrontendFooter(name, &miss); |
| 669 | 669 |
| 670 // Return the generated code. | 670 // Return the generated code. |
| 671 return GetCode(kind(), name); | 671 return GetCode(kind(), name); |
| 672 } | 672 } |
| 673 | 673 |
| 674 | 674 |
| 675 #undef __ | 675 #undef __ |
| 676 } // namespace internal | 676 } // namespace internal |
| 677 } // namespace v8 | 677 } // namespace v8 |
| 678 | 678 |
| 679 #endif // V8_TARGET_ARCH_MIPS | 679 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |