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

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

Issue 535873002: Encapsulate megamorphic load/tail-call in hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 612
613 613
614 void VectorKeyedLoadStub::InitializeInterfaceDescriptor( 614 void VectorKeyedLoadStub::InitializeInterfaceDescriptor(
615 CodeStubInterfaceDescriptor* descriptor) { 615 CodeStubInterfaceDescriptor* descriptor) {
616 InitializeVectorLoadStub( 616 InitializeVectorLoadStub(
617 isolate(), descriptor, MajorKey(), 617 isolate(), descriptor, MajorKey(),
618 FUNCTION_ADDR(VectorKeyedLoadIC_MissFromStubFailure)); 618 FUNCTION_ADDR(VectorKeyedLoadIC_MissFromStubFailure));
619 } 619 }
620 620
621 621
622 void MegamorphicLoadStub::InitializeInterfaceDescriptor(
623 CodeStubInterfaceDescriptor* descriptor) {
624 LoadDescriptor call_descriptor(isolate());
625 descriptor->Initialize(MajorKey(), call_descriptor);
626 }
627
628
622 void FastNewClosureStub::InitializeInterfaceDescriptor( 629 void FastNewClosureStub::InitializeInterfaceDescriptor(
623 CodeStubInterfaceDescriptor* descriptor) { 630 CodeStubInterfaceDescriptor* descriptor) {
624 FastNewClosureDescriptor call_descriptor(isolate()); 631 FastNewClosureDescriptor call_descriptor(isolate());
625 descriptor->Initialize( 632 descriptor->Initialize(
626 MajorKey(), call_descriptor, 633 MajorKey(), call_descriptor,
627 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); 634 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry);
628 } 635 }
629 636
630 637
631 void FastNewContextStub::InitializeInterfaceDescriptor( 638 void FastNewContextStub::InitializeInterfaceDescriptor(
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 } 992 }
986 993
987 994
988 InternalArrayConstructorStub::InternalArrayConstructorStub( 995 InternalArrayConstructorStub::InternalArrayConstructorStub(
989 Isolate* isolate) : PlatformCodeStub(isolate) { 996 Isolate* isolate) : PlatformCodeStub(isolate) {
990 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 997 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
991 } 998 }
992 999
993 1000
994 } } // namespace v8::internal 1001 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698