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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 18154004: Replace custom builtin invocation instructions by a generic version (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 3095 matching lines...) Expand 10 before | Expand all | Expand 10 after
3106 HType HCompareGeneric::CalculateInferredType() { 3106 HType HCompareGeneric::CalculateInferredType() {
3107 return HType::Boolean(); 3107 return HType::Boolean();
3108 } 3108 }
3109 3109
3110 3110
3111 HType HInstanceOf::CalculateInferredType() { 3111 HType HInstanceOf::CalculateInferredType() {
3112 return HType::Boolean(); 3112 return HType::Boolean();
3113 } 3113 }
3114 3114
3115 3115
3116 HType HDeleteProperty::CalculateInferredType() {
3117 return HType::Boolean();
3118 }
3119
3120
3121 HType HInstanceOfKnownGlobal::CalculateInferredType() { 3116 HType HInstanceOfKnownGlobal::CalculateInferredType() {
3122 return HType::Boolean(); 3117 return HType::Boolean();
3123 } 3118 }
3124 3119
3125 3120
3126 HType HChange::CalculateInferredType() { 3121 HType HChange::CalculateInferredType() {
3127 if (from().IsDouble() && to().IsTagged()) return HType::HeapNumber(); 3122 if (from().IsDouble() && to().IsTagged()) return HType::HeapNumber();
3128 return type(); 3123 return type();
3129 } 3124 }
3130 3125
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
3627 } 3622 }
3628 } 3623 }
3629 return new(zone) HShr(context, left, right); 3624 return new(zone) HShr(context, left, right);
3630 } 3625 }
3631 3626
3632 3627
3633 #undef H_CONSTANT_INT32 3628 #undef H_CONSTANT_INT32
3634 #undef H_CONSTANT_DOUBLE 3629 #undef H_CONSTANT_DOUBLE
3635 3630
3636 3631
3637 void HIn::PrintDataTo(StringStream* stream) {
3638 key()->PrintNameTo(stream);
3639 stream->Add(" ");
3640 object()->PrintNameTo(stream);
3641 }
3642
3643
3644 void HBitwise::PrintDataTo(StringStream* stream) { 3632 void HBitwise::PrintDataTo(StringStream* stream) {
3645 stream->Add(Token::Name(op_)); 3633 stream->Add(Token::Name(op_));
3646 stream->Add(" "); 3634 stream->Add(" ");
3647 HBitwiseBinaryOperation::PrintDataTo(stream); 3635 HBitwiseBinaryOperation::PrintDataTo(stream);
3648 } 3636 }
3649 3637
3650 3638
3651 void HPhi::SimplifyConstantInputs() { 3639 void HPhi::SimplifyConstantInputs() {
3652 // Convert constant inputs to integers when all uses are truncating. 3640 // Convert constant inputs to integers when all uses are truncating.
3653 // This must happen before representation inference takes place. 3641 // This must happen before representation inference takes place.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
3891 case kBackingStore: 3879 case kBackingStore:
3892 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3880 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3893 stream->Add("[backing-store]"); 3881 stream->Add("[backing-store]");
3894 break; 3882 break;
3895 } 3883 }
3896 3884
3897 stream->Add("@%d", offset()); 3885 stream->Add("@%d", offset());
3898 } 3886 }
3899 3887
3900 } } // namespace v8::internal 3888 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698