Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 1384443002: [es6] Fix missing bits for full @@toPrimitive support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove useless cctest. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 3798 matching lines...) Expand 10 before | Expand all | Expand 10 after
3809 3809
3810 // Load the argument into r3 and convert it. 3810 // Load the argument into r3 and convert it.
3811 VisitForAccumulatorValue(args->at(0)); 3811 VisitForAccumulatorValue(args->at(0));
3812 3812
3813 ToStringStub stub(isolate()); 3813 ToStringStub stub(isolate());
3814 __ CallStub(&stub); 3814 __ CallStub(&stub);
3815 context()->Plug(r3); 3815 context()->Plug(r3);
3816 } 3816 }
3817 3817
3818 3818
3819 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) {
3820 ZoneList<Expression*>* args = expr->arguments();
3821 DCHECK_EQ(1, args->length());
3822
3823 // Load the argument into r3 and convert it.
3824 VisitForAccumulatorValue(args->at(0));
3825
3826 ToNumberStub stub(isolate());
3827 __ CallStub(&stub);
3828 context()->Plug(r3);
3829 }
3830
3831
3819 void FullCodeGenerator::EmitToName(CallRuntime* expr) { 3832 void FullCodeGenerator::EmitToName(CallRuntime* expr) {
3820 ZoneList<Expression*>* args = expr->arguments(); 3833 ZoneList<Expression*>* args = expr->arguments();
3821 DCHECK_EQ(1, args->length()); 3834 DCHECK_EQ(1, args->length());
3822 3835
3823 // Load the argument into r3 and convert it. 3836 // Load the argument into r3 and convert it.
3824 VisitForAccumulatorValue(args->at(0)); 3837 VisitForAccumulatorValue(args->at(0));
3825 3838
3826 Label convert, done_convert; 3839 Label convert, done_convert;
3827 __ JumpIfSmi(r3, &convert); 3840 __ JumpIfSmi(r3, &convert);
3828 STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); 3841 STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE);
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
5217 return ON_STACK_REPLACEMENT; 5230 return ON_STACK_REPLACEMENT;
5218 } 5231 }
5219 5232
5220 DCHECK(interrupt_address == 5233 DCHECK(interrupt_address ==
5221 isolate->builtins()->OsrAfterStackCheck()->entry()); 5234 isolate->builtins()->OsrAfterStackCheck()->entry());
5222 return OSR_AFTER_STACK_CHECK; 5235 return OSR_AFTER_STACK_CHECK;
5223 } 5236 }
5224 } // namespace internal 5237 } // namespace internal
5225 } // namespace v8 5238 } // namespace v8
5226 #endif // V8_TARGET_ARCH_PPC 5239 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698