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

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

Issue 23781006: Add assertion to UniqueValueId constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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') | 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 3437 matching lines...) Expand 10 before | Expand all | Expand 10 after
3448 int32_t dominator_size = 3448 int32_t dominator_size =
3449 HConstant::cast(dominating_allocate_->size())->GetInteger32Constant(); 3449 HConstant::cast(dominating_allocate_->size())->GetInteger32Constant();
3450 HInstruction* free_space_instr = 3450 HInstruction* free_space_instr =
3451 HInnerAllocatedObject::New(zone, context(), dominating_allocate_, 3451 HInnerAllocatedObject::New(zone, context(), dominating_allocate_,
3452 dominator_size, type()); 3452 dominator_size, type());
3453 free_space_instr->InsertBefore(this); 3453 free_space_instr->InsertBefore(this);
3454 HConstant* filler_map = HConstant::New( 3454 HConstant* filler_map = HConstant::New(
3455 zone, 3455 zone,
3456 context(), 3456 context(),
3457 isolate()->factory()->free_space_map(), 3457 isolate()->factory()->free_space_map(),
3458 UniqueValueId(isolate()->heap()->free_space_map())); 3458 UniqueValueId::free_space_map(isolate()->heap()));
3459 filler_map->InsertAfter(free_space_instr); 3459 filler_map->InsertAfter(free_space_instr);
3460 HInstruction* store_map = HStoreNamedField::New(zone, context(), 3460 HInstruction* store_map = HStoreNamedField::New(zone, context(),
3461 free_space_instr, HObjectAccess::ForMap(), filler_map); 3461 free_space_instr, HObjectAccess::ForMap(), filler_map);
3462 store_map->SetFlag(HValue::kHasNoObservableSideEffects); 3462 store_map->SetFlag(HValue::kHasNoObservableSideEffects);
3463 store_map->InsertAfter(filler_map); 3463 store_map->InsertAfter(filler_map);
3464 3464
3465 // We must explicitly force Smi representation here because on x64 we 3465 // We must explicitly force Smi representation here because on x64 we
3466 // would otherwise automatically choose int32, but the actual store 3466 // would otherwise automatically choose int32, but the actual store
3467 // requires a Smi-tagged value. 3467 // requires a Smi-tagged value.
3468 HConstant* filler_size = HConstant::CreateAndInsertAfter( 3468 HConstant* filler_size = HConstant::CreateAndInsertAfter(
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
4238 break; 4238 break;
4239 case kExternalMemory: 4239 case kExternalMemory:
4240 stream->Add("[external-memory]"); 4240 stream->Add("[external-memory]");
4241 break; 4241 break;
4242 } 4242 }
4243 4243
4244 stream->Add("@%d", offset()); 4244 stream->Add("@%d", offset());
4245 } 4245 }
4246 4246
4247 } } // namespace v8::internal 4247 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698