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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 979003003: Only reference constant root list entries in the snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix windows build Created 5 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
« no previous file with comments | « no previous file | src/arm64/macro-assembler-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_ARM 9 #if V8_TARGET_ARCH_ARM
10 10
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 mov(destination, Operand(root), LeaveCC, cond); 432 mov(destination, Operand(root), LeaveCC, cond);
433 return; 433 return;
434 } 434 }
435 ldr(destination, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); 435 ldr(destination, MemOperand(kRootRegister, index << kPointerSizeLog2), cond);
436 } 436 }
437 437
438 438
439 void MacroAssembler::StoreRoot(Register source, 439 void MacroAssembler::StoreRoot(Register source,
440 Heap::RootListIndex index, 440 Heap::RootListIndex index,
441 Condition cond) { 441 Condition cond) {
442 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index));
442 str(source, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); 443 str(source, MemOperand(kRootRegister, index << kPointerSizeLog2), cond);
443 } 444 }
444 445
445 446
446 void MacroAssembler::InNewSpace(Register object, 447 void MacroAssembler::InNewSpace(Register object,
447 Register scratch, 448 Register scratch,
448 Condition cond, 449 Condition cond,
449 Label* branch) { 450 Label* branch) {
450 DCHECK(cond == eq || cond == ne); 451 DCHECK(cond == eq || cond == ne);
451 and_(scratch, object, Operand(ExternalReference::new_space_mask(isolate()))); 452 and_(scratch, object, Operand(ExternalReference::new_space_mask(isolate())));
(...skipping 3445 matching lines...) Expand 10 before | Expand all | Expand 10 after
3897 } 3898 }
3898 } 3899 }
3899 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3900 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3900 add(result, result, Operand(dividend, LSR, 31)); 3901 add(result, result, Operand(dividend, LSR, 31));
3901 } 3902 }
3902 3903
3903 } // namespace internal 3904 } // namespace internal
3904 } // namespace v8 3905 } // namespace v8
3905 3906
3906 #endif // V8_TARGET_ARCH_ARM 3907 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698