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

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

Issue 12812002: HSubAllocatedObject instruction allows hydrogen code to carve up (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
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 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 } 2507 }
2508 return false; 2508 return false;
2509 } 2509 }
2510 2510
2511 2511
2512 void HLoadGlobalGeneric::PrintDataTo(StringStream* stream) { 2512 void HLoadGlobalGeneric::PrintDataTo(StringStream* stream) {
2513 stream->Add("%o ", *name()); 2513 stream->Add("%o ", *name());
2514 } 2514 }
2515 2515
2516 2516
2517 void HSubAllocatedObject::PrintDataTo(StringStream* stream) {
2518 base_object()->PrintNameTo(stream);
2519 stream->Add(" offset %d", offset());
2520 }
2521
2522
2517 void HStoreGlobalCell::PrintDataTo(StringStream* stream) { 2523 void HStoreGlobalCell::PrintDataTo(StringStream* stream) {
2518 stream->Add("[%p] = ", *cell()); 2524 stream->Add("[%p] = ", *cell());
2519 value()->PrintNameTo(stream); 2525 value()->PrintNameTo(stream);
2520 if (!details_.IsDontDelete()) stream->Add(" (deleteable)"); 2526 if (!details_.IsDontDelete()) stream->Add(" (deleteable)");
2521 if (details_.IsReadOnly()) stream->Add(" (read-only)"); 2527 if (details_.IsReadOnly()) stream->Add(" (read-only)");
2522 } 2528 }
2523 2529
2524 2530
2525 void HStoreGlobalGeneric::PrintDataTo(StringStream* stream) { 2531 void HStoreGlobalGeneric::PrintDataTo(StringStream* stream) {
2526 stream->Add("%o = ", *name()); 2532 stream->Add("%o = ", *name());
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
3275 3281
3276 3282
3277 void HCheckFunction::Verify() { 3283 void HCheckFunction::Verify() {
3278 HInstruction::Verify(); 3284 HInstruction::Verify();
3279 ASSERT(HasNoUses()); 3285 ASSERT(HasNoUses());
3280 } 3286 }
3281 3287
3282 #endif 3288 #endif
3283 3289
3284 } } // namespace v8::internal 3290 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698