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

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

Issue 10912146: Finish implementing lazy deoptimization (ia32, x64). Ran tests with --deoptimize-alot. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart_api_impl.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 VisitBlocks(); 1047 VisitBlocks();
1048 1048
1049 __ int3(); 1049 __ int3();
1050 GenerateDeferredCode(); 1050 GenerateDeferredCode();
1051 // Emit function patching code. This will be swapped with the first 5 bytes 1051 // Emit function patching code. This will be swapped with the first 5 bytes
1052 // at entry point. 1052 // at entry point.
1053 AddCurrentDescriptor(PcDescriptors::kPatchCode, 1053 AddCurrentDescriptor(PcDescriptors::kPatchCode,
1054 Isolate::kNoDeoptId, 1054 Isolate::kNoDeoptId,
1055 0); // No token position. 1055 0); // No token position.
1056 __ jmp(&StubCode::FixCallersTargetLabel()); 1056 __ jmp(&StubCode::FixCallersTargetLabel());
1057 AddCurrentDescriptor(PcDescriptors::kLazyDeoptJump,
1058 Isolate::kNoDeoptId,
1059 0); // No token position.
1060 __ jmp(&StubCode::DeoptimizeLazyLabel());
1057 } 1061 }
1058 1062
1059 1063
1060 void FlowGraphCompiler::GenerateCall(intptr_t token_pos, 1064 void FlowGraphCompiler::GenerateCall(intptr_t token_pos,
1061 const ExternalLabel* label, 1065 const ExternalLabel* label,
1062 PcDescriptors::Kind kind, 1066 PcDescriptors::Kind kind,
1063 LocationSummary* locs) { 1067 LocationSummary* locs) {
1064 ASSERT(!IsLeaf()); 1068 ASSERT(!IsLeaf());
1065 __ call(label); 1069 __ call(label);
1066 AddCurrentDescriptor(kind, Isolate::kNoDeoptId, token_pos); 1070 AddCurrentDescriptor(kind, Isolate::kNoDeoptId, token_pos);
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 __ popl(ECX); 1380 __ popl(ECX);
1377 __ popl(EAX); 1381 __ popl(EAX);
1378 } 1382 }
1379 1383
1380 1384
1381 #undef __ 1385 #undef __
1382 1386
1383 } // namespace dart 1387 } // namespace dart
1384 1388
1385 #endif // defined TARGET_ARCH_IA32 1389 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698