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

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.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/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/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 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 &if_false, &fall_through); 1910 &if_false, &fall_through);
1911 1911
1912 __ JumpIfSmi(r2, if_false); 1912 __ JumpIfSmi(r2, if_false);
1913 __ CompareObjectType(r2, r3, r3, JS_TYPED_ARRAY_TYPE); 1913 __ CompareObjectType(r2, r3, r3, JS_TYPED_ARRAY_TYPE);
1914 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 1914 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1915 Split(eq, if_true, if_false, fall_through); 1915 Split(eq, if_true, if_false, fall_through);
1916 1916
1917 context()->Plug(if_true, if_false); 1917 context()->Plug(if_true, if_false);
1918 } 1918 }
1919 1919
1920 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
1921 ZoneList<Expression*>* args = expr->arguments();
1922 DCHECK(args->length() == 1);
1923
1924 VisitForAccumulatorValue(args->at(0));
1925
1926 Label materialize_true, materialize_false;
1927 Label* if_true = NULL;
1928 Label* if_false = NULL;
1929 Label* fall_through = NULL;
1930 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
1931 &if_false, &fall_through);
1932
1933 __ JumpIfSmi(r2, if_false);
1934 __ CompareObjectType(r2, r3, r3, JS_REGEXP_TYPE);
1935 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1936 Split(eq, if_true, if_false, fall_through);
1937
1938 context()->Plug(if_true, if_false);
1939 }
1940
1941 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { 1920 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) {
1942 ZoneList<Expression*>* args = expr->arguments(); 1921 ZoneList<Expression*>* args = expr->arguments();
1943 DCHECK(args->length() == 1); 1922 DCHECK(args->length() == 1);
1944 1923
1945 VisitForAccumulatorValue(args->at(0)); 1924 VisitForAccumulatorValue(args->at(0));
1946 1925
1947 Label materialize_true, materialize_false; 1926 Label materialize_true, materialize_false;
1948 Label* if_true = NULL; 1927 Label* if_true = NULL;
1949 Label* if_false = NULL; 1928 Label* if_false = NULL;
1950 Label* fall_through = NULL; 1929 Label* fall_through = NULL;
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
2730 DCHECK(kOSRBranchInstruction == br_instr); 2709 DCHECK(kOSRBranchInstruction == br_instr);
2731 2710
2732 DCHECK(interrupt_address == 2711 DCHECK(interrupt_address ==
2733 isolate->builtins()->OnStackReplacement()->entry()); 2712 isolate->builtins()->OnStackReplacement()->entry());
2734 return ON_STACK_REPLACEMENT; 2713 return ON_STACK_REPLACEMENT;
2735 } 2714 }
2736 2715
2737 } // namespace internal 2716 } // namespace internal
2738 } // namespace v8 2717 } // namespace v8
2739 #endif // V8_TARGET_ARCH_S390 2718 #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