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

Side by Side Diff: src/arm/lithium-codegen-arm.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 | « no previous file | src/code-stubs-hydrogen.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 // 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 } 496 }
497 497
498 498
499 bool LCodeGen::IsInteger32(LConstantOperand* op) const { 499 bool LCodeGen::IsInteger32(LConstantOperand* op) const {
500 return chunk_->LookupLiteralRepresentation(op).IsInteger32(); 500 return chunk_->LookupLiteralRepresentation(op).IsInteger32();
501 } 501 }
502 502
503 503
504 int LCodeGen::ToInteger32(LConstantOperand* op) const { 504 int LCodeGen::ToInteger32(LConstantOperand* op) const {
505 HConstant* constant = chunk_->LookupConstant(op); 505 HConstant* constant = chunk_->LookupConstant(op);
506 ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32());
507 ASSERT(constant->HasInteger32Value());
508 return constant->Integer32Value(); 506 return constant->Integer32Value();
509 } 507 }
510 508
511 509
512 double LCodeGen::ToDouble(LConstantOperand* op) const { 510 double LCodeGen::ToDouble(LConstantOperand* op) const {
513 HConstant* constant = chunk_->LookupConstant(op); 511 HConstant* constant = chunk_->LookupConstant(op);
514 ASSERT(constant->HasDoubleValue()); 512 ASSERT(constant->HasDoubleValue());
515 return constant->DoubleValue(); 513 return constant->DoubleValue();
516 } 514 }
517 515
(...skipping 5591 matching lines...) Expand 10 before | Expand all | Expand 10 after
6109 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 6107 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
6110 __ ldr(result, FieldMemOperand(scratch, 6108 __ ldr(result, FieldMemOperand(scratch,
6111 FixedArray::kHeaderSize - kPointerSize)); 6109 FixedArray::kHeaderSize - kPointerSize));
6112 __ bind(&done); 6110 __ bind(&done);
6113 } 6111 }
6114 6112
6115 6113
6116 #undef __ 6114 #undef __
6117 6115
6118 } } // namespace v8::internal 6116 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698