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

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

Issue 11962041: Revert r13409 ("Make the array bounds check elimination phase optional (and set the foundation for … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 } 474 }
475 475
476 476
477 bool LCodeGen::IsInteger32(LConstantOperand* op) const { 477 bool LCodeGen::IsInteger32(LConstantOperand* op) const {
478 return chunk_->LookupLiteralRepresentation(op).IsInteger32(); 478 return chunk_->LookupLiteralRepresentation(op).IsInteger32();
479 } 479 }
480 480
481 481
482 int LCodeGen::ToInteger32(LConstantOperand* op) const { 482 int LCodeGen::ToInteger32(LConstantOperand* op) const {
483 HConstant* constant = chunk_->LookupConstant(op); 483 HConstant* constant = chunk_->LookupConstant(op);
484 ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32());
485 ASSERT(constant->HasInteger32Value());
484 return constant->Integer32Value(); 486 return constant->Integer32Value();
485 } 487 }
486 488
487 489
488 double LCodeGen::ToDouble(LConstantOperand* op) const { 490 double LCodeGen::ToDouble(LConstantOperand* op) const {
489 HConstant* constant = chunk_->LookupConstant(op); 491 HConstant* constant = chunk_->LookupConstant(op);
490 ASSERT(constant->HasDoubleValue()); 492 ASSERT(constant->HasDoubleValue());
491 return constant->DoubleValue(); 493 return constant->DoubleValue();
492 } 494 }
493 495
(...skipping 5311 matching lines...) Expand 10 before | Expand all | Expand 10 after
5805 __ Subu(scratch, result, scratch); 5807 __ Subu(scratch, result, scratch);
5806 __ lw(result, FieldMemOperand(scratch, 5808 __ lw(result, FieldMemOperand(scratch,
5807 FixedArray::kHeaderSize - kPointerSize)); 5809 FixedArray::kHeaderSize - kPointerSize));
5808 __ bind(&done); 5810 __ bind(&done);
5809 } 5811 }
5810 5812
5811 5813
5812 #undef __ 5814 #undef __
5813 5815
5814 } } // namespace v8::internal 5816 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698