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

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

Issue 298963006: Change COMPILE_ASSERT to take only one argument and use it in more places. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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_ia32.cc ('k') | runtime/vm/assembler_x64.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" 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 slt(rd2, TMP, rn); 513 slt(rd2, TMP, rn);
514 } 514 }
515 515
516 516
517 // Preserves object and value registers. 517 // Preserves object and value registers.
518 void Assembler::StoreIntoObjectFilterNoSmi(Register object, 518 void Assembler::StoreIntoObjectFilterNoSmi(Register object,
519 Register value, 519 Register value,
520 Label* no_update) { 520 Label* no_update) {
521 ASSERT(!in_delay_slot_); 521 ASSERT(!in_delay_slot_);
522 COMPILE_ASSERT((kNewObjectAlignmentOffset == kWordSize) && 522 COMPILE_ASSERT((kNewObjectAlignmentOffset == kWordSize) &&
523 (kOldObjectAlignmentOffset == 0), young_alignment); 523 (kOldObjectAlignmentOffset == 0));
524 524
525 // Write-barrier triggers if the value is in the new space (has bit set) and 525 // Write-barrier triggers if the value is in the new space (has bit set) and
526 // the object is in the old space (has bit cleared). 526 // the object is in the old space (has bit cleared).
527 // To check that, we compute value & ~object and skip the write barrier 527 // To check that, we compute value & ~object and skip the write barrier
528 // if the bit is not set. We can't destroy the object. 528 // if the bit is not set. We can't destroy the object.
529 nor(TMP, ZR, object); 529 nor(TMP, ZR, object);
530 and_(TMP, value, TMP); 530 and_(TMP, value, TMP);
531 andi(CMPRES1, TMP, Immediate(kNewObjectAlignmentOffset)); 531 andi(CMPRES1, TMP, Immediate(kNewObjectAlignmentOffset));
532 beq(CMPRES1, ZR, no_update); 532 beq(CMPRES1, ZR, no_update);
533 } 533 }
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 Emit(reinterpret_cast<int32_t>(message)); 1090 Emit(reinterpret_cast<int32_t>(message));
1091 Bind(&msg); 1091 Bind(&msg);
1092 break_(Instr::kMsgMessageCode); 1092 break_(Instr::kMsgMessageCode);
1093 } 1093 }
1094 #endif 1094 #endif
1095 } 1095 }
1096 1096
1097 } // namespace dart 1097 } // namespace dart
1098 1098
1099 #endif // defined TARGET_ARCH_MIPS 1099 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698