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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/heap/heap.h » ('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_X64 5 #if V8_TARGET_ARCH_X64
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 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after
3013 VisitForAccumulatorValue(args->at(0)); 3013 VisitForAccumulatorValue(args->at(0));
3014 3014
3015 Label materialize_true, materialize_false; 3015 Label materialize_true, materialize_false;
3016 Label* if_true = NULL; 3016 Label* if_true = NULL;
3017 Label* if_false = NULL; 3017 Label* if_false = NULL;
3018 Label* fall_through = NULL; 3018 Label* fall_through = NULL;
3019 context()->PrepareTest(&materialize_true, &materialize_false, 3019 context()->PrepareTest(&materialize_true, &materialize_false,
3020 &if_true, &if_false, &fall_through); 3020 &if_true, &if_false, &fall_through);
3021 3021
3022 __ JumpIfSmi(rax, if_false); 3022 __ JumpIfSmi(rax, if_false);
3023 __ CmpObjectType(rax, JS_FUNCTION_TYPE, rbx); 3023 __ CmpObjectType(rax, FIRST_FUNCTION_TYPE, rbx);
3024 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3024 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3025 Split(equal, if_true, if_false, fall_through); 3025 Split(above_equal, if_true, if_false, fall_through);
3026 3026
3027 context()->Plug(if_true, if_false); 3027 context()->Plug(if_true, if_false);
3028 } 3028 }
3029 3029
3030 3030
3031 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3031 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3032 ZoneList<Expression*>* args = expr->arguments(); 3032 ZoneList<Expression*>* args = expr->arguments();
3033 DCHECK(args->length() == 1); 3033 DCHECK(args->length() == 1);
3034 3034
3035 VisitForAccumulatorValue(args->at(0)); 3035 VisitForAccumulatorValue(args->at(0));
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
4795 Assembler::target_address_at(call_target_address, 4795 Assembler::target_address_at(call_target_address,
4796 unoptimized_code)); 4796 unoptimized_code));
4797 return OSR_AFTER_STACK_CHECK; 4797 return OSR_AFTER_STACK_CHECK;
4798 } 4798 }
4799 4799
4800 4800
4801 } // namespace internal 4801 } // namespace internal
4802 } // namespace v8 4802 } // namespace v8
4803 4803
4804 #endif // V8_TARGET_ARCH_X64 4804 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698