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

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

Issue 1475823003: [runtime] First step to sanitize regexp literal creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
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/factory.h" 10 #include "src/factory.h"
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {} 687 void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {}
688 688
689 689
690 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 690 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
691 NumberToStringDescriptor call_descriptor(isolate()); 691 NumberToStringDescriptor call_descriptor(isolate());
692 descriptor->Initialize( 692 descriptor->Initialize(
693 Runtime::FunctionForId(Runtime::kNumberToString)->entry); 693 Runtime::FunctionForId(Runtime::kNumberToString)->entry);
694 } 694 }
695 695
696 696
697 void FastCloneRegExpStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
698 FastCloneRegExpDescriptor call_descriptor(isolate());
699 descriptor->Initialize(
700 Runtime::FunctionForId(Runtime::kCreateRegExpLiteral)->entry);
701 }
702
703
697 void FastCloneShallowArrayStub::InitializeDescriptor( 704 void FastCloneShallowArrayStub::InitializeDescriptor(
698 CodeStubDescriptor* descriptor) { 705 CodeStubDescriptor* descriptor) {
699 FastCloneShallowArrayDescriptor call_descriptor(isolate()); 706 FastCloneShallowArrayDescriptor call_descriptor(isolate());
700 descriptor->Initialize( 707 descriptor->Initialize(
701 Runtime::FunctionForId(Runtime::kCreateArrayLiteralStubBailout)->entry); 708 Runtime::FunctionForId(Runtime::kCreateArrayLiteralStubBailout)->entry);
702 } 709 }
703 710
704 711
705 void FastCloneShallowObjectStub::InitializeDescriptor( 712 void FastCloneShallowObjectStub::InitializeDescriptor(
706 CodeStubDescriptor* descriptor) { 713 CodeStubDescriptor* descriptor) {
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 if (type->Is(Type::UntaggedPointer())) { 1061 if (type->Is(Type::UntaggedPointer())) {
1055 return Representation::External(); 1062 return Representation::External();
1056 } 1063 }
1057 1064
1058 DCHECK(!type->Is(Type::Untagged())); 1065 DCHECK(!type->Is(Type::Untagged()));
1059 return Representation::Tagged(); 1066 return Representation::Tagged();
1060 } 1067 }
1061 1068
1062 } // namespace internal 1069 } // namespace internal
1063 } // namespace v8 1070 } // namespace v8
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