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

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

Issue 10982088: Remove deoptimization index PC descriptors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove code from an unrelated change. Created 8 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 | Annotate | Revision Log
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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 __ call(&L); 44 __ call(&L);
45 const intptr_t offset = assem->CodeSize(); 45 const intptr_t offset = assem->CodeSize();
46 __ Bind(&L); 46 __ Bind(&L);
47 __ popq(RAX); 47 __ popq(RAX);
48 __ subq(RAX, 48 __ subq(RAX,
49 Immediate(offset - AssemblerMacros::kOffsetOfSavedPCfromEntrypoint)); 49 Immediate(offset - AssemblerMacros::kOffsetOfSavedPCfromEntrypoint));
50 __ movq(Address(RBP, -kWordSize), RAX); 50 __ movq(Address(RBP, -kWordSize), RAX);
51 __ popq(RAX); // Restore RAX. 51 __ popq(RAX); // Restore RAX.
52 } 52 }
53 __ call(&StubCode::DeoptimizeLabel()); 53 __ call(&StubCode::DeoptimizeLabel());
54 const intptr_t deopt_info_index = stub_ix; 54 set_pc_offset(assem->CodeSize());
55 compiler->pc_descriptors_list()->AddDeoptIndex(
56 compiler->assembler()->CodeSize(),
57 deopt_id(),
58 reason(),
59 deopt_info_index);
60 __ int3(); 55 __ int3();
61 #undef __ 56 #undef __
62 } 57 }
63 58
64 59
65 #define __ assembler()-> 60 #define __ assembler()->
66 61
67 62
68 // Fall through if bool_register contains null. 63 // Fall through if bool_register contains null.
69 void FlowGraphCompiler::GenerateBoolToJump(Register bool_register, 64 void FlowGraphCompiler::GenerateBoolToJump(Register bool_register,
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { 1355 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) {
1361 __ Exchange(mem1, mem2); 1356 __ Exchange(mem1, mem2);
1362 } 1357 }
1363 1358
1364 1359
1365 #undef __ 1360 #undef __
1366 1361
1367 } // namespace dart 1362 } // namespace dart
1368 1363
1369 #endif // defined TARGET_ARCH_X64 1364 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698