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

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

Issue 1740503002: Build CodeSourceMap for each code object (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_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/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 isolate()->object_store()->empty_context())); 1131 isolate()->object_store()->empty_context()));
1132 __ movl(Address(EBP, (slot_base - i) * kWordSize), raw_empty_context); 1132 __ movl(Address(EBP, (slot_base - i) * kWordSize), raw_empty_context);
1133 } 1133 }
1134 } else { 1134 } else {
1135 ASSERT(num_locals > 1); 1135 ASSERT(num_locals > 1);
1136 __ movl(Address(EBP, (slot_base - i) * kWordSize), EAX); 1136 __ movl(Address(EBP, (slot_base - i) * kWordSize), EAX);
1137 } 1137 }
1138 } 1138 }
1139 } 1139 }
1140 1140
1141 EndCodeSourceRange(TokenPosition::kDartCodePrologue);
1141 ASSERT(!block_order().is_empty()); 1142 ASSERT(!block_order().is_empty());
1142 VisitBlocks(); 1143 VisitBlocks();
1143 1144
1144 __ int3(); 1145 __ int3();
1145 GenerateDeferredCode(); 1146 GenerateDeferredCode();
1146 1147
1148 BeginCodeSourceRange();
1147 if (is_optimizing() && !FLAG_precompiled_mode) { 1149 if (is_optimizing() && !FLAG_precompiled_mode) {
1148 // Leave enough space for patching in case of lazy deoptimization from 1150 // Leave enough space for patching in case of lazy deoptimization from
1149 // deferred code. 1151 // deferred code.
1150 __ nop(CallPattern::pattern_length_in_bytes()); 1152 __ nop(CallPattern::pattern_length_in_bytes());
1151 lazy_deopt_pc_offset_ = assembler()->CodeSize(); 1153 lazy_deopt_pc_offset_ = assembler()->CodeSize();
1152 __ Jmp(*StubCode::DeoptimizeLazy_entry()); 1154 __ Jmp(*StubCode::DeoptimizeLazy_entry());
1153 } 1155 }
1156 EndCodeSourceRange(TokenPosition::kDartCodeEpilogue);
1154 } 1157 }
1155 1158
1156 1159
1157 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, 1160 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos,
1158 const StubEntry& stub_entry, 1161 const StubEntry& stub_entry,
1159 RawPcDescriptors::Kind kind, 1162 RawPcDescriptors::Kind kind,
1160 LocationSummary* locs) { 1163 LocationSummary* locs) {
1161 __ Call(stub_entry); 1164 __ Call(stub_entry);
1162 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); 1165 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos);
1163 RecordSafepoint(locs); 1166 RecordSafepoint(locs);
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 __ movups(reg, Address(ESP, 0)); 1849 __ movups(reg, Address(ESP, 0));
1847 __ addl(ESP, Immediate(kFpuRegisterSize)); 1850 __ addl(ESP, Immediate(kFpuRegisterSize));
1848 } 1851 }
1849 1852
1850 1853
1851 #undef __ 1854 #undef __
1852 1855
1853 } // namespace dart 1856 } // namespace dart
1854 1857
1855 #endif // defined TARGET_ARCH_IA32 1858 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698