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

Side by Side Diff: vm/intermediate_language_x64.cc

Issue 10833068: Refactor building arguments for InstanceCall and fix deoptimization environment for pushed argument… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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
« vm/flow_graph_builder.cc ('K') | « vm/intermediate_language_ia32.cc ('k') | no next file » | 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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 __ movsd(FieldAddress(result, Double::value_offset()), XMM0); 2037 __ movsd(FieldAddress(result, Double::value_offset()), XMM0);
2038 } 2038 }
2039 2039
2040 2040
2041 LocationSummary* PolymorphicInstanceCallComp::MakeLocationSummary() const { 2041 LocationSummary* PolymorphicInstanceCallComp::MakeLocationSummary() const {
2042 return MakeCallSummary(); 2042 return MakeCallSummary();
2043 } 2043 }
2044 2044
2045 2045
2046 void PolymorphicInstanceCallComp::EmitNativeCode(FlowGraphCompiler* compiler) { 2046 void PolymorphicInstanceCallComp::EmitNativeCode(FlowGraphCompiler* compiler) {
2047 ASSERT(instance_call()->VerifyComputation());
2048 Label* deopt = compiler->AddDeoptStub(instance_call()->cid(), 2047 Label* deopt = compiler->AddDeoptStub(instance_call()->cid(),
2049 instance_call()->token_pos(), 2048 instance_call()->token_pos(),
2050 instance_call()->try_index(), 2049 instance_call()->try_index(),
2051 kDeoptPolymorphicInstanceCallTestFail); 2050 kDeoptPolymorphicInstanceCallTestFail);
2052 if (!HasICData() || (ic_data()->NumberOfChecks() == 0)) { 2051 if (!HasICData() || (ic_data()->NumberOfChecks() == 0)) {
2053 __ jmp(deopt); 2052 __ jmp(deopt);
2054 return; 2053 return;
2055 } 2054 }
2056 ASSERT(HasICData()); 2055 ASSERT(HasICData());
2057 ASSERT(ic_data()->num_args_tested() == 1); 2056 ASSERT(ic_data()->num_args_tested() == 1);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2195 ASSERT(locs()->out().reg() == RAX); 2194 ASSERT(locs()->out().reg() == RAX);
2196 __ CompareObject(locs()->out().reg(), compiler->bool_true()); 2195 __ CompareObject(locs()->out().reg(), compiler->bool_true());
2197 EmitBranchOnCondition(compiler, branch_condition); 2196 EmitBranchOnCondition(compiler, branch_condition);
2198 } 2197 }
2199 2198
2200 } // namespace dart 2199 } // namespace dart
2201 2200
2202 #undef __ 2201 #undef __
2203 2202
2204 #endif // defined TARGET_ARCH_X64 2203 #endif // defined TARGET_ARCH_X64
OLDNEW
« vm/flow_graph_builder.cc ('K') | « vm/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698