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

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

Issue 1160063002: Remove unused pc descriptor types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added comment Created 5 years, 6 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_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.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_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 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 intptr_t deopt_id, 1349 intptr_t deopt_id,
1350 intptr_t token_pos, 1350 intptr_t token_pos,
1351 LocationSummary* locs) { 1351 LocationSummary* locs) {
1352 StubCode* stub_code = isolate()->stub_code(); 1352 StubCode* stub_code = isolate()->stub_code();
1353 __ LoadObject(EDX, arguments_descriptor); 1353 __ LoadObject(EDX, arguments_descriptor);
1354 // Do not use the code from the function, but let the code be patched so that 1354 // Do not use the code from the function, but let the code be patched so that
1355 // we can record the outgoing edges to other code. 1355 // we can record the outgoing edges to other code.
1356 GenerateDartCall(deopt_id, 1356 GenerateDartCall(deopt_id,
1357 token_pos, 1357 token_pos,
1358 &stub_code->CallStaticFunctionLabel(), 1358 &stub_code->CallStaticFunctionLabel(),
1359 RawPcDescriptors::kOptStaticCall, 1359 RawPcDescriptors::kOther,
1360 locs); 1360 locs);
1361 AddStaticCallTarget(function); 1361 AddStaticCallTarget(function);
1362 __ Drop(argument_count); 1362 __ Drop(argument_count);
1363 } 1363 }
1364 1364
1365 1365
1366 Condition FlowGraphCompiler::EmitEqualityRegConstCompare( 1366 Condition FlowGraphCompiler::EmitEqualityRegConstCompare(
1367 Register reg, 1367 Register reg,
1368 const Object& obj, 1368 const Object& obj,
1369 bool needs_number_check, 1369 bool needs_number_check,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 if (is_last_check) { 1537 if (is_last_check) {
1538 assembler()->j(NOT_EQUAL, deopt); 1538 assembler()->j(NOT_EQUAL, deopt);
1539 } else { 1539 } else {
1540 assembler()->j(NOT_EQUAL, &next_test); 1540 assembler()->j(NOT_EQUAL, &next_test);
1541 } 1541 }
1542 // Do not use the code from the function, but let the code be patched so 1542 // Do not use the code from the function, but let the code be patched so
1543 // that we can record the outgoing edges to other code. 1543 // that we can record the outgoing edges to other code.
1544 GenerateDartCall(deopt_id, 1544 GenerateDartCall(deopt_id,
1545 token_index, 1545 token_index,
1546 &stub_code->CallStaticFunctionLabel(), 1546 &stub_code->CallStaticFunctionLabel(),
1547 RawPcDescriptors::kOptStaticCall, 1547 RawPcDescriptors::kOther,
1548 locs); 1548 locs);
1549 const Function& function = *sorted[i].target; 1549 const Function& function = *sorted[i].target;
1550 AddStaticCallTarget(function); 1550 AddStaticCallTarget(function);
1551 __ Drop(argument_count); 1551 __ Drop(argument_count);
1552 if (!is_last_check) { 1552 if (!is_last_check) {
1553 assembler()->jmp(&match_found); 1553 assembler()->jmp(&match_found);
1554 } 1554 }
1555 assembler()->Bind(&next_test); 1555 assembler()->Bind(&next_test);
1556 } 1556 }
1557 assembler()->Bind(&match_found); 1557 assembler()->Bind(&match_found);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 __ movups(reg, Address(ESP, 0)); 1818 __ movups(reg, Address(ESP, 0));
1819 __ addl(ESP, Immediate(kFpuRegisterSize)); 1819 __ addl(ESP, Immediate(kFpuRegisterSize));
1820 } 1820 }
1821 1821
1822 1822
1823 #undef __ 1823 #undef __
1824 1824
1825 } // namespace dart 1825 } // namespace dart
1826 1826
1827 #endif // defined TARGET_ARCH_IA32 1827 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698