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

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: PORTS. 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 HValue* site = Add<HLoadNamedField>( 529 HValue* site = Add<HLoadNamedField>(
530 site_list, static_cast<HValue*>(NULL), 530 site_list, static_cast<HValue*>(NULL),
531 HObjectAccess::ForAllocationSiteList()); 531 HObjectAccess::ForAllocationSiteList());
532 store = Add<HStoreNamedField>(object, 532 store = Add<HStoreNamedField>(object,
533 HObjectAccess::ForAllocationSiteOffset(AllocationSite::kWeakNextOffset), 533 HObjectAccess::ForAllocationSiteOffset(AllocationSite::kWeakNextOffset),
534 site, INITIALIZING_STORE); 534 site, INITIALIZING_STORE);
535 store->SkipWriteBarrier(); 535 store->SkipWriteBarrier();
536 Add<HStoreNamedField>(site_list, HObjectAccess::ForAllocationSiteList(), 536 Add<HStoreNamedField>(site_list, HObjectAccess::ForAllocationSiteList(),
537 object, INITIALIZING_STORE); 537 object, INITIALIZING_STORE);
538 538
539 // We use a hammer (SkipWriteBarrier()) to indicate that we know the input 539 HInstruction* feedback_vector = GetParameter(0);
540 // cell is really a Cell, and so no write barrier is needed. 540 HInstruction* slot = GetParameter(1);
541 // TODO(mvstanton): Add a debug_code check to verify the input cell is really 541 Add<HStoreKeyed>(feedback_vector, slot, object, FAST_ELEMENTS,
542 // a cell. (perhaps with a new instruction, HAssert). 542 INITIALIZING_STORE);
543 HInstruction* cell = GetParameter(0); 543 return feedback_vector;
544 HObjectAccess access = HObjectAccess::ForCellValue();
545 store = Add<HStoreNamedField>(cell, access, object, INITIALIZING_STORE);
546 store->SkipWriteBarrier();
547 return cell;
548 } 544 }
549 545
550 546
551 Handle<Code> CreateAllocationSiteStub::GenerateCode(Isolate* isolate) { 547 Handle<Code> CreateAllocationSiteStub::GenerateCode(Isolate* isolate) {
552 return DoGenerateCode(isolate, this); 548 return DoGenerateCode(isolate, this);
553 } 549 }
554 550
555 551
556 template <> 552 template <>
557 HValue* CodeStubGraphBuilder<KeyedLoadFastElementStub>::BuildCodeStub() { 553 HValue* CodeStubGraphBuilder<KeyedLoadFastElementStub>::BuildCodeStub() {
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 return BuildRegExpConstructResult(length, index, input); 1431 return BuildRegExpConstructResult(length, index, input);
1436 } 1432 }
1437 1433
1438 1434
1439 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) { 1435 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) {
1440 return DoGenerateCode(isolate, this); 1436 return DoGenerateCode(isolate, this);
1441 } 1437 }
1442 1438
1443 1439
1444 } } // namespace v8::internal 1440 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698