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

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

Issue 12090021: Foundation for the use of informative definitions in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on bleeding edge. Created 7 years, 10 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/mips/lithium-codegen-mips.cc ('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 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 418
419 419
420 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const { 420 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const {
421 return op->IsConstantOperand() && 421 return op->IsConstantOperand() &&
422 chunk_->LookupLiteralRepresentation(op).IsTagged(); 422 chunk_->LookupLiteralRepresentation(op).IsTagged();
423 } 423 }
424 424
425 425
426 int LCodeGen::ToInteger32(LConstantOperand* op) const { 426 int LCodeGen::ToInteger32(LConstantOperand* op) const {
427 HConstant* constant = chunk_->LookupConstant(op); 427 HConstant* constant = chunk_->LookupConstant(op);
428 ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32());
429 ASSERT(constant->HasInteger32Value());
430 return constant->Integer32Value(); 428 return constant->Integer32Value();
431 } 429 }
432 430
433 431
434 double LCodeGen::ToDouble(LConstantOperand* op) const { 432 double LCodeGen::ToDouble(LConstantOperand* op) const {
435 HConstant* constant = chunk_->LookupConstant(op); 433 HConstant* constant = chunk_->LookupConstant(op);
436 ASSERT(constant->HasDoubleValue()); 434 ASSERT(constant->HasDoubleValue());
437 return constant->DoubleValue(); 435 return constant->DoubleValue();
438 } 436 }
439 437
(...skipping 5136 matching lines...) Expand 10 before | Expand all | Expand 10 after
5576 FixedArray::kHeaderSize - kPointerSize)); 5574 FixedArray::kHeaderSize - kPointerSize));
5577 __ bind(&done); 5575 __ bind(&done);
5578 } 5576 }
5579 5577
5580 5578
5581 #undef __ 5579 #undef __
5582 5580
5583 } } // namespace v8::internal 5581 } } // namespace v8::internal
5584 5582
5585 #endif // V8_TARGET_ARCH_X64 5583 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698