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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3739 | 3739 |
3740 context()->Plug(r3); | 3740 context()->Plug(r3); |
3741 } | 3741 } |
3742 | 3742 |
3743 | 3743 |
3744 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { | 3744 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
3745 ZoneList<Expression*>* args = expr->arguments(); | 3745 ZoneList<Expression*>* args = expr->arguments(); |
3746 DCHECK_EQ(1, args->length()); | 3746 DCHECK_EQ(1, args->length()); |
3747 VisitForAccumulatorValue(args->at(0)); | 3747 VisitForAccumulatorValue(args->at(0)); |
3748 __ AssertFunction(r3); | 3748 __ AssertFunction(r3); |
3749 __ ld(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); | 3749 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); |
3750 __ ld(r3, FieldMemOperand(r3, Map::kPrototypeOffset)); | 3750 __ LoadP(r3, FieldMemOperand(r3, Map::kPrototypeOffset)); |
3751 context()->Plug(r3); | 3751 context()->Plug(r3); |
3752 } | 3752 } |
3753 | 3753 |
3754 | 3754 |
3755 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { | 3755 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
3756 Label bailout, done, one_char_separator, long_separator, non_trivial_array, | 3756 Label bailout, done, one_char_separator, long_separator, non_trivial_array, |
3757 not_size_one_array, loop, empty_separator_loop, one_char_separator_loop, | 3757 not_size_one_array, loop, empty_separator_loop, one_char_separator_loop, |
3758 one_char_separator_loop_entry, long_separator_loop; | 3758 one_char_separator_loop_entry, long_separator_loop; |
3759 ZoneList<Expression*>* args = expr->arguments(); | 3759 ZoneList<Expression*>* args = expr->arguments(); |
3760 DCHECK(args->length() == 2); | 3760 DCHECK(args->length() == 2); |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4843 return ON_STACK_REPLACEMENT; | 4843 return ON_STACK_REPLACEMENT; |
4844 } | 4844 } |
4845 | 4845 |
4846 DCHECK(interrupt_address == | 4846 DCHECK(interrupt_address == |
4847 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4847 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4848 return OSR_AFTER_STACK_CHECK; | 4848 return OSR_AFTER_STACK_CHECK; |
4849 } | 4849 } |
4850 } // namespace internal | 4850 } // namespace internal |
4851 } // namespace v8 | 4851 } // namespace v8 |
4852 #endif // V8_TARGET_ARCH_PPC | 4852 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |