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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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 5 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 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 2993 matching lines...) Expand 10 before | Expand all | Expand 10 after
3004 VisitForAccumulatorValue(args->at(0)); 3004 VisitForAccumulatorValue(args->at(0));
3005 3005
3006 Label materialize_true, materialize_false; 3006 Label materialize_true, materialize_false;
3007 Label* if_true = NULL; 3007 Label* if_true = NULL;
3008 Label* if_false = NULL; 3008 Label* if_false = NULL;
3009 Label* fall_through = NULL; 3009 Label* fall_through = NULL;
3010 context()->PrepareTest(&materialize_true, &materialize_false, 3010 context()->PrepareTest(&materialize_true, &materialize_false,
3011 &if_true, &if_false, &fall_through); 3011 &if_true, &if_false, &fall_through);
3012 3012
3013 __ JumpIfSmi(eax, if_false); 3013 __ JumpIfSmi(eax, if_false);
3014 __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx); 3014 __ CmpObjectType(eax, FIRST_FUNCTION_TYPE, ebx);
3015 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3015 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3016 Split(equal, if_true, if_false, fall_through); 3016 Split(above_equal, if_true, if_false, fall_through);
3017 3017
3018 context()->Plug(if_true, if_false); 3018 context()->Plug(if_true, if_false);
3019 } 3019 }
3020 3020
3021 3021
3022 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3022 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3023 ZoneList<Expression*>* args = expr->arguments(); 3023 ZoneList<Expression*>* args = expr->arguments();
3024 DCHECK(args->length() == 1); 3024 DCHECK(args->length() == 1);
3025 3025
3026 VisitForAccumulatorValue(args->at(0)); 3026 VisitForAccumulatorValue(args->at(0));
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after
4761 Assembler::target_address_at(call_target_address, 4761 Assembler::target_address_at(call_target_address,
4762 unoptimized_code)); 4762 unoptimized_code));
4763 return OSR_AFTER_STACK_CHECK; 4763 return OSR_AFTER_STACK_CHECK;
4764 } 4764 }
4765 4765
4766 4766
4767 } // namespace internal 4767 } // namespace internal
4768 } // namespace v8 4768 } // namespace v8
4769 4769
4770 #endif // V8_TARGET_ARCH_IA32 4770 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698