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

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

Issue 10038032: Add node id for return node. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698