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

Side by Side Diff: runtime/vm/assembler_mips.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_mips.h ('k') | runtime/vm/assembler_x64.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_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 ASSERT(cls.id() != kIllegalCid); 722 ASSERT(cls.id() != kIllegalCid);
723 tags = RawObject::ClassIdTag::update(cls.id(), tags); 723 tags = RawObject::ClassIdTag::update(cls.id(), tags);
724 LoadImmediate(TMP, tags); 724 LoadImmediate(TMP, tags);
725 sw(TMP, FieldAddress(instance_reg, Object::tags_offset())); 725 sw(TMP, FieldAddress(instance_reg, Object::tags_offset()));
726 } else { 726 } else {
727 b(failure); 727 b(failure);
728 } 728 }
729 } 729 }
730 730
731 731
732 void Assembler::CallRuntime(const RuntimeEntry& entry) { 732 void Assembler::CallRuntime(const RuntimeEntry& entry,
733 entry.Call(this); 733 intptr_t argument_count) {
734 entry.Call(this, argument_count);
734 } 735 }
735 736
736 737
737 void Assembler::EnterDartFrame(intptr_t frame_size) { 738 void Assembler::EnterDartFrame(intptr_t frame_size) {
738 const intptr_t offset = CodeSize(); 739 const intptr_t offset = CodeSize();
739 740
740 SetPrologueOffset(); 741 SetPrologueOffset();
741 742
742 addiu(SP, SP, Immediate(-4 * kWordSize)); 743 addiu(SP, SP, Immediate(-4 * kWordSize));
743 sw(RA, Address(SP, 2 * kWordSize)); 744 sw(RA, Address(SP, 2 * kWordSize));
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 Bind(&msg); 978 Bind(&msg);
978 break_(Instr::kMsgMessageCode); 979 break_(Instr::kMsgMessageCode);
979 } 980 }
980 #endif 981 #endif
981 } 982 }
982 983
983 } // namespace dart 984 } // namespace dart
984 985
985 #endif // defined TARGET_ARCH_MIPS 986 #endif // defined TARGET_ARCH_MIPS
986 987
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/assembler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698