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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 15861009: Tag smi-constants as smi. This also fixes code that copies holes into arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 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/property-details.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 425
426 XMMRegister LCodeGen::ToDoubleRegister(LOperand* op) const { 426 XMMRegister LCodeGen::ToDoubleRegister(LOperand* op) const {
427 ASSERT(op->IsDoubleRegister()); 427 ASSERT(op->IsDoubleRegister());
428 return ToDoubleRegister(op->index()); 428 return ToDoubleRegister(op->index());
429 } 429 }
430 430
431 431
432 bool LCodeGen::IsInteger32Constant(LConstantOperand* op) const { 432 bool LCodeGen::IsInteger32Constant(LConstantOperand* op) const {
433 return op->IsConstantOperand() && 433 return op->IsConstantOperand() &&
434 chunk_->LookupLiteralRepresentation(op).IsInteger32(); 434 chunk_->LookupLiteralRepresentation(op).IsSmiOrInteger32();
435 } 435 }
436 436
437 437
438 bool LCodeGen::IsSmiConstant(LConstantOperand* op) const { 438 bool LCodeGen::IsSmiConstant(LConstantOperand* op) const {
439 return op->IsConstantOperand() && 439 return op->IsConstantOperand() &&
440 chunk_->LookupLiteralRepresentation(op).IsSmi(); 440 chunk_->LookupLiteralRepresentation(op).IsSmi();
441 } 441 }
442 442
443 443
444 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const { 444 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const {
(...skipping 5235 matching lines...) Expand 10 before | Expand all | Expand 10 after
5680 FixedArray::kHeaderSize - kPointerSize)); 5680 FixedArray::kHeaderSize - kPointerSize));
5681 __ bind(&done); 5681 __ bind(&done);
5682 } 5682 }
5683 5683
5684 5684
5685 #undef __ 5685 #undef __
5686 5686
5687 } } // namespace v8::internal 5687 } } // namespace v8::internal
5688 5688
5689 #endif // V8_TARGET_ARCH_X64 5689 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/property-details.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698