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

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

Issue 2597143002: Version 5.7.324.1 (cherry-pick) (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/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 1934
1935 __ JumpIfSmi(eax, if_false); 1935 __ JumpIfSmi(eax, if_false);
1936 __ CmpObjectType(eax, JS_TYPED_ARRAY_TYPE, ebx); 1936 __ CmpObjectType(eax, JS_TYPED_ARRAY_TYPE, ebx);
1937 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 1937 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1938 Split(equal, if_true, if_false, fall_through); 1938 Split(equal, if_true, if_false, fall_through);
1939 1939
1940 context()->Plug(if_true, if_false); 1940 context()->Plug(if_true, if_false);
1941 } 1941 }
1942 1942
1943 1943
1944 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
1945 ZoneList<Expression*>* args = expr->arguments();
1946 DCHECK(args->length() == 1);
1947
1948 VisitForAccumulatorValue(args->at(0));
1949
1950 Label materialize_true, materialize_false;
1951 Label* if_true = NULL;
1952 Label* if_false = NULL;
1953 Label* fall_through = NULL;
1954 context()->PrepareTest(&materialize_true, &materialize_false,
1955 &if_true, &if_false, &fall_through);
1956
1957 __ JumpIfSmi(eax, if_false);
1958 __ CmpObjectType(eax, JS_REGEXP_TYPE, ebx);
1959 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
1960 Split(equal, if_true, if_false, fall_through);
1961
1962 context()->Plug(if_true, if_false);
1963 }
1964
1965
1944 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { 1966 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) {
1945 ZoneList<Expression*>* args = expr->arguments(); 1967 ZoneList<Expression*>* args = expr->arguments();
1946 DCHECK(args->length() == 1); 1968 DCHECK(args->length() == 1);
1947 1969
1948 VisitForAccumulatorValue(args->at(0)); 1970 VisitForAccumulatorValue(args->at(0));
1949 1971
1950 Label materialize_true, materialize_false; 1972 Label materialize_true, materialize_false;
1951 Label* if_true = NULL; 1973 Label* if_true = NULL;
1952 Label* if_false = NULL; 1974 Label* if_false = NULL;
1953 Label* fall_through = NULL; 1975 Label* fall_through = NULL;
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
2767 isolate->builtins()->OnStackReplacement()->entry(), 2789 isolate->builtins()->OnStackReplacement()->entry(),
2768 Assembler::target_address_at(call_target_address, unoptimized_code)); 2790 Assembler::target_address_at(call_target_address, unoptimized_code));
2769 return ON_STACK_REPLACEMENT; 2791 return ON_STACK_REPLACEMENT;
2770 } 2792 }
2771 2793
2772 2794
2773 } // namespace internal 2795 } // namespace internal
2774 } // namespace v8 2796 } // namespace v8
2775 2797
2776 #endif // V8_TARGET_ARCH_IA32 2798 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698