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

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

Issue 98673003: Fix HInnerAllocatedObject to use an HValue for the offset. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 isolate()->heap()->GetPretenureMode(), JS_OBJECT_TYPE); 462 isolate()->heap()->GetPretenureMode(), JS_OBJECT_TYPE);
463 463
464 for (int i = 0; i < object_size; i += kPointerSize) { 464 for (int i = 0; i < object_size; i += kPointerSize) {
465 HObjectAccess access = HObjectAccess::ForJSObjectOffset(i); 465 HObjectAccess access = HObjectAccess::ForJSObjectOffset(i);
466 Add<HStoreNamedField>(object, access, 466 Add<HStoreNamedField>(object, access,
467 Add<HLoadNamedField>(boilerplate, access)); 467 Add<HLoadNamedField>(boilerplate, access));
468 } 468 }
469 469
470 ASSERT(FLAG_allocation_site_pretenuring || (size == object_size)); 470 ASSERT(FLAG_allocation_site_pretenuring || (size == object_size));
471 if (FLAG_allocation_site_pretenuring) { 471 if (FLAG_allocation_site_pretenuring) {
472 BuildCreateAllocationMemento(object, object_size, allocation_site); 472 BuildCreateAllocationMemento(
473 object, Add<HConstant>(object_size), allocation_site);
473 } 474 }
474 475
475 environment()->Push(object); 476 environment()->Push(object);
476 checker.ElseDeopt("Uninitialized boilerplate in fast clone"); 477 checker.ElseDeopt("Uninitialized boilerplate in fast clone");
477 checker.End(); 478 checker.End();
478 479
479 return environment()->Pop(); 480 return environment()->Pop();
480 } 481 }
481 482
482 483
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 return BuildUncheckedDictionaryElementLoad(receiver, key); 1329 return BuildUncheckedDictionaryElementLoad(receiver, key);
1329 } 1330 }
1330 1331
1331 1332
1332 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { 1333 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) {
1333 return DoGenerateCode(isolate, this); 1334 return DoGenerateCode(isolate, this);
1334 } 1335 }
1335 1336
1336 1337
1337 } } // namespace v8::internal 1338 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698