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

Side by Side Diff: vm/flow_graph_compiler_x64.cc

Issue 10173008: Simplify representation of stack frames. Remove the special types DartFrame/StubFrame and instead u… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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
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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 PcDescriptors::Kind kind) { 1663 PcDescriptors::Kind kind) {
1664 __ call(label); 1664 __ call(label);
1665 AddCurrentDescriptor(kind, AstNode::kNoId, token_index, try_index); 1665 AddCurrentDescriptor(kind, AstNode::kNoId, token_index, try_index);
1666 } 1666 }
1667 1667
1668 1668
1669 void FlowGraphCompiler::GenerateCallRuntime(intptr_t node_id, 1669 void FlowGraphCompiler::GenerateCallRuntime(intptr_t node_id,
1670 intptr_t token_index, 1670 intptr_t token_index,
1671 intptr_t try_index, 1671 intptr_t try_index,
1672 const RuntimeEntry& entry) { 1672 const RuntimeEntry& entry) {
1673 __ CallRuntimeFromDart(entry); 1673 __ CallRuntime(entry);
1674 AddCurrentDescriptor(PcDescriptors::kOther, node_id, token_index, try_index); 1674 AddCurrentDescriptor(PcDescriptors::kOther, node_id, token_index, try_index);
1675 } 1675 }
1676 1676
1677 1677
1678 // Uses current pc position and try-index. 1678 // Uses current pc position and try-index.
1679 void FlowGraphCompiler::AddCurrentDescriptor(PcDescriptors::Kind kind, 1679 void FlowGraphCompiler::AddCurrentDescriptor(PcDescriptors::Kind kind,
1680 intptr_t node_id, 1680 intptr_t node_id,
1681 intptr_t token_index, 1681 intptr_t token_index,
1682 intptr_t try_index) { 1682 intptr_t try_index) {
1683 pc_descriptors_list_->AddDescriptor(kind, 1683 pc_descriptors_list_->AddDescriptor(kind,
(...skipping 30 matching lines...) Expand all
1714 ASSERT(exception_handlers_list_ != NULL); 1714 ASSERT(exception_handlers_list_ != NULL);
1715 const ExceptionHandlers& handlers = ExceptionHandlers::Handle( 1715 const ExceptionHandlers& handlers = ExceptionHandlers::Handle(
1716 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint())); 1716 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint()));
1717 code.set_exception_handlers(handlers); 1717 code.set_exception_handlers(handlers);
1718 } 1718 }
1719 1719
1720 1720
1721 } // namespace dart 1721 } // namespace dart
1722 1722
1723 #endif // defined TARGET_ARCH_X64 1723 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698