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

Side by Side Diff: src/accessors.h

Issue 1070093002: Eagerly escape RegExp.source. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | src/accessors.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 #ifndef V8_ACCESSORS_H_ 5 #ifndef V8_ACCESSORS_H_
6 #define V8_ACCESSORS_H_ 6 #define V8_ACCESSORS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 // The list of accessor descriptors. This is a second-order macro 14 // The list of accessor descriptors. This is a second-order macro
15 // taking a macro to be applied to all accessor descriptor names. 15 // taking a macro to be applied to all accessor descriptor names.
16 #define ACCESSOR_INFO_LIST(V) \ 16 #define ACCESSOR_INFO_LIST(V) \
17 V(ArgumentsIterator) \ 17 V(ArgumentsIterator) \
18 V(ArrayLength) \ 18 V(ArrayLength) \
19 V(FunctionArguments) \ 19 V(FunctionArguments) \
20 V(FunctionCaller) \ 20 V(FunctionCaller) \
21 V(FunctionName) \ 21 V(FunctionName) \
22 V(FunctionLength) \ 22 V(FunctionLength) \
23 V(FunctionPrototype) \ 23 V(FunctionPrototype) \
24 V(RegExpSource) \
25 V(ScriptColumnOffset) \ 24 V(ScriptColumnOffset) \
26 V(ScriptCompilationType) \ 25 V(ScriptCompilationType) \
27 V(ScriptContextData) \ 26 V(ScriptContextData) \
28 V(ScriptEvalFromScript) \ 27 V(ScriptEvalFromScript) \
29 V(ScriptEvalFromScriptPosition) \ 28 V(ScriptEvalFromScriptPosition) \
30 V(ScriptEvalFromFunctionName) \ 29 V(ScriptEvalFromFunctionName) \
31 V(ScriptId) \ 30 V(ScriptId) \
32 V(ScriptLineEnds) \ 31 V(ScriptLineEnds) \
33 V(ScriptLineOffset) \ 32 V(ScriptLineOffset) \
34 V(ScriptName) \ 33 V(ScriptName) \
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 93
95 94
96 private: 95 private:
97 // Helper functions. 96 // Helper functions.
98 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value); 97 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value);
99 }; 98 };
100 99
101 } } // namespace v8::internal 100 } } // namespace v8::internal
102 101
103 #endif // V8_ACCESSORS_H_ 102 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698