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

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

Issue 1858283002: Initial SIMDBC interpreter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « runtime/vm/debugger_dbc.cc ('k') | runtime/vm/disassembler_dbc.cc » ('j') | 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) 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/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/intermediate_language.h" 10 #include "vm/intermediate_language.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 653
654 virtual const char* ArgumentsToCString() const { 654 virtual const char* ArgumentsToCString() const {
655 return Thread::Current()->zone()->PrintToString( 655 return Thread::Current()->zone()->PrintToString(
656 "%" Pd "", object_table_index_); 656 "%" Pd "", object_table_index_);
657 } 657 }
658 658
659 void Execute(DeoptContext* deopt_context, intptr_t* dest_addr) { 659 void Execute(DeoptContext* deopt_context, intptr_t* dest_addr) {
660 Function& function = Function::Handle(deopt_context->zone()); 660 Function& function = Function::Handle(deopt_context->zone());
661 function ^= deopt_context->ObjectAt(object_table_index_); 661 function ^= deopt_context->ObjectAt(object_table_index_);
662 if (function.IsNull()) { 662 if (function.IsNull()) {
663 // There are no deoptimization stubs on DBC.
664 #if !defined(TARGET_ARCH_DBC)
663 *reinterpret_cast<RawObject**>(dest_addr) = deopt_context->is_lazy_deopt() 665 *reinterpret_cast<RawObject**>(dest_addr) = deopt_context->is_lazy_deopt()
664 ? StubCode::DeoptimizeLazy_entry()->code() 666 ? StubCode::DeoptimizeLazy_entry()->code()
665 : StubCode::Deoptimize_entry()->code(); 667 : StubCode::Deoptimize_entry()->code();
668 #endif
666 return; 669 return;
667 } 670 }
668 671
672 #if !defined(TARGET_ARCH_DBC)
669 // We don't always have the Code object for the frame's corresponding 673 // We don't always have the Code object for the frame's corresponding
670 // unoptimized code as it may have been collected. Use a stub as the pc 674 // unoptimized code as it may have been collected. Use a stub as the pc
671 // marker until we can recreate that Code object during deferred 675 // marker until we can recreate that Code object during deferred
672 // materialization to maintain the invariant that Dart frames always have 676 // materialization to maintain the invariant that Dart frames always have
673 // a pc marker. 677 // a pc marker.
674 *reinterpret_cast<RawObject**>(dest_addr) = 678 *reinterpret_cast<RawObject**>(dest_addr) =
675 StubCode::FrameAwaitingMaterialization_entry()->code(); 679 StubCode::FrameAwaitingMaterialization_entry()->code();
680 #endif
676 deopt_context->DeferPcMarkerMaterialization(object_table_index_, dest_addr); 681 deopt_context->DeferPcMarkerMaterialization(object_table_index_, dest_addr);
677 } 682 }
678 683
679 private: 684 private:
680 intptr_t object_table_index_; 685 intptr_t object_table_index_;
681 686
682 DISALLOW_COPY_AND_ASSIGN(DeoptPcMarkerInstr); 687 DISALLOW_COPY_AND_ASSIGN(DeoptPcMarkerInstr);
683 }; 688 };
684 689
685 690
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 Smi* offset, 1319 Smi* offset,
1315 TypedData* info, 1320 TypedData* info,
1316 Smi* reason) { 1321 Smi* reason) {
1317 intptr_t i = index * kEntrySize; 1322 intptr_t i = index * kEntrySize;
1318 *offset ^= table.At(i); 1323 *offset ^= table.At(i);
1319 *info ^= table.At(i + 1); 1324 *info ^= table.At(i + 1);
1320 *reason ^= table.At(i + 2); 1325 *reason ^= table.At(i + 2);
1321 } 1326 }
1322 1327
1323 } // namespace dart 1328 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger_dbc.cc ('k') | runtime/vm/disassembler_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698