| 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/ic/call-optimization.h" | 7 #include "src/ic/call-optimization.h" |
| 8 #include "src/ic/handler-compiler.h" | 8 #include "src/ic/handler-compiler.h" |
| 9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
| 10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 if (map->IsJSGlobalObjectMap()) { | 248 if (map->IsJSGlobalObjectMap()) { |
| 249 // Swap in the global receiver. | 249 // Swap in the global receiver. |
| 250 __ Ldr(scratch, | 250 __ Ldr(scratch, |
| 251 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); | 251 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
| 252 receiver = scratch; | 252 receiver = scratch; |
| 253 } | 253 } |
| 254 __ Push(receiver, value()); | 254 __ Push(receiver, value()); |
| 255 ParameterCount actual(1); | 255 ParameterCount actual(1); |
| 256 ParameterCount expected(expected_arguments); | 256 ParameterCount expected(expected_arguments); |
| 257 __ LoadAccessor(x1, holder, accessor_index, ACCESSOR_SETTER); | 257 __ LoadAccessor(x1, holder, accessor_index, ACCESSOR_SETTER); |
| 258 __ InvokeFunction(x1, expected, actual, CALL_FUNCTION, | 258 __ InvokeFunction(x1, expected, actual, CALL_FUNCTION, NullCallWrapper()); |
| 259 CheckDebugStepCallWrapper()); | |
| 260 } else { | 259 } else { |
| 261 // If we generate a global code snippet for deoptimization only, remember | 260 // If we generate a global code snippet for deoptimization only, remember |
| 262 // the place to continue after deoptimization. | 261 // the place to continue after deoptimization. |
| 263 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset()); | 262 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset()); |
| 264 } | 263 } |
| 265 | 264 |
| 266 // We have to return the passed value, not the return value of the setter. | 265 // We have to return the passed value, not the return value of the setter. |
| 267 __ Pop(x0); | 266 __ Pop(x0); |
| 268 | 267 |
| 269 // Restore context register. | 268 // Restore context register. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 286 if (map->IsJSGlobalObjectMap()) { | 285 if (map->IsJSGlobalObjectMap()) { |
| 287 // Swap in the global receiver. | 286 // Swap in the global receiver. |
| 288 __ Ldr(scratch, | 287 __ Ldr(scratch, |
| 289 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); | 288 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
| 290 receiver = scratch; | 289 receiver = scratch; |
| 291 } | 290 } |
| 292 __ Push(receiver); | 291 __ Push(receiver); |
| 293 ParameterCount actual(0); | 292 ParameterCount actual(0); |
| 294 ParameterCount expected(expected_arguments); | 293 ParameterCount expected(expected_arguments); |
| 295 __ LoadAccessor(x1, holder, accessor_index, ACCESSOR_GETTER); | 294 __ LoadAccessor(x1, holder, accessor_index, ACCESSOR_GETTER); |
| 296 __ InvokeFunction(x1, expected, actual, CALL_FUNCTION, | 295 __ InvokeFunction(x1, expected, actual, CALL_FUNCTION, NullCallWrapper()); |
| 297 CheckDebugStepCallWrapper()); | |
| 298 } else { | 296 } else { |
| 299 // If we generate a global code snippet for deoptimization only, remember | 297 // If we generate a global code snippet for deoptimization only, remember |
| 300 // the place to continue after deoptimization. | 298 // the place to continue after deoptimization. |
| 301 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset()); | 299 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset()); |
| 302 } | 300 } |
| 303 | 301 |
| 304 // Restore context register. | 302 // Restore context register. |
| 305 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 303 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 306 } | 304 } |
| 307 __ Ret(); | 305 __ Ret(); |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 // Return the generated code. | 802 // Return the generated code. |
| 805 return GetCode(kind(), Code::FAST, name); | 803 return GetCode(kind(), Code::FAST, name); |
| 806 } | 804 } |
| 807 | 805 |
| 808 | 806 |
| 809 #undef __ | 807 #undef __ |
| 810 } // namespace internal | 808 } // namespace internal |
| 811 } // namespace v8 | 809 } // namespace v8 |
| 812 | 810 |
| 813 #endif // V8_TARGET_ARCH_IA32 | 811 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |