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

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

Issue 332333002: Version 3.26.31.6 (merged r21509, r21858, r21525) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.26
Patch Set: Created 6 years, 6 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-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 "v8.h" 7 #include "v8.h"
8 8
9 #if V8_TARGET_ARCH_ARM 9 #if V8_TARGET_ARCH_ARM
10 10
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 void MacroAssembler::Store(Register src, 399 void MacroAssembler::Store(Register src,
400 const MemOperand& dst, 400 const MemOperand& dst,
401 Representation r) { 401 Representation r) {
402 ASSERT(!r.IsDouble()); 402 ASSERT(!r.IsDouble());
403 if (r.IsInteger8() || r.IsUInteger8()) { 403 if (r.IsInteger8() || r.IsUInteger8()) {
404 strb(src, dst); 404 strb(src, dst);
405 } else if (r.IsInteger16() || r.IsUInteger16()) { 405 } else if (r.IsInteger16() || r.IsUInteger16()) {
406 strh(src, dst); 406 strh(src, dst);
407 } else { 407 } else {
408 if (r.IsHeapObject()) {
409 AssertNotSmi(src);
410 } else if (r.IsSmi()) {
411 AssertSmi(src);
412 }
408 str(src, dst); 413 str(src, dst);
409 } 414 }
410 } 415 }
411 416
412 417
413 void MacroAssembler::LoadRoot(Register destination, 418 void MacroAssembler::LoadRoot(Register destination,
414 Heap::RootListIndex index, 419 Heap::RootListIndex index,
415 Condition cond) { 420 Condition cond) {
416 if (CpuFeatures::IsSupported(MOVW_MOVT_IMMEDIATE_LOADS) && 421 if (CpuFeatures::IsSupported(MOVW_MOVT_IMMEDIATE_LOADS) &&
417 isolate()->heap()->RootCanBeTreatedAsConstant(index) && 422 isolate()->heap()->RootCanBeTreatedAsConstant(index) &&
(...skipping 3650 matching lines...) Expand 10 before | Expand all | Expand 10 after
4068 sub(result, result, Operand(dividend)); 4073 sub(result, result, Operand(dividend));
4069 } 4074 }
4070 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift())); 4075 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift()));
4071 add(result, result, Operand(dividend, LSR, 31)); 4076 add(result, result, Operand(dividend, LSR, 31));
4072 } 4077 }
4073 4078
4074 4079
4075 } } // namespace v8::internal 4080 } } // namespace v8::internal
4076 4081
4077 #endif // V8_TARGET_ARCH_ARM 4082 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698