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

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

Issue 1542963002: [runtime] Introduce dedicated JSBoundFunction to represent bound functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@FunctionConstructor
Patch Set: arm port. 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_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3117 matching lines...) Expand 10 before | Expand all | Expand 10 after
3128 VisitForAccumulatorValue(args->at(0)); 3128 VisitForAccumulatorValue(args->at(0));
3129 3129
3130 Label materialize_true, materialize_false; 3130 Label materialize_true, materialize_false;
3131 Label* if_true = NULL; 3131 Label* if_true = NULL;
3132 Label* if_false = NULL; 3132 Label* if_false = NULL;
3133 Label* fall_through = NULL; 3133 Label* fall_through = NULL;
3134 context()->PrepareTest(&materialize_true, &materialize_false, 3134 context()->PrepareTest(&materialize_true, &materialize_false,
3135 &if_true, &if_false, &fall_through); 3135 &if_true, &if_false, &fall_through);
3136 3136
3137 __ JumpIfSmi(r0, if_false); 3137 __ JumpIfSmi(r0, if_false);
3138 __ CompareObjectType(r0, r1, r2, JS_FUNCTION_TYPE); 3138 __ CompareObjectType(r0, r1, r2, FIRST_FUNCTION_TYPE);
3139 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3139 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3140 Split(eq, if_true, if_false, fall_through); 3140 Split(hs, if_true, if_false, fall_through);
3141 3141
3142 context()->Plug(if_true, if_false); 3142 context()->Plug(if_true, if_false);
3143 } 3143 }
3144 3144
3145 3145
3146 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3146 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3147 ZoneList<Expression*>* args = expr->arguments(); 3147 ZoneList<Expression*>* args = expr->arguments();
3148 DCHECK(args->length() == 1); 3148 DCHECK(args->length() == 1);
3149 3149
3150 VisitForAccumulatorValue(args->at(0)); 3150 VisitForAccumulatorValue(args->at(0));
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
4898 DCHECK(interrupt_address == 4898 DCHECK(interrupt_address ==
4899 isolate->builtins()->OsrAfterStackCheck()->entry()); 4899 isolate->builtins()->OsrAfterStackCheck()->entry());
4900 return OSR_AFTER_STACK_CHECK; 4900 return OSR_AFTER_STACK_CHECK;
4901 } 4901 }
4902 4902
4903 4903
4904 } // namespace internal 4904 } // namespace internal
4905 } // namespace v8 4905 } // namespace v8
4906 4906
4907 #endif // V8_TARGET_ARCH_ARM 4907 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | src/objects-debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698