OLD | NEW |
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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 3076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3087 &if_true, &if_false, &fall_through); | 3087 &if_true, &if_false, &fall_through); |
3088 | 3088 |
3089 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3089 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3090 __ SmiTst(r0); | 3090 __ SmiTst(r0); |
3091 Split(eq, if_true, if_false, fall_through); | 3091 Split(eq, if_true, if_false, fall_through); |
3092 | 3092 |
3093 context()->Plug(if_true, if_false); | 3093 context()->Plug(if_true, if_false); |
3094 } | 3094 } |
3095 | 3095 |
3096 | 3096 |
3097 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { | 3097 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) { |
3098 ZoneList<Expression*>* args = expr->arguments(); | 3098 ZoneList<Expression*>* args = expr->arguments(); |
3099 DCHECK(args->length() == 1); | 3099 DCHECK(args->length() == 1); |
3100 | 3100 |
3101 VisitForAccumulatorValue(args->at(0)); | 3101 VisitForAccumulatorValue(args->at(0)); |
3102 | 3102 |
3103 Label materialize_true, materialize_false; | 3103 Label materialize_true, materialize_false; |
3104 Label* if_true = NULL; | 3104 Label* if_true = NULL; |
3105 Label* if_false = NULL; | 3105 Label* if_false = NULL; |
3106 Label* fall_through = NULL; | 3106 Label* fall_through = NULL; |
3107 context()->PrepareTest(&materialize_true, &materialize_false, | 3107 context()->PrepareTest(&materialize_true, &materialize_false, |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5005 DCHECK(interrupt_address == | 5005 DCHECK(interrupt_address == |
5006 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5006 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5007 return OSR_AFTER_STACK_CHECK; | 5007 return OSR_AFTER_STACK_CHECK; |
5008 } | 5008 } |
5009 | 5009 |
5010 | 5010 |
5011 } // namespace internal | 5011 } // namespace internal |
5012 } // namespace v8 | 5012 } // namespace v8 |
5013 | 5013 |
5014 #endif // V8_TARGET_ARCH_ARM | 5014 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |