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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after
3082 &if_false, &fall_through); 3082 &if_false, &fall_through);
3083 3083
3084 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3084 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3085 __ TestIfSmi(r3, r0); 3085 __ TestIfSmi(r3, r0);
3086 Split(eq, if_true, if_false, fall_through, cr0); 3086 Split(eq, if_true, if_false, fall_through, cr0);
3087 3087
3088 context()->Plug(if_true, if_false); 3088 context()->Plug(if_true, if_false);
3089 } 3089 }
3090 3090
3091 3091
3092 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { 3092 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) {
3093 ZoneList<Expression*>* args = expr->arguments(); 3093 ZoneList<Expression*>* args = expr->arguments();
3094 DCHECK(args->length() == 1); 3094 DCHECK(args->length() == 1);
3095 3095
3096 VisitForAccumulatorValue(args->at(0)); 3096 VisitForAccumulatorValue(args->at(0));
3097 3097
3098 Label materialize_true, materialize_false; 3098 Label materialize_true, materialize_false;
3099 Label* if_true = NULL; 3099 Label* if_true = NULL;
3100 Label* if_false = NULL; 3100 Label* if_false = NULL;
3101 Label* fall_through = NULL; 3101 Label* fall_through = NULL;
3102 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, 3102 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
4961 return ON_STACK_REPLACEMENT; 4961 return ON_STACK_REPLACEMENT;
4962 } 4962 }
4963 4963
4964 DCHECK(interrupt_address == 4964 DCHECK(interrupt_address ==
4965 isolate->builtins()->OsrAfterStackCheck()->entry()); 4965 isolate->builtins()->OsrAfterStackCheck()->entry());
4966 return OSR_AFTER_STACK_CHECK; 4966 return OSR_AFTER_STACK_CHECK;
4967 } 4967 }
4968 } // namespace internal 4968 } // namespace internal
4969 } // namespace v8 4969 } // namespace v8
4970 #endif // V8_TARGET_ARCH_PPC 4970 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698