| 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/code_descriptors.h" | 5 #include "vm/code_descriptors.h" |
| 6 | 6 |
| 7 #include "vm/log.h" | 7 #include "vm/log.h" |
| 8 | 8 |
| 9 namespace dart { | 9 namespace dart { |
| 10 | 10 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 uint8_t* dest = reinterpret_cast<uint8_t*>(td.DataAddr(0)); | 216 uint8_t* dest = reinterpret_cast<uint8_t*>(td.DataAddr(0)); |
| 217 uint8_t* src = stream_.buffer(); | 217 uint8_t* src = stream_.buffer(); |
| 218 for (intptr_t i = 0; i < stream_.bytes_written(); i++) { | 218 for (intptr_t i = 0; i < stream_.bytes_written(); i++) { |
| 219 dest[i] = src[i]; | 219 dest[i] = src[i]; |
| 220 } | 220 } |
| 221 return td.raw(); | 221 return td.raw(); |
| 222 } | 222 } |
| 223 | 223 |
| 224 | 224 |
| 225 const TokenPosition CodeSourceMapBuilder::kInitialPosition = | 225 const TokenPosition CodeSourceMapBuilder::kInitialPosition = |
| 226 TokenPosition::kDartCodePrologue; | 226 TokenPosition(TokenPosition::kDartCodeProloguePos); |
| 227 | 227 |
| 228 | 228 |
| 229 CodeSourceMapBuilder::CodeSourceMapBuilder( | 229 CodeSourceMapBuilder::CodeSourceMapBuilder( |
| 230 bool stack_traces_only, | 230 bool stack_traces_only, |
| 231 const GrowableArray<intptr_t>& caller_inline_id, | 231 const GrowableArray<intptr_t>& caller_inline_id, |
| 232 const GrowableArray<TokenPosition>& inline_id_to_token_pos, | 232 const GrowableArray<TokenPosition>& inline_id_to_token_pos, |
| 233 const GrowableArray<const Function*>& inline_id_to_function) | 233 const GrowableArray<const Function*>& inline_id_to_function) |
| 234 : buffered_pc_offset_(0), | 234 : buffered_pc_offset_(0), |
| 235 buffered_inline_id_stack_(), | 235 buffered_inline_id_stack_(), |
| 236 buffered_token_pos_stack_(), | 236 buffered_token_pos_stack_(), |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 break; | 648 break; |
| 649 } | 649 } |
| 650 default: | 650 default: |
| 651 UNREACHABLE(); | 651 UNREACHABLE(); |
| 652 } | 652 } |
| 653 } | 653 } |
| 654 THR_Print("}\n"); | 654 THR_Print("}\n"); |
| 655 } | 655 } |
| 656 | 656 |
| 657 } // namespace dart | 657 } // namespace dart |
| OLD | NEW |