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

Side by Side Diff: src/objects.h

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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 7697 matching lines...) Expand 10 before | Expand all | Expand 10 after
7708 uint32_t value() { return value_; } 7708 uint32_t value() { return value_; }
7709 private: 7709 private:
7710 uint32_t value_; 7710 uint32_t value_;
7711 }; 7711 };
7712 7712
7713 DECL_ACCESSORS(data, Object) 7713 DECL_ACCESSORS(data, Object)
7714 DECL_ACCESSORS(flags, Object) 7714 DECL_ACCESSORS(flags, Object)
7715 DECL_ACCESSORS(source, Object) 7715 DECL_ACCESSORS(source, Object)
7716 7716
7717 static MaybeHandle<JSRegExp> New(Handle<String> source, Handle<String> flags); 7717 static MaybeHandle<JSRegExp> New(Handle<String> source, Handle<String> flags);
7718 static Handle<JSRegExp> Copy(Handle<JSRegExp> regexp);
7718 7719
7719 static MaybeHandle<JSRegExp> Initialize(Handle<JSRegExp> regexp, 7720 static MaybeHandle<JSRegExp> Initialize(Handle<JSRegExp> regexp,
7720 Handle<String> source, 7721 Handle<String> source,
7721 Handle<String> flags_string); 7722 Handle<String> flags_string);
7722 7723
7723 inline Type TypeTag(); 7724 inline Type TypeTag();
7724 inline int CaptureCount(); 7725 inline int CaptureCount();
7725 inline Flags GetFlags(); 7726 inline Flags GetFlags();
7726 inline String* Pattern(); 7727 inline String* Pattern();
7727 inline Object* DataAt(int index); 7728 inline Object* DataAt(int index);
(...skipping 3010 matching lines...) Expand 10 before | Expand all | Expand 10 after
10738 } 10739 }
10739 return value; 10740 return value;
10740 } 10741 }
10741 }; 10742 };
10742 10743
10743 10744
10744 } // NOLINT, false-positive due to second-order macros. 10745 } // NOLINT, false-positive due to second-order macros.
10745 } // NOLINT, false-positive due to second-order macros. 10746 } // NOLINT, false-positive due to second-order macros.
10746 10747
10747 #endif // V8_OBJECTS_H_ 10748 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698