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

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

Issue 23672011: Fix the previously ineffective assert checking the number of arguments passed to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/assembler_arm.h ('k') | runtime/vm/assembler_ia32.h » ('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" 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/longjump.h" 9 #include "vm/longjump.h"
10 #include "vm/runtime_entry.h" 10 #include "vm/runtime_entry.h"
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after
2525 vldmd(IA_W, SP, mid, lastv - mid + 1); 2525 vldmd(IA_W, SP, mid, lastv - mid + 1);
2526 } else { 2526 } else {
2527 vldmd(IA_W, SP, firstv, lastv - firstv + 1); 2527 vldmd(IA_W, SP, firstv, lastv - firstv + 1);
2528 } 2528 }
2529 2529
2530 // Restore volatile CPU registers. 2530 // Restore volatile CPU registers.
2531 LeaveFrame(kDartVolatileCpuRegs | (1 << FP) | (1 << LR)); 2531 LeaveFrame(kDartVolatileCpuRegs | (1 << FP) | (1 << LR));
2532 } 2532 }
2533 2533
2534 2534
2535 void Assembler::CallRuntime(const RuntimeEntry& entry) { 2535 void Assembler::CallRuntime(const RuntimeEntry& entry,
2536 entry.Call(this); 2536 intptr_t argument_count) {
2537 entry.Call(this, argument_count);
2537 } 2538 }
2538 2539
2539 2540
2540 void Assembler::EnterDartFrame(intptr_t frame_size) { 2541 void Assembler::EnterDartFrame(intptr_t frame_size) {
2541 const intptr_t offset = CodeSize(); 2542 const intptr_t offset = CodeSize();
2542 2543
2543 // Save PC in frame for fast identification of corresponding code. 2544 // Save PC in frame for fast identification of corresponding code.
2544 // Note that callee-saved registers can be added to the register list. 2545 // Note that callee-saved registers can be added to the register list.
2545 EnterFrame((1 << PP) | (1 << FP) | (1 << LR) | (1 << PC), 0); 2546 EnterFrame((1 << PP) | (1 << FP) | (1 << LR) | (1 << PC), 0);
2546 2547
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
2729 2730
2730 const char* Assembler::FpuRegisterName(FpuRegister reg) { 2731 const char* Assembler::FpuRegisterName(FpuRegister reg) {
2731 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 2732 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
2732 return fpu_reg_names[reg]; 2733 return fpu_reg_names[reg];
2733 } 2734 }
2734 2735
2735 } // namespace dart 2736 } // namespace dart
2736 2737
2737 #endif // defined TARGET_ARCH_ARM 2738 #endif // defined TARGET_ARCH_ARM
2738 2739
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.h ('k') | runtime/vm/assembler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698