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

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

Issue 1791613002: Enable background compilation of regexp methods. Regexp functions may use indirect goto instruction… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 9 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/compiler.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) 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 6543 matching lines...) Expand 10 before | Expand all | Expand 10 after
6554 6554
6555 return summary; 6555 return summary;
6556 } 6556 }
6557 6557
6558 6558
6559 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 6559 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
6560 Register target_reg = locs()->temp_slot(0)->reg(); 6560 Register target_reg = locs()->temp_slot(0)->reg();
6561 6561
6562 // Load code object from frame. 6562 // Load code object from frame.
6563 __ movl(target_reg, Address(EBP, kPcMarkerSlotFromFp * kWordSize)); 6563 __ movl(target_reg, Address(EBP, kPcMarkerSlotFromFp * kWordSize));
6564 // Load instructions entry point. 6564 // Load instructions object (active_instructions and Code::entry_point() may
6565 __ movl(target_reg, FieldAddress(target_reg, Code::entry_point_offset())); 6565 // not point to this instruction object any more; see Code::DisableDartCode).
6566 __ movl(target_reg,
6567 FieldAddress(target_reg, Code::saved_instructions_offset()));
6568 __ addl(target_reg, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
6566 6569
6567 // Add the offset. 6570 // Add the offset.
6568 Register offset_reg = locs()->in(0).reg(); 6571 Register offset_reg = locs()->in(0).reg();
6569 if (offset()->definition()->representation() == kTagged) { 6572 if (offset()->definition()->representation() == kTagged) {
6570 __ SmiUntag(offset_reg); 6573 __ SmiUntag(offset_reg);
6571 } 6574 }
6572 __ addl(target_reg, offset_reg); 6575 __ addl(target_reg, offset_reg);
6573 6576
6574 // Jump to the absolute address. 6577 // Jump to the absolute address.
6575 __ jmp(target_reg); 6578 __ jmp(target_reg);
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
6846 __ Drop(1); 6849 __ Drop(1);
6847 __ popl(result); 6850 __ popl(result);
6848 } 6851 }
6849 6852
6850 6853
6851 } // namespace dart 6854 } // namespace dart
6852 6855
6853 #undef __ 6856 #undef __
6854 6857
6855 #endif // defined TARGET_ARCH_IA32 6858 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698