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

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

Issue 137403009: Adding a type vector to replace type cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Refinements. Created 6 years, 10 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 ExternalReference::allocation_sites_list_address(isolate())); 517 ExternalReference::allocation_sites_list_address(isolate()));
518 HValue* site = Add<HLoadNamedField>(site_list, 518 HValue* site = Add<HLoadNamedField>(site_list,
519 HObjectAccess::ForAllocationSiteList()); 519 HObjectAccess::ForAllocationSiteList());
520 store = Add<HStoreNamedField>(object, 520 store = Add<HStoreNamedField>(object,
521 HObjectAccess::ForAllocationSiteOffset(AllocationSite::kWeakNextOffset), 521 HObjectAccess::ForAllocationSiteOffset(AllocationSite::kWeakNextOffset),
522 site); 522 site);
523 store->SkipWriteBarrier(); 523 store->SkipWriteBarrier();
524 Add<HStoreNamedField>(site_list, HObjectAccess::ForAllocationSiteList(), 524 Add<HStoreNamedField>(site_list, HObjectAccess::ForAllocationSiteList(),
525 object); 525 object);
526 526
527 // We use a hammer (SkipWriteBarrier()) to indicate that we know the input 527 HInstruction* feedback_vector = GetParameter(0);
528 // cell is really a Cell, and so no write barrier is needed. 528 HInstruction* slot = GetParameter(1);
529 // TODO(mvstanton): Add a debug_code check to verify the input cell is really 529 Add<HStoreKeyed>(feedback_vector, slot, object, FAST_ELEMENTS);
530 // a cell. (perhaps with a new instruction, HAssert). 530 return feedback_vector;
531 HInstruction* cell = GetParameter(0);
532 HObjectAccess access = HObjectAccess::ForCellValue();
533 store = Add<HStoreNamedField>(cell, access, object);
534 store->SkipWriteBarrier();
535 return cell;
536 } 531 }
537 532
538 533
539 Handle<Code> CreateAllocationSiteStub::GenerateCode(Isolate* isolate) { 534 Handle<Code> CreateAllocationSiteStub::GenerateCode(Isolate* isolate) {
540 return DoGenerateCode(isolate, this); 535 return DoGenerateCode(isolate, this);
541 } 536 }
542 537
543 538
544 template <> 539 template <>
545 HValue* CodeStubGraphBuilder<KeyedLoadFastElementStub>::BuildCodeStub() { 540 HValue* CodeStubGraphBuilder<KeyedLoadFastElementStub>::BuildCodeStub() {
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 return BuildUncheckedDictionaryElementLoad(receiver, key); 1388 return BuildUncheckedDictionaryElementLoad(receiver, key);
1394 } 1389 }
1395 1390
1396 1391
1397 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { 1392 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) {
1398 return DoGenerateCode(isolate, this); 1393 return DoGenerateCode(isolate, this);
1399 } 1394 }
1400 1395
1401 1396
1402 } } // namespace v8::internal 1397 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698