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

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

Issue 2892793004: Remove unused variable (Closed)
Patch Set: x64 Created 3 years, 7 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
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 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 1449
1450 void FlowGraphCompiler::EmitTestAndCallLoadCid() { 1450 void FlowGraphCompiler::EmitTestAndCallLoadCid() {
1451 __ LoadClassId(EDI, EAX); 1451 __ LoadClassId(EDI, EAX);
1452 } 1452 }
1453 1453
1454 1454
1455 int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label, 1455 int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label,
1456 const CidRange& range, 1456 const CidRange& range,
1457 int bias) { 1457 int bias) {
1458 intptr_t cid_start = range.cid_start; 1458 intptr_t cid_start = range.cid_start;
1459 intptr_t cid_end = range.cid_end;
1460 if (range.IsSingleCid()) { 1459 if (range.IsSingleCid()) {
1461 __ cmpl(EDI, Immediate(cid_start - bias)); 1460 __ cmpl(EDI, Immediate(cid_start - bias));
1462 __ j(NOT_EQUAL, next_label); 1461 __ j(NOT_EQUAL, next_label);
1463 } else { 1462 } else {
1464 __ addl(EDI, Immediate(bias - cid_start)); 1463 __ addl(EDI, Immediate(bias - cid_start));
1465 bias = cid_start; 1464 bias = cid_start;
1466 __ cmpl(EDI, Immediate(range.Extent())); 1465 __ cmpl(EDI, Immediate(range.Extent()));
1467 __ j(ABOVE, next_label); // Unsigned higher. 1466 __ j(ABOVE, next_label); // Unsigned higher.
1468 } 1467 }
1469 return bias; 1468 return bias;
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 __ movups(reg, Address(ESP, 0)); 1728 __ movups(reg, Address(ESP, 0));
1730 __ addl(ESP, Immediate(kFpuRegisterSize)); 1729 __ addl(ESP, Immediate(kFpuRegisterSize));
1731 } 1730 }
1732 1731
1733 1732
1734 #undef __ 1733 #undef __
1735 1734
1736 } // namespace dart 1735 } // namespace dart
1737 1736
1738 #endif // defined TARGET_ARCH_IA32 1737 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698