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

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

Issue 2592383002: Revert of [regexp] Remove IsRegExp intrinsic (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
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/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 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 2022
2023 __ JumpIfSmi(r3, if_false); 2023 __ JumpIfSmi(r3, if_false);
2024 __ CompareObjectType(r3, r4, r4, JS_TYPED_ARRAY_TYPE); 2024 __ CompareObjectType(r3, r4, r4, JS_TYPED_ARRAY_TYPE);
2025 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2025 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2026 Split(eq, if_true, if_false, fall_through); 2026 Split(eq, if_true, if_false, fall_through);
2027 2027
2028 context()->Plug(if_true, if_false); 2028 context()->Plug(if_true, if_false);
2029 } 2029 }
2030 2030
2031 2031
2032 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
2033 ZoneList<Expression*>* args = expr->arguments();
2034 DCHECK(args->length() == 1);
2035
2036 VisitForAccumulatorValue(args->at(0));
2037
2038 Label materialize_true, materialize_false;
2039 Label* if_true = NULL;
2040 Label* if_false = NULL;
2041 Label* fall_through = NULL;
2042 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
2043 &if_false, &fall_through);
2044
2045 __ JumpIfSmi(r3, if_false);
2046 __ CompareObjectType(r3, r4, r4, JS_REGEXP_TYPE);
2047 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2048 Split(eq, if_true, if_false, fall_through);
2049
2050 context()->Plug(if_true, if_false);
2051 }
2052
2053
2032 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { 2054 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) {
2033 ZoneList<Expression*>* args = expr->arguments(); 2055 ZoneList<Expression*>* args = expr->arguments();
2034 DCHECK(args->length() == 1); 2056 DCHECK(args->length() == 1);
2035 2057
2036 VisitForAccumulatorValue(args->at(0)); 2058 VisitForAccumulatorValue(args->at(0));
2037 2059
2038 Label materialize_true, materialize_false; 2060 Label materialize_true, materialize_false;
2039 Label* if_true = NULL; 2061 Label* if_true = NULL;
2040 Label* if_false = NULL; 2062 Label* if_false = NULL;
2041 Label* fall_through = NULL; 2063 Label* fall_through = NULL;
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
2834 2856
2835 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2857 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2836 2858
2837 DCHECK(interrupt_address == 2859 DCHECK(interrupt_address ==
2838 isolate->builtins()->OnStackReplacement()->entry()); 2860 isolate->builtins()->OnStackReplacement()->entry());
2839 return ON_STACK_REPLACEMENT; 2861 return ON_STACK_REPLACEMENT;
2840 } 2862 }
2841 } // namespace internal 2863 } // namespace internal
2842 } // namespace v8 2864 } // namespace v8
2843 #endif // V8_TARGET_ARCH_PPC 2865 #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