| 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 | 529 |
| 530 void NamedLoadHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { | 530 void NamedLoadHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { |
| 531 if (!miss->is_unused()) { | 531 if (!miss->is_unused()) { |
| 532 Label success; | 532 Label success; |
| 533 __ b(&success); | 533 __ b(&success); |
| 534 __ bind(miss); | 534 __ bind(miss); |
| 535 if (IC::ICUseVector(kind())) { | 535 if (IC::ICUseVector(kind())) { |
| 536 DCHECK(kind() == Code::LOAD_IC); | 536 DCHECK(kind() == Code::LOAD_IC); |
| 537 PopVectorAndSlot(); | 537 PopVectorAndSlot(); |
| 538 } | 538 } |
| 539 TailCallBuiltin(masm(), MissBuiltin(kind())); | 539 TailCallMissHandler(masm(), kind()); |
| 540 __ bind(&success); | 540 __ bind(&success); |
| 541 } | 541 } |
| 542 } | 542 } |
| 543 | 543 |
| 544 | 544 |
| 545 void NamedStoreHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { | 545 void NamedStoreHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { |
| 546 if (!miss->is_unused()) { | 546 if (!miss->is_unused()) { |
| 547 Label success; | 547 Label success; |
| 548 __ b(&success); | 548 __ b(&success); |
| 549 GenerateRestoreName(miss, name); | 549 GenerateRestoreName(miss, name); |
| 550 if (IC::ICUseVector(kind())) PopVectorAndSlot(); | 550 if (IC::ICUseVector(kind())) PopVectorAndSlot(); |
| 551 TailCallBuiltin(masm(), MissBuiltin(kind())); | 551 TailCallMissHandler(masm(), kind()); |
| 552 __ bind(&success); | 552 __ bind(&success); |
| 553 } | 553 } |
| 554 } | 554 } |
| 555 | 555 |
| 556 | 556 |
| 557 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 557 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 558 // Return the constant value. | 558 // Return the constant value. |
| 559 __ Move(r3, value); | 559 __ Move(r3, value); |
| 560 __ Ret(); | 560 __ Ret(); |
| 561 } | 561 } |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 // Return the generated code. | 698 // Return the generated code. |
| 699 return GetCode(kind(), name); | 699 return GetCode(kind(), name); |
| 700 } | 700 } |
| 701 | 701 |
| 702 | 702 |
| 703 #undef __ | 703 #undef __ |
| 704 } // namespace internal | 704 } // namespace internal |
| 705 } // namespace v8 | 705 } // namespace v8 |
| 706 | 706 |
| 707 #endif // V8_TARGET_ARCH_ARM | 707 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |