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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1903 1903
1904 __ JumpIfSmi(x0, if_false); 1904 __ JumpIfSmi(x0, if_false);
1905 __ CompareObjectType(x0, x10, x11, JS_TYPED_ARRAY_TYPE); 1905 __ CompareObjectType(x0, x10, x11, JS_TYPED_ARRAY_TYPE);
1906 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 1906 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1907 Split(eq, if_true, if_false, fall_through); 1907 Split(eq, if_true, if_false, fall_through);
1908 1908
1909 context()->Plug(if_true, if_false); 1909 context()->Plug(if_true, if_false);
1910 } 1910 }
1911 1911
1912 1912
1913 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
1914 ZoneList<Expression*>* args = expr->arguments();
1915 DCHECK(args->length() == 1);
1916
1917 VisitForAccumulatorValue(args->at(0));
1918
1919 Label materialize_true, materialize_false;
1920 Label* if_true = NULL;
1921 Label* if_false = NULL;
1922 Label* fall_through = NULL;
1923 context()->PrepareTest(&materialize_true, &materialize_false,
1924 &if_true, &if_false, &fall_through);
1925
1926 __ JumpIfSmi(x0, if_false);
1927 __ CompareObjectType(x0, x10, x11, JS_REGEXP_TYPE);
1928 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1929 Split(eq, if_true, if_false, fall_through);
1930
1931 context()->Plug(if_true, if_false);
1932 }
1933
1934
1935 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { 1913 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) {
1936 ZoneList<Expression*>* args = expr->arguments(); 1914 ZoneList<Expression*>* args = expr->arguments();
1937 DCHECK(args->length() == 1); 1915 DCHECK(args->length() == 1);
1938 1916
1939 VisitForAccumulatorValue(args->at(0)); 1917 VisitForAccumulatorValue(args->at(0));
1940 1918
1941 Label materialize_true, materialize_false; 1919 Label materialize_true, materialize_false;
1942 Label* if_true = NULL; 1920 Label* if_true = NULL;
1943 Label* if_false = NULL; 1921 Label* if_false = NULL;
1944 Label* fall_through = NULL; 1922 Label* fall_through = NULL;
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
2860 } 2838 }
2861 2839
2862 return INTERRUPT; 2840 return INTERRUPT;
2863 } 2841 }
2864 2842
2865 2843
2866 } // namespace internal 2844 } // namespace internal
2867 } // namespace v8 2845 } // namespace v8
2868 2846
2869 #endif // V8_TARGET_ARCH_ARM64 2847 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698