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

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

Issue 1329293003: [runtime] Sanitize %NewClosure runtime entries. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Ports Created 5 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
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/compiler/ast-graph-builder.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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 CallInterfaceDescriptor 668 CallInterfaceDescriptor
669 ElementsTransitionAndStoreStub::GetCallInterfaceDescriptor() const { 669 ElementsTransitionAndStoreStub::GetCallInterfaceDescriptor() const {
670 if (FLAG_vector_stores) { 670 if (FLAG_vector_stores) {
671 return VectorStoreTransitionDescriptor(isolate()); 671 return VectorStoreTransitionDescriptor(isolate());
672 } 672 }
673 return StoreTransitionDescriptor(isolate()); 673 return StoreTransitionDescriptor(isolate());
674 } 674 }
675 675
676 676
677 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 677 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
678 descriptor->Initialize( 678 descriptor->Initialize(Runtime::FunctionForId(Runtime::kNewClosure)->entry);
679 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry);
680 } 679 }
681 680
682 681
683 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {} 682 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {}
684 683
685 684
686 void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {} 685 void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {}
687 686
688 687
689 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 688 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 1050
1052 if (type->Is(Type::UntaggedPointer())) { 1051 if (type->Is(Type::UntaggedPointer())) {
1053 return Representation::External(); 1052 return Representation::External();
1054 } 1053 }
1055 1054
1056 DCHECK(!type->Is(Type::Untagged())); 1055 DCHECK(!type->Is(Type::Untagged()));
1057 return Representation::Tagged(); 1056 return Representation::Tagged();
1058 } 1057 }
1059 } // namespace internal 1058 } // namespace internal
1060 } // namespace v8 1059 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698