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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 19595004: Rename AllocationSiteInfo to AllocationMemento (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/builtins.cc ('k') | src/codegen.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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 HInstruction* allocation_site = 318 HInstruction* allocation_site =
319 AddInstruction(new(zone) HLoadKeyed(GetParameter(0), 319 AddInstruction(new(zone) HLoadKeyed(GetParameter(0),
320 GetParameter(1), 320 GetParameter(1),
321 NULL, 321 NULL,
322 FAST_ELEMENTS)); 322 FAST_ELEMENTS));
323 IfBuilder checker(this); 323 IfBuilder checker(this);
324 checker.IfNot<HCompareObjectEqAndBranch, HValue*>(allocation_site, undefined); 324 checker.IfNot<HCompareObjectEqAndBranch, HValue*>(allocation_site, undefined);
325 checker.Then(); 325 checker.Then();
326 326
327 HObjectAccess access = HObjectAccess::ForAllocationSiteInfoSite(); 327 HObjectAccess access = HObjectAccess::ForAllocationSiteTransitionInfo();
328 HInstruction* boilerplate = AddLoad(allocation_site, access); 328 HInstruction* boilerplate = AddLoad(allocation_site, access);
329 if (mode == FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS) { 329 if (mode == FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS) {
330 HValue* elements = AddLoadElements(boilerplate); 330 HValue* elements = AddLoadElements(boilerplate);
331 331
332 IfBuilder if_fixed_cow(this); 332 IfBuilder if_fixed_cow(this);
333 if_fixed_cow.If<HCompareMap>(elements, factory->fixed_cow_array_map()); 333 if_fixed_cow.If<HCompareMap>(elements, factory->fixed_cow_array_map());
334 if_fixed_cow.Then(); 334 if_fixed_cow.Then();
335 environment()->Push(BuildCloneShallowArray(context(), 335 environment()->Push(BuildCloneShallowArray(context(),
336 boilerplate, 336 boilerplate,
337 allocation_site, 337 allocation_site,
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 return value; 914 return value;
915 } 915 }
916 916
917 917
918 Handle<Code> ElementsTransitionAndStoreStub::GenerateCode() { 918 Handle<Code> ElementsTransitionAndStoreStub::GenerateCode() {
919 return DoGenerateCode(this); 919 return DoGenerateCode(this);
920 } 920 }
921 921
922 922
923 } } // namespace v8::internal 923 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698