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

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

Issue 183803024: Adds support for ARMv6. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Added tests. Created 6 years, 9 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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 __ LeaveStubFrame(); 521 __ LeaveStubFrame();
522 // Remove materialization arguments. 522 // Remove materialization arguments.
523 __ add(SP, SP, ShifterOperand(R1, ASR, kSmiTagSize)); 523 __ add(SP, SP, ShifterOperand(R1, ASR, kSmiTagSize));
524 __ Ret(); 524 __ Ret();
525 } 525 }
526 526
527 527
528 void StubCode::GenerateDeoptimizeLazyStub(Assembler* assembler) { 528 void StubCode::GenerateDeoptimizeLazyStub(Assembler* assembler) {
529 // Correct return address to point just after the call that is being 529 // Correct return address to point just after the call that is being
530 // deoptimized. 530 // deoptimized.
531 __ AddImmediate(LR, -CallPattern::kFixedLengthInBytes); 531 __ AddImmediate(LR, -CallPattern::LengthInBytes());
532 GenerateDeoptimizationSequence(assembler, true); // Preserve R0. 532 GenerateDeoptimizationSequence(assembler, true); // Preserve R0.
533 } 533 }
534 534
535 535
536 void StubCode::GenerateDeoptimizeStub(Assembler* assembler) { 536 void StubCode::GenerateDeoptimizeStub(Assembler* assembler) {
537 GenerateDeoptimizationSequence(assembler, false); // Don't preserve R0. 537 GenerateDeoptimizationSequence(assembler, false); // Don't preserve R0.
538 } 538 }
539 539
540 540
541 void StubCode::GenerateMegamorphicMissStub(Assembler* assembler) { 541 void StubCode::GenerateMegamorphicMissStub(Assembler* assembler) {
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1943 const Register right = R0; 1943 const Register right = R0;
1944 __ ldr(left, Address(SP, 1 * kWordSize)); 1944 __ ldr(left, Address(SP, 1 * kWordSize));
1945 __ ldr(right, Address(SP, 0 * kWordSize)); 1945 __ ldr(right, Address(SP, 0 * kWordSize));
1946 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1946 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1947 __ Ret(); 1947 __ Ret();
1948 } 1948 }
1949 1949
1950 } // namespace dart 1950 } // namespace dart
1951 1951
1952 #endif // defined TARGET_ARCH_ARM 1952 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698