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

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

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