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

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

Issue 12585004: Use an efficient graph constant in CodeStubGraphBuilderBase::BuildGraph(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/code-stubs-hydrogen.cc ('k') | no next file » | 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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 void HIsNilAndBranch::PrintDataTo(StringStream* stream) { 1027 void HIsNilAndBranch::PrintDataTo(StringStream* stream) {
1028 value()->PrintNameTo(stream); 1028 value()->PrintNameTo(stream);
1029 stream->Add(kind() == kStrictEquality ? " === " : " == "); 1029 stream->Add(kind() == kStrictEquality ? " === " : " == ");
1030 stream->Add(nil() == kNullValue ? "null" : "undefined"); 1030 stream->Add(nil() == kNullValue ? "null" : "undefined");
1031 HControlInstruction::PrintDataTo(stream); 1031 HControlInstruction::PrintDataTo(stream);
1032 } 1032 }
1033 1033
1034 1034
1035 void HReturn::PrintDataTo(StringStream* stream) { 1035 void HReturn::PrintDataTo(StringStream* stream) {
1036 value()->PrintNameTo(stream); 1036 value()->PrintNameTo(stream);
1037 stream->Add(" (pop ");
1038 parameter_count()->PrintNameTo(stream);
1039 stream->Add(" values)");
1037 } 1040 }
1038 1041
1039 1042
1040 Representation HBranch::observed_input_representation(int index) { 1043 Representation HBranch::observed_input_representation(int index) {
1041 static const ToBooleanStub::Types tagged_types( 1044 static const ToBooleanStub::Types tagged_types(
1042 ToBooleanStub::UNDEFINED | 1045 ToBooleanStub::UNDEFINED |
1043 ToBooleanStub::NULL_TYPE | 1046 ToBooleanStub::NULL_TYPE |
1044 ToBooleanStub::SPEC_OBJECT | 1047 ToBooleanStub::SPEC_OBJECT |
1045 ToBooleanStub::STRING); 1048 ToBooleanStub::STRING);
1046 if (expected_input_types_.ContainsAnyOf(tagged_types)) { 1049 if (expected_input_types_.ContainsAnyOf(tagged_types)) {
(...skipping 2225 matching lines...) Expand 10 before | Expand all | Expand 10 after
3272 3275
3273 3276
3274 void HCheckFunction::Verify() { 3277 void HCheckFunction::Verify() {
3275 HInstruction::Verify(); 3278 HInstruction::Verify();
3276 ASSERT(HasNoUses()); 3279 ASSERT(HasNoUses());
3277 } 3280 }
3278 3281
3279 #endif 3282 #endif
3280 3283
3281 } } // namespace v8::internal 3284 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698