OLD | NEW |
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/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 6769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6780 } | 6780 } |
6781 | 6781 |
6782 | 6782 |
6783 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6783 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
6784 ASSERT(!compiler->is_optimizing()); | 6784 ASSERT(!compiler->is_optimizing()); |
6785 __ Call(*StubCode::DebugStepCheck_entry()); | 6785 __ Call(*StubCode::DebugStepCheck_entry()); |
6786 compiler->EmitCallsiteMetaData(token_pos(), deopt_id_, stub_kind_, locs()); | 6786 compiler->EmitCallsiteMetaData(token_pos(), deopt_id_, stub_kind_, locs()); |
6787 } | 6787 } |
6788 | 6788 |
6789 | 6789 |
6790 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(Zone* zone, | |
6791 bool opt) const { | |
6792 const intptr_t kNumInputs = 1; | |
6793 const intptr_t kNumTemps = 0; | |
6794 LocationSummary* locs = new (zone) | |
6795 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); | |
6796 locs->set_in(0, Location::RegisterLocation(EAX)); | |
6797 locs->set_out(0, Location::RegisterLocation(EAX)); | |
6798 return locs; | |
6799 } | |
6800 | |
6801 | |
6802 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | |
6803 const Register typed_data = locs()->in(0).reg(); | |
6804 const Register result = locs()->out(0).reg(); | |
6805 __ PushObject(Object::null_object()); | |
6806 __ pushl(typed_data); | |
6807 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), | |
6808 kGrowRegExpStackRuntimeEntry, 1, locs()); | |
6809 __ Drop(1); | |
6810 __ popl(result); | |
6811 } | |
6812 | |
6813 | |
6814 } // namespace dart | 6790 } // namespace dart |
6815 | 6791 |
6816 #undef __ | 6792 #undef __ |
6817 | 6793 |
6818 #endif // defined TARGET_ARCH_IA32 | 6794 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |