OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 25 matching lines...) Expand all Loading... |
36 DCHECK(!receiver.is(scratch)); | 36 DCHECK(!receiver.is(scratch)); |
37 // Call the JavaScript getter with the receiver on the stack. | 37 // Call the JavaScript getter with the receiver on the stack. |
38 if (map->IsJSGlobalObjectMap()) { | 38 if (map->IsJSGlobalObjectMap()) { |
39 // Swap in the global receiver. | 39 // Swap in the global receiver. |
40 __ LoadP(scratch, | 40 __ LoadP(scratch, |
41 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); | 41 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
42 receiver = scratch; | 42 receiver = scratch; |
43 } | 43 } |
44 __ Push(receiver); | 44 __ Push(receiver); |
45 __ LoadAccessor(r3, holder, accessor_index, ACCESSOR_GETTER); | 45 __ LoadAccessor(r3, holder, accessor_index, ACCESSOR_GETTER); |
46 __ LoadImmP(r2, Operand(0)); | 46 __ LoadImmP(r2, Operand::Zero()); |
47 __ Call(masm->isolate()->builtins()->CallFunction( | 47 __ Call(masm->isolate()->builtins()->CallFunction( |
48 ConvertReceiverMode::kNotNullOrUndefined), | 48 ConvertReceiverMode::kNotNullOrUndefined), |
49 RelocInfo::CODE_TARGET); | 49 RelocInfo::CODE_TARGET); |
50 } else { | 50 } else { |
51 // If we generate a global code snippet for deoptimization only, remember | 51 // If we generate a global code snippet for deoptimization only, remember |
52 // the place to continue after deoptimization. | 52 // the place to continue after deoptimization. |
53 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset()); | 53 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset()); |
54 } | 54 } |
55 | 55 |
56 // Restore context register. | 56 // Restore context register. |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 | 741 |
742 // Return the generated code. | 742 // Return the generated code. |
743 return GetCode(kind(), Code::NORMAL, name); | 743 return GetCode(kind(), Code::NORMAL, name); |
744 } | 744 } |
745 | 745 |
746 #undef __ | 746 #undef __ |
747 } // namespace internal | 747 } // namespace internal |
748 } // namespace v8 | 748 } // namespace v8 |
749 | 749 |
750 #endif // V8_TARGET_ARCH_ARM | 750 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |