| 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/globals.h" // Needed here to get TARGET_ARCH_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/code_generator.h" | 8 #include "vm/code_generator.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 2678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2689 const ExternalLabel* ext_label, | 2689 const ExternalLabel* ext_label, |
| 2690 PcDescriptors::Kind desc_kind) { | 2690 PcDescriptors::Kind desc_kind) { |
| 2691 __ call(ext_label); | 2691 __ call(ext_label); |
| 2692 AddCurrentDescriptor(desc_kind, AstNode::kNoId, token_index); | 2692 AddCurrentDescriptor(desc_kind, AstNode::kNoId, token_index); |
| 2693 } | 2693 } |
| 2694 | 2694 |
| 2695 | 2695 |
| 2696 void CodeGenerator::GenerateCallRuntime(intptr_t node_id, | 2696 void CodeGenerator::GenerateCallRuntime(intptr_t node_id, |
| 2697 intptr_t token_index, | 2697 intptr_t token_index, |
| 2698 const RuntimeEntry& entry) { | 2698 const RuntimeEntry& entry) { |
| 2699 __ CallRuntimeFromDart(entry); | 2699 __ CallRuntime(entry); |
| 2700 AddCurrentDescriptor(PcDescriptors::kOther, node_id, token_index); | 2700 AddCurrentDescriptor(PcDescriptors::kOther, node_id, token_index); |
| 2701 } | 2701 } |
| 2702 | 2702 |
| 2703 | 2703 |
| 2704 void CodeGenerator::MarkDeoptPoint(intptr_t node_id, | 2704 void CodeGenerator::MarkDeoptPoint(intptr_t node_id, |
| 2705 intptr_t token_index) { | 2705 intptr_t token_index) { |
| 2706 ASSERT(node_id != AstNode::kNoId); | 2706 ASSERT(node_id != AstNode::kNoId); |
| 2707 AddCurrentDescriptor(PcDescriptors::kDeopt, node_id, token_index); | 2707 AddCurrentDescriptor(PcDescriptors::kDeopt, node_id, token_index); |
| 2708 } | 2708 } |
| 2709 | 2709 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2728 const Error& error = Error::Handle( | 2728 const Error& error = Error::Handle( |
| 2729 Parser::FormatError(script, token_index, "Error", format, args)); | 2729 Parser::FormatError(script, token_index, "Error", format, args)); |
| 2730 va_end(args); | 2730 va_end(args); |
| 2731 Isolate::Current()->long_jump_base()->Jump(1, error); | 2731 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 2732 UNREACHABLE(); | 2732 UNREACHABLE(); |
| 2733 } | 2733 } |
| 2734 | 2734 |
| 2735 } // namespace dart | 2735 } // namespace dart |
| 2736 | 2736 |
| 2737 #endif // defined TARGET_ARCH_X64 | 2737 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |