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

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

Issue 11783055: Make the array bounds check elimination phase optional (and set the foundation for introducing SSI … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments. 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
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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 410
411 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const { 411 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const {
412 return op->IsConstantOperand() && 412 return op->IsConstantOperand() &&
413 chunk_->LookupLiteralRepresentation(op).IsTagged(); 413 chunk_->LookupLiteralRepresentation(op).IsTagged();
414 } 414 }
415 415
416 416
417 int LCodeGen::ToInteger32(LConstantOperand* op) const { 417 int LCodeGen::ToInteger32(LConstantOperand* op) const {
418 HConstant* constant = chunk_->LookupConstant(op); 418 HConstant* constant = chunk_->LookupConstant(op);
419 ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32());
420 ASSERT(constant->HasInteger32Value());
421 return constant->Integer32Value(); 419 return constant->Integer32Value();
422 } 420 }
423 421
424 422
425 double LCodeGen::ToDouble(LConstantOperand* op) const { 423 double LCodeGen::ToDouble(LConstantOperand* op) const {
426 HConstant* constant = chunk_->LookupConstant(op); 424 HConstant* constant = chunk_->LookupConstant(op);
427 ASSERT(constant->HasDoubleValue()); 425 ASSERT(constant->HasDoubleValue());
428 return constant->DoubleValue(); 426 return constant->DoubleValue();
429 } 427 }
430 428
(...skipping 5122 matching lines...) Expand 10 before | Expand all | Expand 10 after
5553 FixedArray::kHeaderSize - kPointerSize)); 5551 FixedArray::kHeaderSize - kPointerSize));
5554 __ bind(&done); 5552 __ bind(&done);
5555 } 5553 }
5556 5554
5557 5555
5558 #undef __ 5556 #undef __
5559 5557
5560 } } // namespace v8::internal 5558 } } // namespace v8::internal
5561 5559
5562 #endif // V8_TARGET_ARCH_X64 5560 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/hydrogen-instructions.h ('K') | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698