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/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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 Counters* counters = isolate()->counters(); | 375 Counters* counters = isolate()->counters(); |
376 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, x1, x3); | 376 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, x1, x3); |
377 if (IC::ICUseVector(kind())) { | 377 if (IC::ICUseVector(kind())) { |
378 DiscardVectorAndSlot(); | 378 DiscardVectorAndSlot(); |
379 } | 379 } |
380 __ Ret(); | 380 __ Ret(); |
381 | 381 |
382 FrontendFooter(name, &miss); | 382 FrontendFooter(name, &miss); |
383 | 383 |
384 // Return the generated code. | 384 // Return the generated code. |
385 return GetCode(kind(), Code::NORMAL, name); | 385 return GetCode(kind(), name); |
386 } | 386 } |
387 | 387 |
388 | 388 |
389 Register NamedStoreHandlerCompiler::value() { | 389 Register NamedStoreHandlerCompiler::value() { |
390 return StoreDescriptor::ValueRegister(); | 390 return StoreDescriptor::ValueRegister(); |
391 } | 391 } |
392 | 392 |
393 | 393 |
394 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label, | 394 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label, |
395 Handle<Name> name) { | 395 Handle<Name> name) { |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 __ Mov(scratch1(), Operand(cell)); | 775 __ Mov(scratch1(), Operand(cell)); |
776 } | 776 } |
777 __ Mov(scratch2(), Operand(name)); | 777 __ Mov(scratch2(), Operand(name)); |
778 __ Push(receiver(), holder_reg, scratch1(), scratch2(), value()); | 778 __ Push(receiver(), holder_reg, scratch1(), scratch2(), value()); |
779 __ Push(Smi::FromInt(language_mode)); | 779 __ Push(Smi::FromInt(language_mode)); |
780 | 780 |
781 // Do tail-call to the runtime system. | 781 // Do tail-call to the runtime system. |
782 __ TailCallRuntime(Runtime::kStoreCallbackProperty); | 782 __ TailCallRuntime(Runtime::kStoreCallbackProperty); |
783 | 783 |
784 // Return the generated code. | 784 // Return the generated code. |
785 return GetCode(kind(), Code::FAST, name); | 785 return GetCode(kind(), name); |
786 } | 786 } |
787 | 787 |
788 | 788 |
789 #undef __ | 789 #undef __ |
790 } // namespace internal | 790 } // namespace internal |
791 } // namespace v8 | 791 } // namespace v8 |
792 | 792 |
793 #endif // V8_TARGET_ARCH_IA32 | 793 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |