Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: runtime/vm/code_descriptors.cc

Issue 2731593002: Fix language/regress_28325 in precompiled mode (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 318
319 319
320 void CodeSourceMapBuilder::WriteChangePosition(TokenPosition pos) { 320 void CodeSourceMapBuilder::WriteChangePosition(TokenPosition pos) {
321 stream_.Write<uint8_t>(kChangePosition); 321 stream_.Write<uint8_t>(kChangePosition);
322 if (FLAG_precompiled_mode) { 322 if (FLAG_precompiled_mode) {
323 intptr_t line = -1; 323 intptr_t line = -1;
324 intptr_t inline_id = buffered_inline_id_stack_.Last(); 324 intptr_t inline_id = buffered_inline_id_stack_.Last();
325 if (inline_id < inline_id_to_function_.length()) { 325 if (inline_id < inline_id_to_function_.length()) {
326 const Function* function = inline_id_to_function_[inline_id]; 326 const Function* function = inline_id_to_function_[inline_id];
327 Script& script = Script::Handle(function->script()); 327 Script& script = Script::Handle(function->script());
328 line = script.GetTokenLineUsingLineStarts(pos); 328 line = script.GetTokenLineUsingLineStarts(pos.SourcePosition());
329 } 329 }
330 stream_.Write<int32_t>(static_cast<int32_t>(line)); 330 stream_.Write<int32_t>(static_cast<int32_t>(line));
331 } else { 331 } else {
332 stream_.Write<int32_t>(static_cast<int32_t>(pos.value())); 332 stream_.Write<int32_t>(static_cast<int32_t>(pos.value()));
333 } 333 }
334 written_token_pos_stack_.Last() = pos; 334 written_token_pos_stack_.Last() = pos;
335 } 335 }
336 336
337 337
338 void CodeSourceMapReader::GetInlinedFunctionsAt( 338 void CodeSourceMapReader::GetInlinedFunctionsAt(
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 break; 543 break;
544 } 544 }
545 default: 545 default:
546 UNREACHABLE(); 546 UNREACHABLE();
547 } 547 }
548 } 548 }
549 THR_Print("}\n"); 549 THR_Print("}\n");
550 } 550 }
551 551
552 } // namespace dart 552 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698