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

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

Issue 2592383002: Revert of [regexp] Remove IsRegExp intrinsic (Closed)
Patch Set: Created 3 years, 12 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 | « 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 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1972 &if_false, &fall_through); 1972 &if_false, &fall_through);
1973 1973
1974 __ JumpIfSmi(r2, if_false); 1974 __ JumpIfSmi(r2, if_false);
1975 __ CompareObjectType(r2, r3, r3, JS_TYPED_ARRAY_TYPE); 1975 __ CompareObjectType(r2, r3, r3, JS_TYPED_ARRAY_TYPE);
1976 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 1976 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1977 Split(eq, if_true, if_false, fall_through); 1977 Split(eq, if_true, if_false, fall_through);
1978 1978
1979 context()->Plug(if_true, if_false); 1979 context()->Plug(if_true, if_false);
1980 } 1980 }
1981 1981
1982 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
1983 ZoneList<Expression*>* args = expr->arguments();
1984 DCHECK(args->length() == 1);
1985
1986 VisitForAccumulatorValue(args->at(0));
1987
1988 Label materialize_true, materialize_false;
1989 Label* if_true = NULL;
1990 Label* if_false = NULL;
1991 Label* fall_through = NULL;
1992 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
1993 &if_false, &fall_through);
1994
1995 __ JumpIfSmi(r2, if_false);
1996 __ CompareObjectType(r2, r3, r3, JS_REGEXP_TYPE);
1997 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1998 Split(eq, if_true, if_false, fall_through);
1999
2000 context()->Plug(if_true, if_false);
2001 }
2002
1982 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { 2003 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) {
1983 ZoneList<Expression*>* args = expr->arguments(); 2004 ZoneList<Expression*>* args = expr->arguments();
1984 DCHECK(args->length() == 1); 2005 DCHECK(args->length() == 1);
1985 2006
1986 VisitForAccumulatorValue(args->at(0)); 2007 VisitForAccumulatorValue(args->at(0));
1987 2008
1988 Label materialize_true, materialize_false; 2009 Label materialize_true, materialize_false;
1989 Label* if_true = NULL; 2010 Label* if_true = NULL;
1990 Label* if_false = NULL; 2011 Label* if_false = NULL;
1991 Label* fall_through = NULL; 2012 Label* fall_through = NULL;
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 DCHECK(kOSRBranchInstruction == br_instr); 2793 DCHECK(kOSRBranchInstruction == br_instr);
2773 2794
2774 DCHECK(interrupt_address == 2795 DCHECK(interrupt_address ==
2775 isolate->builtins()->OnStackReplacement()->entry()); 2796 isolate->builtins()->OnStackReplacement()->entry());
2776 return ON_STACK_REPLACEMENT; 2797 return ON_STACK_REPLACEMENT;
2777 } 2798 }
2778 2799
2779 } // namespace internal 2800 } // namespace internal
2780 } // namespace v8 2801 } // namespace v8
2781 #endif // V8_TARGET_ARCH_S390 2802 #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