OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/hydrogen.h" | 5 #include "src/hydrogen.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 9898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9909 DCHECK(!HasStackOverflow()); | 9909 DCHECK(!HasStackOverflow()); |
9910 DCHECK(current_block() != NULL); | 9910 DCHECK(current_block() != NULL); |
9911 DCHECK(current_block()->HasPredecessor()); | 9911 DCHECK(current_block()->HasPredecessor()); |
9912 if (expr->is_jsruntime()) { | 9912 if (expr->is_jsruntime()) { |
9913 return Bailout(kCallToAJavaScriptRuntimeFunction); | 9913 return Bailout(kCallToAJavaScriptRuntimeFunction); |
9914 } | 9914 } |
9915 | 9915 |
9916 const Runtime::Function* function = expr->function(); | 9916 const Runtime::Function* function = expr->function(); |
9917 DCHECK(function != NULL); | 9917 DCHECK(function != NULL); |
9918 | 9918 |
9919 if (function->intrinsic_type == Runtime::INLINE || | 9919 if (function->intrinsic_type == Runtime::INLINE) { |
9920 function->intrinsic_type == Runtime::INLINE_OPTIMIZED) { | |
9921 DCHECK(expr->name()->length() > 0); | 9920 DCHECK(expr->name()->length() > 0); |
9922 DCHECK(expr->name()->Get(0) == '_'); | 9921 DCHECK(expr->name()->Get(0) == '_'); |
9923 // Call to an inline function. | 9922 // Call to an inline function. |
9924 int lookup_index = static_cast<int>(function->function_id) - | 9923 int lookup_index = static_cast<int>(function->function_id) - |
9925 static_cast<int>(Runtime::kFirstInlineFunction); | 9924 static_cast<int>(Runtime::kFirstInlineFunction); |
9926 DCHECK(lookup_index >= 0); | 9925 DCHECK(lookup_index >= 0); |
9927 DCHECK(static_cast<size_t>(lookup_index) < | 9926 DCHECK(static_cast<size_t>(lookup_index) < |
9928 arraysize(kInlineFunctionGenerators)); | 9927 arraysize(kInlineFunctionGenerators)); |
9929 InlineFunctionGenerator generator = kInlineFunctionGenerators[lookup_index]; | 9928 InlineFunctionGenerator generator = kInlineFunctionGenerators[lookup_index]; |
9930 | 9929 |
(...skipping 3486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13417 if (ShouldProduceTraceOutput()) { | 13416 if (ShouldProduceTraceOutput()) { |
13418 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13417 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13419 } | 13418 } |
13420 | 13419 |
13421 #ifdef DEBUG | 13420 #ifdef DEBUG |
13422 graph_->Verify(false); // No full verify. | 13421 graph_->Verify(false); // No full verify. |
13423 #endif | 13422 #endif |
13424 } | 13423 } |
13425 | 13424 |
13426 } } // namespace v8::internal | 13425 } } // namespace v8::internal |
OLD | NEW |