| 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/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 // return pattern with a call to the debug stub. | 1013 // return pattern with a call to the debug stub. |
| 1014 __ nop(1); | 1014 __ nop(1); |
| 1015 __ nop(1); | 1015 __ nop(1); |
| 1016 __ nop(1); | 1016 __ nop(1); |
| 1017 __ nop(1); | 1017 __ nop(1); |
| 1018 __ nop(1); | 1018 __ nop(1); |
| 1019 __ nop(1); | 1019 __ nop(1); |
| 1020 __ nop(1); | 1020 __ nop(1); |
| 1021 __ nop(1); | 1021 __ nop(1); |
| 1022 AddCurrentDescriptor(PcDescriptors::kReturn, | 1022 AddCurrentDescriptor(PcDescriptors::kReturn, |
| 1023 AstNode::kNoId, | 1023 instr->node_id(), |
| 1024 instr->token_index(), | 1024 instr->token_index(), |
| 1025 CatchClauseNode::kInvalidTryIndex); // try-index. | 1025 CatchClauseNode::kInvalidTryIndex); // try-index. |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 | 1028 |
| 1029 void FlowGraphCompiler::VisitThrow(ThrowInstr* instr) { | 1029 void FlowGraphCompiler::VisitThrow(ThrowInstr* instr) { |
| 1030 LoadValue(RAX, instr->exception()); | 1030 LoadValue(RAX, instr->exception()); |
| 1031 __ pushq(RAX); | 1031 __ pushq(RAX); |
| 1032 GenerateCallRuntime(instr->node_id(), | 1032 GenerateCallRuntime(instr->node_id(), |
| 1033 instr->token_index(), | 1033 instr->token_index(), |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 ASSERT(exception_handlers_list_ != NULL); | 1392 ASSERT(exception_handlers_list_ != NULL); |
| 1393 const ExceptionHandlers& handlers = ExceptionHandlers::Handle( | 1393 const ExceptionHandlers& handlers = ExceptionHandlers::Handle( |
| 1394 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint())); | 1394 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint())); |
| 1395 code.set_exception_handlers(handlers); | 1395 code.set_exception_handlers(handlers); |
| 1396 } | 1396 } |
| 1397 | 1397 |
| 1398 | 1398 |
| 1399 } // namespace dart | 1399 } // namespace dart |
| 1400 | 1400 |
| 1401 #endif // defined TARGET_ARCH_X64 | 1401 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |