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

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

Issue 10416031: Convert CurrentContext and StoreContext to locations code generation scheme (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 GenerateCall(token_index, 583 GenerateCall(token_index,
584 try_index, 584 try_index,
585 &StubCode::CallStaticFunctionLabel(), 585 &StubCode::CallStaticFunctionLabel(),
586 PcDescriptors::kFuncCall); 586 PcDescriptors::kFuncCall);
587 __ Drop(argument_count); 587 __ Drop(argument_count);
588 } 588 }
589 589
590 590
591 void FlowGraphCompiler::VisitCurrentContext(CurrentContextComp* comp) { 591 void FlowGraphCompiler::VisitCurrentContext(CurrentContextComp* comp) {
592 __ movq(RAX, CTX); 592 // Moved to intermediate_language_x64.cc.
593 UNREACHABLE();
593 } 594 }
594 595
595 596
596 void FlowGraphCompiler::VisitStoreContext(StoreContextComp* comp) { 597 void FlowGraphCompiler::VisitStoreContext(StoreContextComp* comp) {
597 LoadValue(CTX, comp->value()); 598 // Moved to intermediate_language_x64.cc.
599 UNREACHABLE();
598 } 600 }
599 601
600 602
601 void FlowGraphCompiler::VisitClosureCall(ClosureCallComp* comp) { 603 void FlowGraphCompiler::VisitClosureCall(ClosureCallComp* comp) {
602 // Moved to intermediate_language_x64.cc. 604 // Moved to intermediate_language_x64.cc.
603 UNREACHABLE(); 605 UNREACHABLE();
604 } 606 }
605 607
606 608
607 void FlowGraphCompiler::VisitInstanceCall(InstanceCallComp* comp) { 609 void FlowGraphCompiler::VisitInstanceCall(InstanceCallComp* comp) {
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 1801
1800 1802
1801 void FlowGraphCompiler::FinalizeComments(const Code& code) { 1803 void FlowGraphCompiler::FinalizeComments(const Code& code) {
1802 code.set_comments(assembler_->GetCodeComments()); 1804 code.set_comments(assembler_->GetCodeComments());
1803 } 1805 }
1804 1806
1805 1807
1806 } // namespace dart 1808 } // namespace dart
1807 1809
1808 #endif // defined TARGET_ARCH_X64 1810 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | runtime/vm/intermediate_language_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698