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

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

Issue 2591923003: [regexp] Remove IsRegExp intrinsic (Closed)
Patch Set: Rebase Created 3 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
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/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 1961
1962 __ JumpIfSmi(r3, if_false); 1962 __ JumpIfSmi(r3, if_false);
1963 __ CompareObjectType(r3, r4, r4, JS_TYPED_ARRAY_TYPE); 1963 __ CompareObjectType(r3, r4, r4, JS_TYPED_ARRAY_TYPE);
1964 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 1964 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1965 Split(eq, if_true, if_false, fall_through); 1965 Split(eq, if_true, if_false, fall_through);
1966 1966
1967 context()->Plug(if_true, if_false); 1967 context()->Plug(if_true, if_false);
1968 } 1968 }
1969 1969
1970 1970
1971 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
1972 ZoneList<Expression*>* args = expr->arguments();
1973 DCHECK(args->length() == 1);
1974
1975 VisitForAccumulatorValue(args->at(0));
1976
1977 Label materialize_true, materialize_false;
1978 Label* if_true = NULL;
1979 Label* if_false = NULL;
1980 Label* fall_through = NULL;
1981 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
1982 &if_false, &fall_through);
1983
1984 __ JumpIfSmi(r3, if_false);
1985 __ CompareObjectType(r3, r4, r4, JS_REGEXP_TYPE);
1986 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1987 Split(eq, if_true, if_false, fall_through);
1988
1989 context()->Plug(if_true, if_false);
1990 }
1991
1992
1993 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { 1971 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) {
1994 ZoneList<Expression*>* args = expr->arguments(); 1972 ZoneList<Expression*>* args = expr->arguments();
1995 DCHECK(args->length() == 1); 1973 DCHECK(args->length() == 1);
1996 1974
1997 VisitForAccumulatorValue(args->at(0)); 1975 VisitForAccumulatorValue(args->at(0));
1998 1976
1999 Label materialize_true, materialize_false; 1977 Label materialize_true, materialize_false;
2000 Label* if_true = NULL; 1978 Label* if_true = NULL;
2001 Label* if_false = NULL; 1979 Label* if_false = NULL;
2002 Label* fall_through = NULL; 1980 Label* fall_through = NULL;
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2794 2772
2795 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2773 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2796 2774
2797 DCHECK(interrupt_address == 2775 DCHECK(interrupt_address ==
2798 isolate->builtins()->OnStackReplacement()->entry()); 2776 isolate->builtins()->OnStackReplacement()->entry());
2799 return ON_STACK_REPLACEMENT; 2777 return ON_STACK_REPLACEMENT;
2800 } 2778 }
2801 } // namespace internal 2779 } // namespace internal
2802 } // namespace v8 2780 } // namespace v8
2803 #endif // V8_TARGET_ARCH_PPC 2781 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698