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

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

Issue 1589643002: Source positions for constructors and lots of async machinery (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 __ Bind(entry_label()); 1668 __ Bind(entry_label());
1669 const Code& stub = Code::ZoneHandle( 1669 const Code& stub = Code::ZoneHandle(
1670 compiler->zone(), StubCode::GetAllocationStubForClass(cls_)); 1670 compiler->zone(), StubCode::GetAllocationStubForClass(cls_));
1671 const StubEntry stub_entry(stub); 1671 const StubEntry stub_entry(stub);
1672 1672
1673 LocationSummary* locs = instruction_->locs(); 1673 LocationSummary* locs = instruction_->locs();
1674 1674
1675 locs->live_registers()->Remove(Location::RegisterLocation(result_)); 1675 locs->live_registers()->Remove(Location::RegisterLocation(result_));
1676 1676
1677 compiler->SaveLiveRegisters(locs); 1677 compiler->SaveLiveRegisters(locs);
1678 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. 1678 compiler->GenerateCall(Token::kNoSourcePos, // No token position.
1679 stub_entry, 1679 stub_entry,
1680 RawPcDescriptors::kOther, 1680 RawPcDescriptors::kOther,
1681 locs); 1681 locs);
1682 compiler->AddStubCallTarget(stub); 1682 compiler->AddStubCallTarget(stub);
1683 __ MoveRegister(result_, EAX); 1683 __ MoveRegister(result_, EAX);
1684 compiler->RestoreLiveRegisters(locs); 1684 compiler->RestoreLiveRegisters(locs);
1685 __ jmp(exit_label()); 1685 __ jmp(exit_label());
1686 } 1686 }
1687 1687
1688 static void Allocate(FlowGraphCompiler* compiler, 1688 static void Allocate(FlowGraphCompiler* compiler,
(...skipping 4855 matching lines...) Expand 10 before | Expand all | Expand 10 after
6544 6544
6545 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 6545 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
6546 if (!compiler->is_optimizing()) { 6546 if (!compiler->is_optimizing()) {
6547 if (FLAG_emit_edge_counters) { 6547 if (FLAG_emit_edge_counters) {
6548 compiler->EmitEdgeCounter(block()->preorder_number()); 6548 compiler->EmitEdgeCounter(block()->preorder_number());
6549 } 6549 }
6550 // Add a deoptimization descriptor for deoptimizing instructions that 6550 // Add a deoptimization descriptor for deoptimizing instructions that
6551 // may be inserted before this instruction. 6551 // may be inserted before this instruction.
6552 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, 6552 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
6553 GetDeoptId(), 6553 GetDeoptId(),
6554 Scanner::kNoSourcePos); 6554 Token::kNoSourcePos);
6555 } 6555 }
6556 if (HasParallelMove()) { 6556 if (HasParallelMove()) {
6557 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); 6557 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move());
6558 } 6558 }
6559 6559
6560 // We can fall through if the successor is the next block in the list. 6560 // We can fall through if the successor is the next block in the list.
6561 // Otherwise, we need a jump. 6561 // Otherwise, we need a jump.
6562 if (!compiler->CanFallThroughTo(successor())) { 6562 if (!compiler->CanFallThroughTo(successor())) {
6563 __ jmp(compiler->GetJumpLabel(successor())); 6563 __ jmp(compiler->GetJumpLabel(successor()));
6564 } 6564 }
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
6855 locs->set_out(0, Location::RegisterLocation(EAX)); 6855 locs->set_out(0, Location::RegisterLocation(EAX));
6856 return locs; 6856 return locs;
6857 } 6857 }
6858 6858
6859 6859
6860 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 6860 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
6861 const Register typed_data = locs()->in(0).reg(); 6861 const Register typed_data = locs()->in(0).reg();
6862 const Register result = locs()->out(0).reg(); 6862 const Register result = locs()->out(0).reg();
6863 __ PushObject(Object::null_object()); 6863 __ PushObject(Object::null_object());
6864 __ pushl(typed_data); 6864 __ pushl(typed_data);
6865 compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position. 6865 compiler->GenerateRuntimeCall(Token::kNoSourcePos, // No token position.
6866 deopt_id(), 6866 deopt_id(),
6867 kGrowRegExpStackRuntimeEntry, 6867 kGrowRegExpStackRuntimeEntry,
6868 1, 6868 1,
6869 locs()); 6869 locs());
6870 __ Drop(1); 6870 __ Drop(1);
6871 __ popl(result); 6871 __ popl(result);
6872 } 6872 }
6873 6873
6874 6874
6875 } // namespace dart 6875 } // namespace dart
6876 6876
6877 #undef __ 6877 #undef __
6878 6878
6879 #endif // defined TARGET_ARCH_IA32 6879 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698