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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.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.cc ('k') | runtime/vm/flow_graph_compiler_ia32.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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 ASSERT(!obj.IsMint() && !obj.IsDouble() && !obj.IsBigint()); 1386 ASSERT(!obj.IsMint() && !obj.IsDouble() && !obj.IsBigint());
1387 __ Push(reg); 1387 __ Push(reg);
1388 __ PushObject(obj); 1388 __ PushObject(obj);
1389 if (is_optimizing()) { 1389 if (is_optimizing()) {
1390 __ BranchLinkPatchable( 1390 __ BranchLinkPatchable(
1391 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); 1391 &StubCode::OptimizedIdenticalWithNumberCheckLabel());
1392 } else { 1392 } else {
1393 __ BranchLinkPatchable( 1393 __ BranchLinkPatchable(
1394 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); 1394 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel());
1395 } 1395 }
1396 if (token_pos != Scanner::kDummyTokenIndex) { 1396 if (token_pos != Scanner::kNoSourcePos) {
1397 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, 1397 AddCurrentDescriptor(PcDescriptors::kRuntimeCall,
1398 Isolate::kNoDeoptId, 1398 Isolate::kNoDeoptId,
1399 token_pos); 1399 token_pos);
1400 } 1400 }
1401 __ Drop(1); // Discard constant. 1401 __ Drop(1); // Discard constant.
1402 __ Pop(reg); // Restore 'reg'. 1402 __ Pop(reg); // Restore 'reg'.
1403 return; 1403 return;
1404 } 1404 }
1405 1405
1406 __ CompareObject(reg, obj); 1406 __ CompareObject(reg, obj);
1407 } 1407 }
1408 1408
1409 1409
1410 void FlowGraphCompiler::EmitEqualityRegRegCompare(Register left, 1410 void FlowGraphCompiler::EmitEqualityRegRegCompare(Register left,
1411 Register right, 1411 Register right,
1412 bool needs_number_check, 1412 bool needs_number_check,
1413 intptr_t token_pos) { 1413 intptr_t token_pos) {
1414 if (needs_number_check) { 1414 if (needs_number_check) {
1415 __ Push(left); 1415 __ Push(left);
1416 __ Push(right); 1416 __ Push(right);
1417 if (is_optimizing()) { 1417 if (is_optimizing()) {
1418 __ BranchLinkPatchable( 1418 __ BranchLinkPatchable(
1419 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); 1419 &StubCode::OptimizedIdenticalWithNumberCheckLabel());
1420 } else { 1420 } else {
1421 __ BranchLinkPatchable( 1421 __ BranchLinkPatchable(
1422 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); 1422 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel());
1423 } 1423 }
1424 if (token_pos != Scanner::kDummyTokenIndex) { 1424 if (token_pos != Scanner::kNoSourcePos) {
1425 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, 1425 AddCurrentDescriptor(PcDescriptors::kRuntimeCall,
1426 Isolate::kNoDeoptId, 1426 Isolate::kNoDeoptId,
1427 token_pos); 1427 token_pos);
1428 } 1428 }
1429 // Stub returns result in flags (result of a cmpl, we need ZF computed). 1429 // Stub returns result in flags (result of a cmpl, we need ZF computed).
1430 __ Pop(right); 1430 __ Pop(right);
1431 __ Pop(left); 1431 __ Pop(left);
1432 } else { 1432 } else {
1433 __ cmp(left, ShifterOperand(right)); 1433 __ cmp(left, ShifterOperand(right));
1434 } 1434 }
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 DRegister dreg = EvenDRegisterOf(reg); 1821 DRegister dreg = EvenDRegisterOf(reg);
1822 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1822 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1823 } 1823 }
1824 1824
1825 1825
1826 #undef __ 1826 #undef __
1827 1827
1828 } // namespace dart 1828 } // namespace dart
1829 1829
1830 #endif // defined TARGET_ARCH_ARM 1830 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698