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

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.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_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 30 matching lines...) Expand all
41 __ call(&L); 41 __ call(&L);
42 const intptr_t offset = assem->CodeSize(); 42 const intptr_t offset = assem->CodeSize();
43 __ Bind(&L); 43 __ Bind(&L);
44 __ popl(EAX); 44 __ popl(EAX);
45 __ subl(EAX, 45 __ subl(EAX,
46 Immediate(offset - AssemblerMacros::kOffsetOfSavedPCfromEntrypoint)); 46 Immediate(offset - AssemblerMacros::kOffsetOfSavedPCfromEntrypoint));
47 __ movl(Address(EBP, -kWordSize), EAX); 47 __ movl(Address(EBP, -kWordSize), EAX);
48 __ popl(EAX); 48 __ popl(EAX);
49 } 49 }
50 __ call(&StubCode::DeoptimizeLabel()); 50 __ call(&StubCode::DeoptimizeLabel());
51 const intptr_t deopt_info_index = stub_ix; 51 set_pc_offset(assem->CodeSize());
52 compiler->pc_descriptors_list()->AddDeoptIndex(
53 compiler->assembler()->CodeSize(),
54 deopt_id(),
55 reason(),
56 deopt_info_index);
57 #undef __ 52 #undef __
58 } 53 }
59 54
60 55
61 #define __ assembler()-> 56 #define __ assembler()->
62 57
63 58
64 // Fall through if bool_register contains null. 59 // Fall through if bool_register contains null.
65 void FlowGraphCompiler::GenerateBoolToJump(Register bool_register, 60 void FlowGraphCompiler::GenerateBoolToJump(Register bool_register,
66 Label* is_true, 61 Label* is_true,
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 __ popl(ECX); 1372 __ popl(ECX);
1378 __ popl(EAX); 1373 __ popl(EAX);
1379 } 1374 }
1380 1375
1381 1376
1382 #undef __ 1377 #undef __
1383 1378
1384 } // namespace dart 1379 } // namespace dart
1385 1380
1386 #endif // defined TARGET_ARCH_IA32 1381 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698