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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 6801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6812 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6812 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
6813 ASSERT(!compiler->is_optimizing()); | 6813 ASSERT(!compiler->is_optimizing()); |
6814 StubCode* stub_code = compiler->isolate()->stub_code(); | 6814 StubCode* stub_code = compiler->isolate()->stub_code(); |
6815 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); | 6815 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); |
6816 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 6816 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
6817 #if defined(DEBUG) | 6817 #if defined(DEBUG) |
6818 __ movl(EDX, Immediate(kInvalidObjectPointer)); | 6818 __ movl(EDX, Immediate(kInvalidObjectPointer)); |
6819 #endif | 6819 #endif |
6820 } | 6820 } |
6821 | 6821 |
| 6822 |
| 6823 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary( |
| 6824 Zone* zone, bool opt) const { |
| 6825 const intptr_t kNumInputs = 1; |
| 6826 const intptr_t kNumTemps = 0; |
| 6827 LocationSummary* locs = new(zone) LocationSummary( |
| 6828 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 6829 locs->set_in(0, Location::RegisterLocation(EAX)); |
| 6830 locs->set_out(0, Location::RegisterLocation(EAX)); |
| 6831 return locs; |
| 6832 } |
| 6833 |
| 6834 |
| 6835 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6836 const Register typed_data = locs()->in(0).reg(); |
| 6837 const Register result = locs()->out(0).reg(); |
| 6838 __ PushObject(Object::null_object()); |
| 6839 __ pushl(typed_data); |
| 6840 compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position. |
| 6841 deopt_id(), |
| 6842 kGrowRegExpStackRuntimeEntry, |
| 6843 1, |
| 6844 locs()); |
| 6845 __ Drop(1); |
| 6846 __ popl(result); |
| 6847 } |
| 6848 |
| 6849 |
6822 } // namespace dart | 6850 } // namespace dart |
6823 | 6851 |
6824 #undef __ | 6852 #undef __ |
6825 | 6853 |
6826 #endif // defined TARGET_ARCH_IA32 | 6854 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |