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

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

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some cleanup Created 7 years, 6 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 685
686 686
687 bool ToBooleanStub::Types::CanBeUndetectable() const { 687 bool ToBooleanStub::Types::CanBeUndetectable() const {
688 return Contains(ToBooleanStub::SPEC_OBJECT) 688 return Contains(ToBooleanStub::SPEC_OBJECT)
689 || Contains(ToBooleanStub::STRING); 689 || Contains(ToBooleanStub::STRING);
690 } 690 }
691 691
692 692
693 void ElementsTransitionAndStoreStub::Generate(MacroAssembler* masm) { 693 void ElementsTransitionAndStoreStub::Generate(MacroAssembler* masm) {
694 Label fail; 694 Label fail;
695 AllocationSiteMode mode = AllocationSiteInfo::GetMode(from_, to_); 695 AllocationSiteMode mode = AllocationSite::GetMode(from_, to_);
696 ASSERT(!IsFastHoleyElementsKind(from_) || IsFastHoleyElementsKind(to_)); 696 ASSERT(!IsFastHoleyElementsKind(from_) || IsFastHoleyElementsKind(to_));
697 if (!FLAG_trace_elements_transitions) { 697 if (!FLAG_trace_elements_transitions) {
698 if (IsFastSmiOrObjectElementsKind(to_)) { 698 if (IsFastSmiOrObjectElementsKind(to_)) {
699 if (IsFastSmiOrObjectElementsKind(from_)) { 699 if (IsFastSmiOrObjectElementsKind(from_)) {
700 ElementsTransitionGenerator:: 700 ElementsTransitionGenerator::
701 GenerateMapChangeElementsTransition(masm, mode, &fail); 701 GenerateMapChangeElementsTransition(masm, mode, &fail);
702 } else if (IsFastDoubleElementsKind(from_)) { 702 } else if (IsFastDoubleElementsKind(from_)) {
703 ASSERT(!IsFastSmiElementsKind(to_)); 703 ASSERT(!IsFastSmiElementsKind(to_));
704 ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, &fail); 704 ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, &fail);
705 } else { 705 } else {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 InstallDescriptor(isolate, &stub3); 807 InstallDescriptor(isolate, &stub3);
808 } 808 }
809 809
810 InternalArrayConstructorStub::InternalArrayConstructorStub( 810 InternalArrayConstructorStub::InternalArrayConstructorStub(
811 Isolate* isolate) { 811 Isolate* isolate) {
812 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 812 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
813 } 813 }
814 814
815 815
816 } } // namespace v8::internal 816 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | src/code-stubs-hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698