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

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

Issue 1548253002: X87: [runtime] Introduce dedicated JSBoundFunction to represent bound functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 | « no previous file | src/x87/builtins-x87.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_X87 5 #if V8_TARGET_ARCH_X87
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 3006 matching lines...) Expand 10 before | Expand all | Expand 10 after
3017 VisitForAccumulatorValue(args->at(0)); 3017 VisitForAccumulatorValue(args->at(0));
3018 3018
3019 Label materialize_true, materialize_false; 3019 Label materialize_true, materialize_false;
3020 Label* if_true = NULL; 3020 Label* if_true = NULL;
3021 Label* if_false = NULL; 3021 Label* if_false = NULL;
3022 Label* fall_through = NULL; 3022 Label* fall_through = NULL;
3023 context()->PrepareTest(&materialize_true, &materialize_false, 3023 context()->PrepareTest(&materialize_true, &materialize_false,
3024 &if_true, &if_false, &fall_through); 3024 &if_true, &if_false, &fall_through);
3025 3025
3026 __ JumpIfSmi(eax, if_false); 3026 __ JumpIfSmi(eax, if_false);
3027 __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx); 3027 __ CmpObjectType(eax, FIRST_FUNCTION_TYPE, ebx);
3028 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3028 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3029 Split(equal, if_true, if_false, fall_through); 3029 Split(above_equal, if_true, if_false, fall_through);
3030 3030
3031 context()->Plug(if_true, if_false); 3031 context()->Plug(if_true, if_false);
3032 } 3032 }
3033 3033
3034 3034
3035 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3035 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3036 ZoneList<Expression*>* args = expr->arguments(); 3036 ZoneList<Expression*>* args = expr->arguments();
3037 DCHECK(args->length() == 1); 3037 DCHECK(args->length() == 1);
3038 3038
3039 VisitForAccumulatorValue(args->at(0)); 3039 VisitForAccumulatorValue(args->at(0));
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after
4774 Assembler::target_address_at(call_target_address, 4774 Assembler::target_address_at(call_target_address,
4775 unoptimized_code)); 4775 unoptimized_code));
4776 return OSR_AFTER_STACK_CHECK; 4776 return OSR_AFTER_STACK_CHECK;
4777 } 4777 }
4778 4778
4779 4779
4780 } // namespace internal 4780 } // namespace internal
4781 } // namespace v8 4781 } // namespace v8
4782 4782
4783 #endif // V8_TARGET_ARCH_X87 4783 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/builtins-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698