| 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 | 535 |
| 536 void NamedLoadHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { | 536 void NamedLoadHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { |
| 537 if (!miss->is_unused()) { | 537 if (!miss->is_unused()) { |
| 538 Label success; | 538 Label success; |
| 539 __ b(&success); | 539 __ b(&success); |
| 540 __ bind(miss); | 540 __ bind(miss); |
| 541 if (IC::ICUseVector(kind())) { | 541 if (IC::ICUseVector(kind())) { |
| 542 DCHECK(kind() == Code::LOAD_IC); | 542 DCHECK(kind() == Code::LOAD_IC); |
| 543 PopVectorAndSlot(); | 543 PopVectorAndSlot(); |
| 544 } | 544 } |
| 545 TailCallBuiltin(masm(), MissBuiltin(kind())); | 545 TailCallMissHandler(masm(), kind()); |
| 546 __ bind(&success); | 546 __ bind(&success); |
| 547 } | 547 } |
| 548 } | 548 } |
| 549 | 549 |
| 550 | 550 |
| 551 void NamedStoreHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { | 551 void NamedStoreHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { |
| 552 if (!miss->is_unused()) { | 552 if (!miss->is_unused()) { |
| 553 Label success; | 553 Label success; |
| 554 __ b(&success); | 554 __ b(&success); |
| 555 GenerateRestoreName(miss, name); | 555 GenerateRestoreName(miss, name); |
| 556 if (IC::ICUseVector(kind())) PopVectorAndSlot(); | 556 if (IC::ICUseVector(kind())) PopVectorAndSlot(); |
| 557 TailCallBuiltin(masm(), MissBuiltin(kind())); | 557 TailCallMissHandler(masm(), kind()); |
| 558 __ bind(&success); | 558 __ bind(&success); |
| 559 } | 559 } |
| 560 } | 560 } |
| 561 | 561 |
| 562 | 562 |
| 563 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 563 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 564 // Return the constant value. | 564 // Return the constant value. |
| 565 __ Move(r0, value); | 565 __ Move(r0, value); |
| 566 __ Ret(); | 566 __ Ret(); |
| 567 } | 567 } |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 // Return the generated code. | 704 // Return the generated code. |
| 705 return GetCode(kind(), name); | 705 return GetCode(kind(), name); |
| 706 } | 706 } |
| 707 | 707 |
| 708 | 708 |
| 709 #undef __ | 709 #undef __ |
| 710 } // namespace internal | 710 } // namespace internal |
| 711 } // namespace v8 | 711 } // namespace v8 |
| 712 | 712 |
| 713 #endif // V8_TARGET_ARCH_ARM | 713 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |