| 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/deopt_instructions.h" | 5 #include "vm/deopt_instructions.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
| 9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
| 10 #include "vm/locations.h" | 10 #include "vm/locations.h" |
| 11 #include "vm/parser.h" | 11 #include "vm/parser.h" |
| 12 #include "vm/stack_frame.h" |
| 12 | 13 |
| 13 namespace dart { | 14 namespace dart { |
| 14 | 15 |
| 15 DEFINE_FLAG(bool, compress_deopt_info, true, | 16 DEFINE_FLAG(bool, compress_deopt_info, true, |
| 16 "Compress the size of the deoptimization info for optimized code."); | 17 "Compress the size of the deoptimization info for optimized code."); |
| 17 DECLARE_FLAG(bool, trace_deoptimization); | 18 DECLARE_FLAG(bool, trace_deoptimization); |
| 18 | 19 |
| 19 DeoptimizationContext::DeoptimizationContext(intptr_t* to_frame_start, | 20 DeoptimizationContext::DeoptimizationContext(intptr_t* to_frame_start, |
| 20 intptr_t to_frame_size, | 21 intptr_t to_frame_size, |
| 21 const Array& object_table, | 22 const Array& object_table, |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 Smi* offset, | 927 Smi* offset, |
| 927 DeoptInfo* info, | 928 DeoptInfo* info, |
| 928 Smi* reason) { | 929 Smi* reason) { |
| 929 intptr_t i = index * kEntrySize; | 930 intptr_t i = index * kEntrySize; |
| 930 *offset ^= table.At(i); | 931 *offset ^= table.At(i); |
| 931 *info ^= table.At(i + 1); | 932 *info ^= table.At(i + 1); |
| 932 *reason ^= table.At(i + 2); | 933 *reason ^= table.At(i + 2); |
| 933 } | 934 } |
| 934 | 935 |
| 935 } // namespace dart | 936 } // namespace dart |
| OLD | NEW |