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

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

Issue 295913009: Allow specifying base offset when constructing Keyed hydrogen instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove more unnecessary code Created 6 years, 7 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/lithium-codegen-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "double.h" 7 #include "double.h"
8 #include "factory.h" 8 #include "factory.h"
9 #include "hydrogen-infer-representation.h" 9 #include "hydrogen-infer-representation.h"
10 #include "property-details-inl.h" 10 #include "property-details-inl.h"
(...skipping 3439 matching lines...) Expand 10 before | Expand all | Expand 10 after
3450 ASSERT(elements_kind() >= FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND && 3450 ASSERT(elements_kind() >= FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND &&
3451 elements_kind() <= LAST_EXTERNAL_ARRAY_ELEMENTS_KIND); 3451 elements_kind() <= LAST_EXTERNAL_ARRAY_ELEMENTS_KIND);
3452 elements()->PrintNameTo(stream); 3452 elements()->PrintNameTo(stream);
3453 stream->Add("."); 3453 stream->Add(".");
3454 stream->Add(ElementsKindToString(elements_kind())); 3454 stream->Add(ElementsKindToString(elements_kind()));
3455 } 3455 }
3456 3456
3457 stream->Add("["); 3457 stream->Add("[");
3458 key()->PrintNameTo(stream); 3458 key()->PrintNameTo(stream);
3459 if (IsDehoisted()) { 3459 if (IsDehoisted()) {
3460 stream->Add(" + %d]", index_offset()); 3460 stream->Add(" + %d]", base_offset());
3461 } else { 3461 } else {
3462 stream->Add("]"); 3462 stream->Add("]");
3463 } 3463 }
3464 3464
3465 if (HasDependency()) { 3465 if (HasDependency()) {
3466 stream->Add(" "); 3466 stream->Add(" ");
3467 dependency()->PrintNameTo(stream); 3467 dependency()->PrintNameTo(stream);
3468 } 3468 }
3469 3469
3470 if (RequiresHoleCheck()) { 3470 if (RequiresHoleCheck()) {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
3602 elements()->PrintNameTo(stream); 3602 elements()->PrintNameTo(stream);
3603 stream->Add("."); 3603 stream->Add(".");
3604 stream->Add(ElementsKindToString(elements_kind())); 3604 stream->Add(ElementsKindToString(elements_kind()));
3605 ASSERT(elements_kind() >= FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND && 3605 ASSERT(elements_kind() >= FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND &&
3606 elements_kind() <= LAST_EXTERNAL_ARRAY_ELEMENTS_KIND); 3606 elements_kind() <= LAST_EXTERNAL_ARRAY_ELEMENTS_KIND);
3607 } 3607 }
3608 3608
3609 stream->Add("["); 3609 stream->Add("[");
3610 key()->PrintNameTo(stream); 3610 key()->PrintNameTo(stream);
3611 if (IsDehoisted()) { 3611 if (IsDehoisted()) {
3612 stream->Add(" + %d] = ", index_offset()); 3612 stream->Add(" + %d] = ", base_offset());
3613 } else { 3613 } else {
3614 stream->Add("] = "); 3614 stream->Add("] = ");
3615 } 3615 }
3616 3616
3617 value()->PrintNameTo(stream); 3617 value()->PrintNameTo(stream);
3618 } 3618 }
3619 3619
3620 3620
3621 void HStoreKeyedGeneric::PrintDataTo(StringStream* stream) { 3621 void HStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
3622 object()->PrintNameTo(stream); 3622 object()->PrintNameTo(stream);
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
4784 break; 4784 break;
4785 case kExternalMemory: 4785 case kExternalMemory:
4786 stream->Add("[external-memory]"); 4786 stream->Add("[external-memory]");
4787 break; 4787 break;
4788 } 4788 }
4789 4789
4790 stream->Add("@%d", offset()); 4790 stream->Add("@%d", offset());
4791 } 4791 }
4792 4792
4793 } } // namespace v8::internal 4793 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698