| 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 #ifndef VM_FLOW_GRAPH_COMPILER_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 Label* entry_label() { return &entry_label_; } | 171 Label* entry_label() { return &entry_label_; } |
| 172 | 172 |
| 173 // Implementation is in architecture specific file. | 173 // Implementation is in architecture specific file. |
| 174 virtual void GenerateCode(FlowGraphCompiler* compiler, intptr_t stub_ix); | 174 virtual void GenerateCode(FlowGraphCompiler* compiler, intptr_t stub_ix); |
| 175 | 175 |
| 176 const char* Name() const { | 176 const char* Name() const { |
| 177 const char* kFormat = "Deopt stub for id %d, reason: %s"; | 177 const char* kFormat = "Deopt stub for id %d, reason: %s"; |
| 178 const intptr_t len = OS::SNPrint(NULL, 0, kFormat, | 178 const intptr_t len = OS::SNPrint(NULL, 0, kFormat, |
| 179 deopt_id(), DeoptReasonToCString(reason())) + 1; | 179 deopt_id(), DeoptReasonToCString(reason())) + 1; |
| 180 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 180 char* chars = Thread::Current()->zone()->Alloc<char>(len); |
| 181 OS::SNPrint(chars, len, kFormat, | 181 OS::SNPrint(chars, len, kFormat, |
| 182 deopt_id(), DeoptReasonToCString(reason())); | 182 deopt_id(), DeoptReasonToCString(reason())); |
| 183 return chars; | 183 return chars; |
| 184 } | 184 } |
| 185 | 185 |
| 186 private: | 186 private: |
| 187 Label entry_label_; | 187 Label entry_label_; |
| 188 | 188 |
| 189 DISALLOW_COPY_AND_ASSIGN(CompilerDeoptInfoWithStub); | 189 DISALLOW_COPY_AND_ASSIGN(CompilerDeoptInfoWithStub); |
| 190 }; | 190 }; |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 Array& inlined_code_intervals_; | 717 Array& inlined_code_intervals_; |
| 718 const GrowableArray<const Function*>& inline_id_to_function_; | 718 const GrowableArray<const Function*>& inline_id_to_function_; |
| 719 const GrowableArray<intptr_t>& caller_inline_id_; | 719 const GrowableArray<intptr_t>& caller_inline_id_; |
| 720 | 720 |
| 721 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 721 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 722 }; | 722 }; |
| 723 | 723 |
| 724 } // namespace dart | 724 } // namespace dart |
| 725 | 725 |
| 726 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 726 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |