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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.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_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 2960 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 &if_true, &if_false, &fall_through); 2971 &if_true, &if_false, &fall_through);
2972 2972
2973 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2973 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2974 __ test(eax, Immediate(kSmiTagMask)); 2974 __ test(eax, Immediate(kSmiTagMask));
2975 Split(zero, if_true, if_false, fall_through); 2975 Split(zero, if_true, if_false, fall_through);
2976 2976
2977 context()->Plug(if_true, if_false); 2977 context()->Plug(if_true, if_false);
2978 } 2978 }
2979 2979
2980 2980
2981 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { 2981 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) {
2982 ZoneList<Expression*>* args = expr->arguments(); 2982 ZoneList<Expression*>* args = expr->arguments();
2983 DCHECK(args->length() == 1); 2983 DCHECK(args->length() == 1);
2984 2984
2985 VisitForAccumulatorValue(args->at(0)); 2985 VisitForAccumulatorValue(args->at(0));
2986 2986
2987 Label materialize_true, materialize_false; 2987 Label materialize_true, materialize_false;
2988 Label* if_true = NULL; 2988 Label* if_true = NULL;
2989 Label* if_false = NULL; 2989 Label* if_false = NULL;
2990 Label* fall_through = NULL; 2990 Label* fall_through = NULL;
2991 context()->PrepareTest(&materialize_true, &materialize_false, 2991 context()->PrepareTest(&materialize_true, &materialize_false,
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
4874 Assembler::target_address_at(call_target_address, 4874 Assembler::target_address_at(call_target_address,
4875 unoptimized_code)); 4875 unoptimized_code));
4876 return OSR_AFTER_STACK_CHECK; 4876 return OSR_AFTER_STACK_CHECK;
4877 } 4877 }
4878 4878
4879 4879
4880 } // namespace internal 4880 } // namespace internal
4881 } // namespace v8 4881 } // namespace v8
4882 4882
4883 #endif // V8_TARGET_ARCH_IA32 4883 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698