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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 2034
2035 __ JumpIfSmi(v0, if_false); 2035 __ JumpIfSmi(v0, if_false);
2036 __ GetObjectType(v0, a1, a1); 2036 __ GetObjectType(v0, a1, a1);
2037 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2037 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2038 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through); 2038 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through);
2039 2039
2040 context()->Plug(if_true, if_false); 2040 context()->Plug(if_true, if_false);
2041 } 2041 }
2042 2042
2043 2043
2044 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
2045 ZoneList<Expression*>* args = expr->arguments();
2046 DCHECK(args->length() == 1);
2047
2048 VisitForAccumulatorValue(args->at(0));
2049
2050 Label materialize_true, materialize_false;
2051 Label* if_true = NULL;
2052 Label* if_false = NULL;
2053 Label* fall_through = NULL;
2054 context()->PrepareTest(&materialize_true, &materialize_false,
2055 &if_true, &if_false, &fall_through);
2056
2057 __ JumpIfSmi(v0, if_false);
2058 __ GetObjectType(v0, a1, a1);
2059 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2060 Split(eq, a1, Operand(JS_REGEXP_TYPE), if_true, if_false, fall_through);
2061
2062 context()->Plug(if_true, if_false);
2063 }
2064
2065
2044 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { 2066 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) {
2045 ZoneList<Expression*>* args = expr->arguments(); 2067 ZoneList<Expression*>* args = expr->arguments();
2046 DCHECK(args->length() == 1); 2068 DCHECK(args->length() == 1);
2047 2069
2048 VisitForAccumulatorValue(args->at(0)); 2070 VisitForAccumulatorValue(args->at(0));
2049 2071
2050 Label materialize_true, materialize_false; 2072 Label materialize_true, materialize_false;
2051 Label* if_true = NULL; 2073 Label* if_true = NULL;
2052 Label* if_false = NULL; 2074 Label* if_false = NULL;
2053 Label* fall_through = NULL; 2075 Label* fall_through = NULL;
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
2856 reinterpret_cast<uint32_t>( 2878 reinterpret_cast<uint32_t>(
2857 isolate->builtins()->OnStackReplacement()->entry())); 2879 isolate->builtins()->OnStackReplacement()->entry()));
2858 return ON_STACK_REPLACEMENT; 2880 return ON_STACK_REPLACEMENT;
2859 } 2881 }
2860 2882
2861 2883
2862 } // namespace internal 2884 } // namespace internal
2863 } // namespace v8 2885 } // namespace v8
2864 2886
2865 #endif // V8_TARGET_ARCH_MIPS 2887 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698