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

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

Issue 1542963002: [runtime] Introduce dedicated JSBoundFunction to represent bound functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@FunctionConstructor
Patch Set: [arm64] Poke does not preserve flags with --debug-code. 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
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 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after
3139 Label materialize_true, materialize_false; 3139 Label materialize_true, materialize_false;
3140 Label* if_true = NULL; 3140 Label* if_true = NULL;
3141 Label* if_false = NULL; 3141 Label* if_false = NULL;
3142 Label* fall_through = NULL; 3142 Label* fall_through = NULL;
3143 context()->PrepareTest(&materialize_true, &materialize_false, 3143 context()->PrepareTest(&materialize_true, &materialize_false,
3144 &if_true, &if_false, &fall_through); 3144 &if_true, &if_false, &fall_through);
3145 3145
3146 __ JumpIfSmi(v0, if_false); 3146 __ JumpIfSmi(v0, if_false);
3147 __ GetObjectType(v0, a1, a2); 3147 __ GetObjectType(v0, a1, a2);
3148 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3148 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3149 __ Branch(if_true, eq, a2, Operand(JS_FUNCTION_TYPE)); 3149 __ Branch(if_true, hs, a2, Operand(FIRST_FUNCTION_TYPE));
3150 __ Branch(if_false); 3150 __ Branch(if_false);
3151 3151
3152 context()->Plug(if_true, if_false); 3152 context()->Plug(if_true, if_false);
3153 } 3153 }
3154 3154
3155 3155
3156 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3156 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3157 ZoneList<Expression*>* args = expr->arguments(); 3157 ZoneList<Expression*>* args = expr->arguments();
3158 DCHECK(args->length() == 1); 3158 DCHECK(args->length() == 1);
3159 3159
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after
4868 reinterpret_cast<uint32_t>( 4868 reinterpret_cast<uint32_t>(
4869 isolate->builtins()->OsrAfterStackCheck()->entry())); 4869 isolate->builtins()->OsrAfterStackCheck()->entry()));
4870 return OSR_AFTER_STACK_CHECK; 4870 return OSR_AFTER_STACK_CHECK;
4871 } 4871 }
4872 4872
4873 4873
4874 } // namespace internal 4874 } // namespace internal
4875 } // namespace v8 4875 } // namespace v8
4876 4876
4877 #endif // V8_TARGET_ARCH_MIPS 4877 #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