OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |