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

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

Issue 1479293002: Rename %_IsSpecObject to %_IsJSReceiver. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-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_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 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 &if_true, &if_false, &fall_through); 2955 &if_true, &if_false, &fall_through);
2956 2956
2957 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2957 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2958 __ JumpIfSmi(rax, if_true); 2958 __ JumpIfSmi(rax, if_true);
2959 __ jmp(if_false); 2959 __ jmp(if_false);
2960 2960
2961 context()->Plug(if_true, if_false); 2961 context()->Plug(if_true, if_false);
2962 } 2962 }
2963 2963
2964 2964
2965 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { 2965 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) {
2966 ZoneList<Expression*>* args = expr->arguments(); 2966 ZoneList<Expression*>* args = expr->arguments();
2967 DCHECK(args->length() == 1); 2967 DCHECK(args->length() == 1);
2968 2968
2969 VisitForAccumulatorValue(args->at(0)); 2969 VisitForAccumulatorValue(args->at(0));
2970 2970
2971 Label materialize_true, materialize_false; 2971 Label materialize_true, materialize_false;
2972 Label* if_true = NULL; 2972 Label* if_true = NULL;
2973 Label* if_false = NULL; 2973 Label* if_false = NULL;
2974 Label* fall_through = NULL; 2974 Label* fall_through = NULL;
2975 context()->PrepareTest(&materialize_true, &materialize_false, 2975 context()->PrepareTest(&materialize_true, &materialize_false,
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after
4881 Assembler::target_address_at(call_target_address, 4881 Assembler::target_address_at(call_target_address,
4882 unoptimized_code)); 4882 unoptimized_code));
4883 return OSR_AFTER_STACK_CHECK; 4883 return OSR_AFTER_STACK_CHECK;
4884 } 4884 }
4885 4885
4886 4886
4887 } // namespace internal 4887 } // namespace internal
4888 } // namespace v8 4888 } // namespace v8
4889 4889
4890 #endif // V8_TARGET_ARCH_X64 4890 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698