| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4056 | 4056 |
| 4057 | 4057 |
| 4058 void Function::SwitchToUnoptimizedCode() const { | 4058 void Function::SwitchToUnoptimizedCode() const { |
| 4059 ASSERT(HasOptimizedCode()); | 4059 ASSERT(HasOptimizedCode()); |
| 4060 | 4060 |
| 4061 const Code& current_code = Code::Handle(CurrentCode()); | 4061 const Code& current_code = Code::Handle(CurrentCode()); |
| 4062 | 4062 |
| 4063 // Optimized code object might have been actually fully produced by the | 4063 // Optimized code object might have been actually fully produced by the |
| 4064 // intrinsifier in this case nothing has to be done. In fact an attempt to | 4064 // intrinsifier in this case nothing has to be done. In fact an attempt to |
| 4065 // patch such code will cause crash. | 4065 // patch such code will cause crash. |
| 4066 // TODO(vegorov): if intrisifier can fully intrisify the function then we | 4066 // TODO(vegorov): if intrisifier can fully intrinsify the function then we |
| 4067 // should not later try to optimize it. | 4067 // should not later try to optimize it. |
| 4068 if (PcDescriptors::Handle(current_code.pc_descriptors()).Length() == 0) { | 4068 if (PcDescriptors::Handle(current_code.pc_descriptors()).Length() == 0) { |
| 4069 return; | 4069 return; |
| 4070 } | 4070 } |
| 4071 | 4071 |
| 4072 if (FLAG_trace_disabling_optimized_code) { | 4072 if (FLAG_trace_disabling_optimized_code) { |
| 4073 OS::Print("Disabling optimized code: '%s' entry: %#" Px "\n", | 4073 OS::Print("Disabling optimized code: '%s' entry: %#" Px "\n", |
| 4074 ToFullyQualifiedCString(), | 4074 ToFullyQualifiedCString(), |
| 4075 current_code.EntryPoint()); | 4075 current_code.EntryPoint()); |
| 4076 } | 4076 } |
| (...skipping 11511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15588 return "_MirrorReference"; | 15588 return "_MirrorReference"; |
| 15589 } | 15589 } |
| 15590 | 15590 |
| 15591 | 15591 |
| 15592 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 15592 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 15593 JSONObject jsobj(stream); | 15593 JSONObject jsobj(stream); |
| 15594 } | 15594 } |
| 15595 | 15595 |
| 15596 | 15596 |
| 15597 } // namespace dart | 15597 } // namespace dart |
| OLD | NEW |