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

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

Issue 1552473002: Revert of [runtime] Introduce dedicated JSBoundFunction to represent bound functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@FunctionConstructor
Patch Set: Created 4 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/mips/full-codegen-mips.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 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 3134 matching lines...) Expand 10 before | Expand all | Expand 10 after
3145 Label materialize_true, materialize_false; 3145 Label materialize_true, materialize_false;
3146 Label* if_true = NULL; 3146 Label* if_true = NULL;
3147 Label* if_false = NULL; 3147 Label* if_false = NULL;
3148 Label* fall_through = NULL; 3148 Label* fall_through = NULL;
3149 context()->PrepareTest(&materialize_true, &materialize_false, 3149 context()->PrepareTest(&materialize_true, &materialize_false,
3150 &if_true, &if_false, &fall_through); 3150 &if_true, &if_false, &fall_through);
3151 3151
3152 __ JumpIfSmi(v0, if_false); 3152 __ JumpIfSmi(v0, if_false);
3153 __ GetObjectType(v0, a1, a2); 3153 __ GetObjectType(v0, a1, a2);
3154 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3154 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3155 __ Branch(if_true, hs, a2, Operand(FIRST_FUNCTION_TYPE)); 3155 __ Branch(if_true, eq, a2, Operand(JS_FUNCTION_TYPE));
3156 __ Branch(if_false); 3156 __ Branch(if_false);
3157 3157
3158 context()->Plug(if_true, if_false); 3158 context()->Plug(if_true, if_false);
3159 } 3159 }
3160 3160
3161 3161
3162 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3162 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3163 ZoneList<Expression*>* args = expr->arguments(); 3163 ZoneList<Expression*>* args = expr->arguments();
3164 DCHECK(args->length() == 1); 3164 DCHECK(args->length() == 1);
3165 3165
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after
4882 reinterpret_cast<uint64_t>( 4882 reinterpret_cast<uint64_t>(
4883 isolate->builtins()->OsrAfterStackCheck()->entry())); 4883 isolate->builtins()->OsrAfterStackCheck()->entry()));
4884 return OSR_AFTER_STACK_CHECK; 4884 return OSR_AFTER_STACK_CHECK;
4885 } 4885 }
4886 4886
4887 4887
4888 } // namespace internal 4888 } // namespace internal
4889 } // namespace v8 4889 } // namespace v8
4890 4890
4891 #endif // V8_TARGET_ARCH_MIPS64 4891 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.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