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

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

Issue 2392613002: Reapply "Lazy deopt without code patching." (Closed)
Patch Set: . Created 4 years, 2 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_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 __ sw(V0, Address(FP, (slot_base - i) * kWordSize)); 1119 __ sw(V0, Address(FP, (slot_base - i) * kWordSize));
1120 } 1120 }
1121 } 1121 }
1122 } 1122 }
1123 1123
1124 EndCodeSourceRange(TokenPosition::kDartCodePrologue); 1124 EndCodeSourceRange(TokenPosition::kDartCodePrologue);
1125 VisitBlocks(); 1125 VisitBlocks();
1126 1126
1127 __ break_(0); 1127 __ break_(0);
1128 GenerateDeferredCode(); 1128 GenerateDeferredCode();
1129
1130 BeginCodeSourceRange();
1131 if (is_optimizing() && !FLAG_precompiled_mode) {
1132 // Leave enough space for patching in case of lazy deoptimization.
1133 for (intptr_t i = 0;
1134 i < CallPattern::kDeoptCallLengthInInstructions;
1135 ++i) {
1136 __ nop();
1137 }
1138 lazy_deopt_return_pc_offset_ = assembler()->CodeSize();
1139 __ Branch(*StubCode::DeoptimizeLazyFromReturn_entry());
1140 lazy_deopt_throw_pc_offset_ = assembler()->CodeSize();
1141 __ Branch(*StubCode::DeoptimizeLazyFromThrow_entry());
1142 }
1143 EndCodeSourceRange(TokenPosition::kDartCodeEpilogue);
1144 } 1129 }
1145 1130
1146 1131
1147 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, 1132 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos,
1148 const StubEntry& stub_entry, 1133 const StubEntry& stub_entry,
1149 RawPcDescriptors::Kind kind, 1134 RawPcDescriptors::Kind kind,
1150 LocationSummary* locs) { 1135 LocationSummary* locs) {
1151 __ BranchLinkPatchable(stub_entry); 1136 __ BranchLinkPatchable(stub_entry);
1152 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); 1137 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos);
1153 RecordSafepoint(locs); 1138 RecordSafepoint(locs);
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 __ AddImmediate(SP, kDoubleSize); 1931 __ AddImmediate(SP, kDoubleSize);
1947 } 1932 }
1948 1933
1949 1934
1950 #undef __ 1935 #undef __
1951 1936
1952 1937
1953 } // namespace dart 1938 } // namespace dart
1954 1939
1955 #endif // defined TARGET_ARCH_MIPS 1940 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698