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

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: Addressed feedback. 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
« no previous file with comments | « src/ast.cc ('k') | src/compiler.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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 HValue* site = Add<HLoadNamedField>( 523 HValue* site = Add<HLoadNamedField>(
524 site_list, static_cast<HValue*>(NULL), 524 site_list, static_cast<HValue*>(NULL),
525 HObjectAccess::ForAllocationSiteList()); 525 HObjectAccess::ForAllocationSiteList());
526 store = Add<HStoreNamedField>(object, 526 store = Add<HStoreNamedField>(object,
527 HObjectAccess::ForAllocationSiteOffset(AllocationSite::kWeakNextOffset), 527 HObjectAccess::ForAllocationSiteOffset(AllocationSite::kWeakNextOffset),
528 site); 528 site);
529 store->SkipWriteBarrier(); 529 store->SkipWriteBarrier();
530 Add<HStoreNamedField>(site_list, HObjectAccess::ForAllocationSiteList(), 530 Add<HStoreNamedField>(site_list, HObjectAccess::ForAllocationSiteList(),
531 object); 531 object);
532 532
533 // We use a hammer (SkipWriteBarrier()) to indicate that we know the input 533 HInstruction* feedback_vector = GetParameter(0);
534 // cell is really a Cell, and so no write barrier is needed. 534 HInstruction* slot = GetParameter(1);
535 // TODO(mvstanton): Add a debug_code check to verify the input cell is really 535 Add<HStoreKeyed>(feedback_vector, slot, object, FAST_ELEMENTS,
536 // a cell. (perhaps with a new instruction, HAssert). 536 INITIALIZING_STORE);
537 HInstruction* cell = GetParameter(0); 537 return feedback_vector;
538 HObjectAccess access = HObjectAccess::ForCellValue();
539 store = Add<HStoreNamedField>(cell, access, object);
540 store->SkipWriteBarrier();
541 return cell;
542 } 538 }
543 539
544 540
545 Handle<Code> CreateAllocationSiteStub::GenerateCode(Isolate* isolate) { 541 Handle<Code> CreateAllocationSiteStub::GenerateCode(Isolate* isolate) {
546 return DoGenerateCode(isolate, this); 542 return DoGenerateCode(isolate, this);
547 } 543 }
548 544
549 545
550 template <> 546 template <>
551 HValue* CodeStubGraphBuilder<KeyedLoadFastElementStub>::BuildCodeStub() { 547 HValue* CodeStubGraphBuilder<KeyedLoadFastElementStub>::BuildCodeStub() {
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 return BuildRegExpConstructResult(length, index, input); 1395 return BuildRegExpConstructResult(length, index, input);
1400 } 1396 }
1401 1397
1402 1398
1403 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) { 1399 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) {
1404 return DoGenerateCode(isolate, this); 1400 return DoGenerateCode(isolate, this);
1405 } 1401 }
1406 1402
1407 1403
1408 } } // namespace v8::internal 1404 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698