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

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: [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_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 3014 matching lines...) Expand 10 before | Expand all | Expand 10 after
3025 VisitForAccumulatorValue(args->at(0)); 3025 VisitForAccumulatorValue(args->at(0));
3026 3026
3027 Label materialize_true, materialize_false; 3027 Label materialize_true, materialize_false;
3028 Label* if_true = NULL; 3028 Label* if_true = NULL;
3029 Label* if_false = NULL; 3029 Label* if_false = NULL;
3030 Label* fall_through = NULL; 3030 Label* fall_through = NULL;
3031 context()->PrepareTest(&materialize_true, &materialize_false, 3031 context()->PrepareTest(&materialize_true, &materialize_false,
3032 &if_true, &if_false, &fall_through); 3032 &if_true, &if_false, &fall_through);
3033 3033
3034 __ JumpIfSmi(eax, if_false); 3034 __ JumpIfSmi(eax, if_false);
3035 __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx); 3035 __ CmpObjectType(eax, FIRST_FUNCTION_TYPE, ebx);
3036 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3036 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3037 Split(equal, if_true, if_false, fall_through); 3037 Split(above_equal, if_true, if_false, fall_through);
3038 3038
3039 context()->Plug(if_true, if_false); 3039 context()->Plug(if_true, if_false);
3040 } 3040 }
3041 3041
3042 3042
3043 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3043 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3044 ZoneList<Expression*>* args = expr->arguments(); 3044 ZoneList<Expression*>* args = expr->arguments();
3045 DCHECK(args->length() == 1); 3045 DCHECK(args->length() == 1);
3046 3046
3047 VisitForAccumulatorValue(args->at(0)); 3047 VisitForAccumulatorValue(args->at(0));
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after
4782 Assembler::target_address_at(call_target_address, 4782 Assembler::target_address_at(call_target_address,
4783 unoptimized_code)); 4783 unoptimized_code));
4784 return OSR_AFTER_STACK_CHECK; 4784 return OSR_AFTER_STACK_CHECK;
4785 } 4785 }
4786 4786
4787 4787
4788 } // namespace internal 4788 } // namespace internal
4789 } // namespace v8 4789 } // namespace v8
4790 4790
4791 #endif // V8_TARGET_ARCH_IA32 4791 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698