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/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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 6139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6150 compiler->SetNeedsStacktrace(catch_try_index()); | 6150 compiler->SetNeedsStacktrace(catch_try_index()); |
6151 compiler->GenerateRuntimeCall(token_pos(), | 6151 compiler->GenerateRuntimeCall(token_pos(), |
6152 deopt_id(), | 6152 deopt_id(), |
6153 kReThrowRuntimeEntry, | 6153 kReThrowRuntimeEntry, |
6154 2, | 6154 2, |
6155 locs()); | 6155 locs()); |
6156 __ int3(); | 6156 __ int3(); |
6157 } | 6157 } |
6158 | 6158 |
6159 | 6159 |
| 6160 LocationSummary* StopInstr::MakeLocationSummary(Zone* zone, |
| 6161 bool opt) const { |
| 6162 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
| 6163 } |
| 6164 |
| 6165 |
| 6166 void StopInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6167 __ Stop(message()); |
| 6168 } |
| 6169 |
| 6170 |
6160 void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6171 void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
6161 if (!compiler->CanFallThroughTo(normal_entry())) { | 6172 if (!compiler->CanFallThroughTo(normal_entry())) { |
6162 __ jmp(compiler->GetJumpLabel(normal_entry())); | 6173 __ jmp(compiler->GetJumpLabel(normal_entry())); |
6163 } | 6174 } |
6164 } | 6175 } |
6165 | 6176 |
6166 | 6177 |
6167 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 6178 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
6168 bool opt) const { | 6179 bool opt) const { |
6169 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 6180 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6439 __ Drop(1); | 6450 __ Drop(1); |
6440 __ popq(result); | 6451 __ popq(result); |
6441 } | 6452 } |
6442 | 6453 |
6443 | 6454 |
6444 } // namespace dart | 6455 } // namespace dart |
6445 | 6456 |
6446 #undef __ | 6457 #undef __ |
6447 | 6458 |
6448 #endif // defined TARGET_ARCH_X64 | 6459 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |