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

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

Issue 1559473002: PPC: [runtime] Introduce dedicated JSBoundFunction to represent bound functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 3125 matching lines...) Expand 10 before | Expand all | Expand 10 after
3136 VisitForAccumulatorValue(args->at(0)); 3136 VisitForAccumulatorValue(args->at(0));
3137 3137
3138 Label materialize_true, materialize_false; 3138 Label materialize_true, materialize_false;
3139 Label* if_true = NULL; 3139 Label* if_true = NULL;
3140 Label* if_false = NULL; 3140 Label* if_false = NULL;
3141 Label* fall_through = NULL; 3141 Label* fall_through = NULL;
3142 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, 3142 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
3143 &if_false, &fall_through); 3143 &if_false, &fall_through);
3144 3144
3145 __ JumpIfSmi(r3, if_false); 3145 __ JumpIfSmi(r3, if_false);
3146 __ CompareObjectType(r3, r4, r5, JS_FUNCTION_TYPE); 3146 __ CompareObjectType(r3, r4, r5, FIRST_FUNCTION_TYPE);
3147 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3147 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3148 Split(eq, if_true, if_false, fall_through); 3148 Split(ge, if_true, if_false, fall_through);
3149 3149
3150 context()->Plug(if_true, if_false); 3150 context()->Plug(if_true, if_false);
3151 } 3151 }
3152 3152
3153 3153
3154 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3154 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3155 ZoneList<Expression*>* args = expr->arguments(); 3155 ZoneList<Expression*>* args = expr->arguments();
3156 DCHECK(args->length() == 1); 3156 DCHECK(args->length() == 1);
3157 3157
3158 VisitForAccumulatorValue(args->at(0)); 3158 VisitForAccumulatorValue(args->at(0));
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
4858 return ON_STACK_REPLACEMENT; 4858 return ON_STACK_REPLACEMENT;
4859 } 4859 }
4860 4860
4861 DCHECK(interrupt_address == 4861 DCHECK(interrupt_address ==
4862 isolate->builtins()->OsrAfterStackCheck()->entry()); 4862 isolate->builtins()->OsrAfterStackCheck()->entry());
4863 return OSR_AFTER_STACK_CHECK; 4863 return OSR_AFTER_STACK_CHECK;
4864 } 4864 }
4865 } // namespace internal 4865 } // namespace internal
4866 } // namespace v8 4866 } // namespace v8
4867 #endif // V8_TARGET_ARCH_PPC 4867 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698