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

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

Issue 144343002: Rename kDummyTokenIndex to kNoSourcePos (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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/flow_graph_compiler_mips.cc ('k') | runtime/vm/intermediate_language.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_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 "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 } 1440 }
1441 1441
1442 if (needs_number_check) { 1442 if (needs_number_check) {
1443 __ pushq(reg); 1443 __ pushq(reg);
1444 __ PushObject(obj, PP); 1444 __ PushObject(obj, PP);
1445 if (is_optimizing()) { 1445 if (is_optimizing()) {
1446 __ CallPatchable(&StubCode::OptimizedIdenticalWithNumberCheckLabel()); 1446 __ CallPatchable(&StubCode::OptimizedIdenticalWithNumberCheckLabel());
1447 } else { 1447 } else {
1448 __ CallPatchable(&StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); 1448 __ CallPatchable(&StubCode::UnoptimizedIdenticalWithNumberCheckLabel());
1449 } 1449 }
1450 if (token_pos != Scanner::kDummyTokenIndex) { 1450 if (token_pos != Scanner::kNoSourcePos) {
1451 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, 1451 AddCurrentDescriptor(PcDescriptors::kRuntimeCall,
1452 Isolate::kNoDeoptId, 1452 Isolate::kNoDeoptId,
1453 token_pos); 1453 token_pos);
1454 } 1454 }
1455 __ popq(reg); // Discard constant. 1455 __ popq(reg); // Discard constant.
1456 __ popq(reg); // Restore 'reg'. 1456 __ popq(reg); // Restore 'reg'.
1457 return; 1457 return;
1458 } 1458 }
1459 1459
1460 __ CompareObject(reg, obj, PP); 1460 __ CompareObject(reg, obj, PP);
1461 } 1461 }
1462 1462
1463 1463
1464 void FlowGraphCompiler::EmitEqualityRegRegCompare(Register left, 1464 void FlowGraphCompiler::EmitEqualityRegRegCompare(Register left,
1465 Register right, 1465 Register right,
1466 bool needs_number_check, 1466 bool needs_number_check,
1467 intptr_t token_pos) { 1467 intptr_t token_pos) {
1468 if (needs_number_check) { 1468 if (needs_number_check) {
1469 __ pushq(left); 1469 __ pushq(left);
1470 __ pushq(right); 1470 __ pushq(right);
1471 if (is_optimizing()) { 1471 if (is_optimizing()) {
1472 __ CallPatchable(&StubCode::OptimizedIdenticalWithNumberCheckLabel()); 1472 __ CallPatchable(&StubCode::OptimizedIdenticalWithNumberCheckLabel());
1473 } else { 1473 } else {
1474 __ CallPatchable(&StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); 1474 __ CallPatchable(&StubCode::UnoptimizedIdenticalWithNumberCheckLabel());
1475 } 1475 }
1476 if (token_pos != Scanner::kDummyTokenIndex) { 1476 if (token_pos != Scanner::kNoSourcePos) {
1477 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, 1477 AddCurrentDescriptor(PcDescriptors::kRuntimeCall,
1478 Isolate::kNoDeoptId, 1478 Isolate::kNoDeoptId,
1479 token_pos); 1479 token_pos);
1480 } 1480 }
1481 // Stub returns result in flags (result of a cmpl, we need ZF computed). 1481 // Stub returns result in flags (result of a cmpl, we need ZF computed).
1482 __ popq(right); 1482 __ popq(right);
1483 __ popq(left); 1483 __ popq(left);
1484 } else { 1484 } else {
1485 __ cmpl(left, right); 1485 __ cmpl(left, right);
1486 } 1486 }
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 __ movups(reg, Address(RSP, 0)); 1851 __ movups(reg, Address(RSP, 0));
1852 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1852 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1853 } 1853 }
1854 1854
1855 1855
1856 #undef __ 1856 #undef __
1857 1857
1858 } // namespace dart 1858 } // namespace dart
1859 1859
1860 #endif // defined TARGET_ARCH_X64 1860 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698