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 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { | 2867 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { |
2868 // ----------- S t a t e ------------- | 2868 // ----------- S t a t e ------------- |
2869 // -- a1 : left | 2869 // -- a1 : left |
2870 // -- a0 : right | 2870 // -- a0 : right |
2871 // -- ra : return address | 2871 // -- ra : return address |
2872 // ----------------------------------- | 2872 // ----------------------------------- |
2873 | 2873 |
2874 // Load a2 with the allocation site. We stick an undefined dummy value here | 2874 // Load a2 with the allocation site. We stick an undefined dummy value here |
2875 // and replace it with the real allocation site later when we instantiate this | 2875 // and replace it with the real allocation site later when we instantiate this |
2876 // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate(). | 2876 // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate(). |
2877 __ li(a2, handle(isolate()->heap()->undefined_value())); | 2877 __ li(a2, isolate()->factory()->undefined_value()); |
2878 | 2878 |
2879 // Make sure that we actually patched the allocation site. | 2879 // Make sure that we actually patched the allocation site. |
2880 if (FLAG_debug_code) { | 2880 if (FLAG_debug_code) { |
2881 __ And(at, a2, Operand(kSmiTagMask)); | 2881 __ And(at, a2, Operand(kSmiTagMask)); |
2882 __ Assert(ne, kExpectedAllocationSite, at, Operand(zero_reg)); | 2882 __ Assert(ne, kExpectedAllocationSite, at, Operand(zero_reg)); |
2883 __ ld(a4, FieldMemOperand(a2, HeapObject::kMapOffset)); | 2883 __ ld(a4, FieldMemOperand(a2, HeapObject::kMapOffset)); |
2884 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); | 2884 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); |
2885 __ Assert(eq, kExpectedAllocationSite, a4, Operand(at)); | 2885 __ Assert(eq, kExpectedAllocationSite, a4, Operand(at)); |
2886 } | 2886 } |
2887 | 2887 |
(...skipping 2771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5659 kStackUnwindSpace, kInvalidStackOffset, | 5659 kStackUnwindSpace, kInvalidStackOffset, |
5660 return_value_operand, NULL); | 5660 return_value_operand, NULL); |
5661 } | 5661 } |
5662 | 5662 |
5663 #undef __ | 5663 #undef __ |
5664 | 5664 |
5665 } // namespace internal | 5665 } // namespace internal |
5666 } // namespace v8 | 5666 } // namespace v8 |
5667 | 5667 |
5668 #endif // V8_TARGET_ARCH_MIPS64 | 5668 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |