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

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

Issue 137003006: Make safe points in generated code invisible to the debugger (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
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 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, 1396 if (token_pos != Scanner::kDummyTokenIndex) {
1397 Isolate::kNoDeoptId, 1397 AddCurrentDescriptor(PcDescriptors::kRuntimeCall,
1398 token_pos); 1398 Isolate::kNoDeoptId,
1399 token_pos);
1400 }
1399 __ Drop(1); // Discard constant. 1401 __ Drop(1); // Discard constant.
1400 __ Pop(reg); // Restore 'reg'. 1402 __ Pop(reg); // Restore 'reg'.
1401 return; 1403 return;
1402 } 1404 }
1403 1405
1404 __ CompareObject(reg, obj); 1406 __ CompareObject(reg, obj);
1405 } 1407 }
1406 1408
1407 1409
1408 void FlowGraphCompiler::EmitEqualityRegRegCompare(Register left, 1410 void FlowGraphCompiler::EmitEqualityRegRegCompare(Register left,
1409 Register right, 1411 Register right,
1410 bool needs_number_check, 1412 bool needs_number_check,
1411 intptr_t token_pos) { 1413 intptr_t token_pos) {
1412 if (needs_number_check) { 1414 if (needs_number_check) {
1413 __ Push(left); 1415 __ Push(left);
1414 __ Push(right); 1416 __ Push(right);
1415 if (is_optimizing()) { 1417 if (is_optimizing()) {
1416 __ BranchLinkPatchable( 1418 __ BranchLinkPatchable(
1417 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); 1419 &StubCode::OptimizedIdenticalWithNumberCheckLabel());
1418 } else { 1420 } else {
1419 __ BranchLinkPatchable( 1421 __ BranchLinkPatchable(
1420 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); 1422 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel());
1421 } 1423 }
1422 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, 1424 if (token_pos != Scanner::kDummyTokenIndex) {
1423 Isolate::kNoDeoptId, 1425 AddCurrentDescriptor(PcDescriptors::kRuntimeCall,
1424 token_pos); 1426 Isolate::kNoDeoptId,
1427 token_pos);
1428 }
1425 // 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).
1426 __ Pop(right); 1430 __ Pop(right);
1427 __ Pop(left); 1431 __ Pop(left);
1428 } else { 1432 } else {
1429 __ cmp(left, ShifterOperand(right)); 1433 __ cmp(left, ShifterOperand(right));
1430 } 1434 }
1431 } 1435 }
1432 1436
1433 1437
1434 // This function must be in sync with FlowGraphCompiler::RecordSafepoint and 1438 // This function must be in sync with FlowGraphCompiler::RecordSafepoint and
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1817 DRegister dreg = EvenDRegisterOf(reg); 1821 DRegister dreg = EvenDRegisterOf(reg);
1818 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1822 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1819 } 1823 }
1820 1824
1821 1825
1822 #undef __ 1826 #undef __
1823 1827
1824 } // namespace dart 1828 } // namespace dart
1825 1829
1826 #endif // defined TARGET_ARCH_ARM 1830 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698