Chromium Code Reviews| 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/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/intermediate_language.h" | 10 #include "vm/intermediate_language.h" |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 654 | 654 |
| 655 virtual const char* ArgumentsToCString() const { | 655 virtual const char* ArgumentsToCString() const { |
| 656 return Thread::Current()->zone()->PrintToString( | 656 return Thread::Current()->zone()->PrintToString( |
| 657 "%" Pd "", object_table_index_); | 657 "%" Pd "", object_table_index_); |
| 658 } | 658 } |
| 659 | 659 |
| 660 void Execute(DeoptContext* deopt_context, intptr_t* dest_addr) { | 660 void Execute(DeoptContext* deopt_context, intptr_t* dest_addr) { |
| 661 Function& function = Function::Handle(deopt_context->zone()); | 661 Function& function = Function::Handle(deopt_context->zone()); |
| 662 function ^= deopt_context->ObjectAt(object_table_index_); | 662 function ^= deopt_context->ObjectAt(object_table_index_); |
| 663 if (function.IsNull()) { | 663 if (function.IsNull()) { |
| 664 #if !defined(TARGET_ARCH_DBC) | |
|
zra
2016/04/08 22:37:35
Personal note. Stopping here.
Vyacheslav Egorov (Google)
2016/04/11 10:49:11
Acknowledged.
| |
| 664 *reinterpret_cast<RawObject**>(dest_addr) = deopt_context->is_lazy_deopt() | 665 *reinterpret_cast<RawObject**>(dest_addr) = deopt_context->is_lazy_deopt() |
| 665 ? StubCode::DeoptimizeLazy_entry()->code() | 666 ? StubCode::DeoptimizeLazy_entry()->code() |
| 666 : StubCode::Deoptimize_entry()->code(); | 667 : StubCode::Deoptimize_entry()->code(); |
| 668 #endif | |
| 667 return; | 669 return; |
| 668 } | 670 } |
| 669 | 671 |
| 670 *dest_addr = reinterpret_cast<intptr_t>(Object::null()); | 672 *dest_addr = reinterpret_cast<intptr_t>(Object::null()); |
| 671 deopt_context->DeferPcMarkerMaterialization( | 673 deopt_context->DeferPcMarkerMaterialization( |
| 672 object_table_index_, dest_addr); | 674 object_table_index_, dest_addr); |
| 673 } | 675 } |
| 674 | 676 |
| 675 private: | 677 private: |
| 676 intptr_t object_table_index_; | 678 intptr_t object_table_index_; |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1310 Smi* offset, | 1312 Smi* offset, |
| 1311 TypedData* info, | 1313 TypedData* info, |
| 1312 Smi* reason) { | 1314 Smi* reason) { |
| 1313 intptr_t i = index * kEntrySize; | 1315 intptr_t i = index * kEntrySize; |
| 1314 *offset ^= table.At(i); | 1316 *offset ^= table.At(i); |
| 1315 *info ^= table.At(i + 1); | 1317 *info ^= table.At(i + 1); |
| 1316 *reason ^= table.At(i + 2); | 1318 *reason ^= table.At(i + 2); |
| 1317 } | 1319 } |
| 1318 | 1320 |
| 1319 } // namespace dart | 1321 } // namespace dart |
| OLD | NEW |