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

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

Issue 17229005: Convert UnaryOpStub to a HydrogenCodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.h » ('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 3060 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 HType HCheckFunction::CalculateInferredType() { 3071 HType HCheckFunction::CalculateInferredType() {
3072 return value()->type(); 3072 return value()->type();
3073 } 3073 }
3074 3074
3075 3075
3076 HType HCheckHeapObject::CalculateInferredType() { 3076 HType HCheckHeapObject::CalculateInferredType() {
3077 return HType::NonPrimitive(); 3077 return HType::NonPrimitive();
3078 } 3078 }
3079 3079
3080 3080
3081 HType HCheckSmi::CalculateInferredType() {
3082 return HType::Smi();
3083 }
3084
3085
3081 HType HPhi::CalculateInferredType() { 3086 HType HPhi::CalculateInferredType() {
3082 HType result = HType::Uninitialized(); 3087 HType result = HType::Uninitialized();
3083 for (int i = 0; i < OperandCount(); ++i) { 3088 for (int i = 0; i < OperandCount(); ++i) {
3084 HType current = OperandAt(i)->type(); 3089 HType current = OperandAt(i)->type();
3085 result = result.Combine(current); 3090 result = result.Combine(current);
3086 } 3091 }
3087 return result; 3092 return result;
3088 } 3093 }
3089 3094
3090 3095
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
3886 case kBackingStore: 3891 case kBackingStore:
3887 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3892 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3888 stream->Add("[backing-store]"); 3893 stream->Add("[backing-store]");
3889 break; 3894 break;
3890 } 3895 }
3891 3896
3892 stream->Add("@%d", offset()); 3897 stream->Add("@%d", offset());
3893 } 3898 }
3894 3899
3895 } } // namespace v8::internal 3900 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698