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

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

Issue 2597143002: Version 5.7.324.1 (cherry-pick) (Closed)
Patch Set: Created 4 years 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 | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 &if_false, &fall_through); 1973 &if_false, &fall_through);
1974 1974
1975 __ JumpIfSmi(r2, if_false); 1975 __ JumpIfSmi(r2, if_false);
1976 __ CompareObjectType(r2, r3, r3, JS_TYPED_ARRAY_TYPE); 1976 __ CompareObjectType(r2, r3, r3, JS_TYPED_ARRAY_TYPE);
1977 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 1977 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1978 Split(eq, if_true, if_false, fall_through); 1978 Split(eq, if_true, if_false, fall_through);
1979 1979
1980 context()->Plug(if_true, if_false); 1980 context()->Plug(if_true, if_false);
1981 } 1981 }
1982 1982
1983 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
1984 ZoneList<Expression*>* args = expr->arguments();
1985 DCHECK(args->length() == 1);
1986
1987 VisitForAccumulatorValue(args->at(0));
1988
1989 Label materialize_true, materialize_false;
1990 Label* if_true = NULL;
1991 Label* if_false = NULL;
1992 Label* fall_through = NULL;
1993 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
1994 &if_false, &fall_through);
1995
1996 __ JumpIfSmi(r2, if_false);
1997 __ CompareObjectType(r2, r3, r3, JS_REGEXP_TYPE);
1998 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1999 Split(eq, if_true, if_false, fall_through);
2000
2001 context()->Plug(if_true, if_false);
2002 }
2003
1983 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { 2004 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) {
1984 ZoneList<Expression*>* args = expr->arguments(); 2005 ZoneList<Expression*>* args = expr->arguments();
1985 DCHECK(args->length() == 1); 2006 DCHECK(args->length() == 1);
1986 2007
1987 VisitForAccumulatorValue(args->at(0)); 2008 VisitForAccumulatorValue(args->at(0));
1988 2009
1989 Label materialize_true, materialize_false; 2010 Label materialize_true, materialize_false;
1990 Label* if_true = NULL; 2011 Label* if_true = NULL;
1991 Label* if_false = NULL; 2012 Label* if_false = NULL;
1992 Label* fall_through = NULL; 2013 Label* fall_through = NULL;
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 DCHECK(kOSRBranchInstruction == br_instr); 2794 DCHECK(kOSRBranchInstruction == br_instr);
2774 2795
2775 DCHECK(interrupt_address == 2796 DCHECK(interrupt_address ==
2776 isolate->builtins()->OnStackReplacement()->entry()); 2797 isolate->builtins()->OnStackReplacement()->entry());
2777 return ON_STACK_REPLACEMENT; 2798 return ON_STACK_REPLACEMENT;
2778 } 2799 }
2779 2800
2780 } // namespace internal 2801 } // namespace internal
2781 } // namespace v8 2802 } // namespace v8
2782 #endif // V8_TARGET_ARCH_S390 2803 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698