Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_allocator.h" | 10 #include "vm/flow_graph_allocator.h" |
| (...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2009 token_pos(), | 2009 token_pos(), |
| 2010 ArgumentCount(), | 2010 ArgumentCount(), |
| 2011 argument_names(), | 2011 argument_names(), |
| 2012 locs(), | 2012 locs(), |
| 2013 call_ic_data); | 2013 call_ic_data); |
| 2014 } | 2014 } |
| 2015 } | 2015 } |
| 2016 | 2016 |
| 2017 | 2017 |
| 2018 bool PolymorphicInstanceCallInstr::HasRecognizedTarget() const { | 2018 bool PolymorphicInstanceCallInstr::HasRecognizedTarget() const { |
| 2019 return ic_data().HasOneTarget() && | 2019 if (!ic_data().HasOneTarget()) return false; |
|
Vyacheslav Egorov (Google)
2014/01/08 13:00:00
Accidental change? Please revert.
Florian Schneider
2014/01/08 14:12:43
Done.
| |
| 2020 (MethodRecognizer::RecognizeKind( | 2020 const Function& target = Function::Handle(ic_data().GetTargetAt(0)); |
| 2021 Function::Handle(ic_data().GetTargetAt(0))) != | 2021 return MethodRecognizer::RecognizeKind(target) != |
| 2022 MethodRecognizer::kUnknown); | 2022 MethodRecognizer::kUnknown; |
| 2023 } | 2023 } |
| 2024 | 2024 |
| 2025 | 2025 |
| 2026 LocationSummary* StaticCallInstr::MakeLocationSummary(bool optimizing) const { | 2026 LocationSummary* StaticCallInstr::MakeLocationSummary(bool optimizing) const { |
| 2027 return MakeCallSummary(); | 2027 return MakeCallSummary(); |
| 2028 } | 2028 } |
| 2029 | 2029 |
| 2030 | 2030 |
| 2031 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2031 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 2032 if (!compiler->is_optimizing()) { | 2032 if (!compiler->is_optimizing()) { |
| (...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3094 case Token::kTRUNCDIV: return 0; | 3094 case Token::kTRUNCDIV: return 0; |
| 3095 case Token::kMOD: return 1; | 3095 case Token::kMOD: return 1; |
| 3096 default: UNIMPLEMENTED(); return -1; | 3096 default: UNIMPLEMENTED(); return -1; |
| 3097 } | 3097 } |
| 3098 } | 3098 } |
| 3099 | 3099 |
| 3100 | 3100 |
| 3101 #undef __ | 3101 #undef __ |
| 3102 | 3102 |
| 3103 } // namespace dart | 3103 } // namespace dart |
| OLD | NEW |