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

Side by Side Diff: src/arm/lithium-gap-resolver-arm.cc

Issue 22715004: Version 3.20.15 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add TypedArray API and correctness patches r16033 and r16084 Created 7 years, 4 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/arm/macro-assembler-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 LConstantOperand* constant_source = LConstantOperand::cast(source); 247 LConstantOperand* constant_source = LConstantOperand::cast(source);
248 if (destination->IsRegister()) { 248 if (destination->IsRegister()) {
249 Register dst = cgen_->ToRegister(destination); 249 Register dst = cgen_->ToRegister(destination);
250 Representation r = cgen_->IsSmi(constant_source) 250 Representation r = cgen_->IsSmi(constant_source)
251 ? Representation::Smi() : Representation::Integer32(); 251 ? Representation::Smi() : Representation::Integer32();
252 if (cgen_->IsInteger32(constant_source)) { 252 if (cgen_->IsInteger32(constant_source)) {
253 __ mov(dst, Operand(cgen_->ToRepresentation(constant_source, r))); 253 __ mov(dst, Operand(cgen_->ToRepresentation(constant_source, r)));
254 } else { 254 } else {
255 __ LoadObject(dst, cgen_->ToHandle(constant_source)); 255 __ LoadObject(dst, cgen_->ToHandle(constant_source));
256 } 256 }
257 } else if (destination->IsDoubleRegister()) { 257 } else if (source->IsDoubleRegister()) {
258 DwVfpRegister result = cgen_->ToDoubleRegister(destination); 258 DwVfpRegister result = cgen_->ToDoubleRegister(destination);
259 double v = cgen_->ToDouble(constant_source); 259 double v = cgen_->ToDouble(constant_source);
260 __ Vmov(result, v, ip); 260 __ Vmov(result, v, ip);
261 } else { 261 } else {
262 ASSERT(destination->IsStackSlot()); 262 ASSERT(destination->IsStackSlot());
263 ASSERT(!in_cycle_); // Constant moves happen after all cycles are gone. 263 ASSERT(!in_cycle_); // Constant moves happen after all cycles are gone.
264 Representation r = cgen_->IsSmi(constant_source) 264 Representation r = cgen_->IsSmi(constant_source)
265 ? Representation::Smi() : Representation::Integer32(); 265 ? Representation::Smi() : Representation::Integer32();
266 if (cgen_->IsInteger32(constant_source)) { 266 if (cgen_->IsInteger32(constant_source)) {
267 __ mov(kSavedValueRegister, 267 __ mov(kSavedValueRegister,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 UNREACHABLE(); 309 UNREACHABLE();
310 } 310 }
311 311
312 moves_[index].Eliminate(); 312 moves_[index].Eliminate();
313 } 313 }
314 314
315 315
316 #undef __ 316 #undef __
317 317
318 } } // namespace v8::internal 318 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698