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

Side by Side Diff: src/builtins.h

Issue 1168093002: [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 6 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/builtins.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_BUILTINS_H_ 5 #ifndef V8_BUILTINS_H_
6 #define V8_BUILTINS_H_ 6 #define V8_BUILTINS_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 V(NotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 79 V(NotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \
80 V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 80 V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \
81 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 81 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \
82 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 82 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \
83 \ 83 \
84 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 84 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \
85 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 85 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \
86 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 86 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \
87 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 87 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \
88 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ 88 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \
89 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED, kNoExtraICState) \
90 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ 89 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \
91 \ 90 \
91 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \
92 LoadICState::kStrongModeState) \
93 \
92 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \ 94 V(StoreIC_Setter_ForDeopt, STORE_IC, MONOMORPHIC, \
93 StoreICState::kStrictModeState) \ 95 StoreICState::kStrictModeState) \
94 \ 96 \
95 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, kNoExtraICState) \ 97 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED, kNoExtraICState) \
96 V(KeyedStoreIC_PreMonomorphic, KEYED_STORE_IC, PREMONOMORPHIC, \ 98 V(KeyedStoreIC_PreMonomorphic, KEYED_STORE_IC, PREMONOMORPHIC, \
97 kNoExtraICState) \ 99 kNoExtraICState) \
98 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ 100 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \
99 \ 101 \
100 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ 102 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \
101 StoreICState::kStrictModeState) \ 103 StoreICState::kStrictModeState) \
102 V(KeyedStoreIC_PreMonomorphic_Strict, KEYED_STORE_IC, PREMONOMORPHIC, \ 104 V(KeyedStoreIC_PreMonomorphic_Strict, KEYED_STORE_IC, PREMONOMORPHIC, \
103 StoreICState::kStrictModeState) \ 105 StoreICState::kStrictModeState) \
104 V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \ 106 V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \
105 StoreICState::kStrictModeState) \ 107 StoreICState::kStrictModeState) \
106 \ 108 \
107 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \
108 V(FunctionCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 109 V(FunctionCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \
109 V(FunctionApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 110 V(FunctionApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \
110 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 111 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \
111 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 112 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \
112 \ 113 \
113 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 114 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \
114 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 115 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \
115 \ 116 \
116 V(StringConstructCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 117 V(StringConstructCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \
117 \ 118 \
118 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 119 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \
119 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 120 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \
120 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 121 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \
121 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 122 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \
122 \ 123 \
123 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 124 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \
124 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 125 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \
125 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 126 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \
126 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) 127 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V)
127 128
128 // Define list of builtin handlers implemented in assembly. 129 // Define list of builtin handlers implemented in assembly.
129 #define BUILTIN_LIST_H(V) \ 130 #define BUILTIN_LIST_H(V) \
130 V(LoadIC_Slow, LOAD_IC) \ 131 V(LoadIC_Slow, LOAD_IC) \
131 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ 132 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \
132 V(StoreIC_Slow, STORE_IC) \ 133 V(StoreIC_Slow, STORE_IC) \
133 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ 134 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \
134 V(LoadIC_Normal, LOAD_IC) \ 135 V(LoadIC_Normal, LOAD_IC) \
135 V(StoreIC_Normal, STORE_IC) 136 V(StoreIC_Normal, STORE_IC)
136 137
137 // Define list of builtins used by the debugger implemented in assembly. 138 // Define list of builtins used by the debugger implemented in assembly.
138 #define BUILTIN_LIST_DEBUG_A(V) \ 139 #define BUILTIN_LIST_DEBUG_A(V) \
139 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \ 140 V(Return_DebugBreak, BUILTIN, DEBUG_STUB, \
140 DEBUG_BREAK) \ 141 DEBUG_BREAK) \
141 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \ 142 V(CallFunctionStub_DebugBreak, BUILTIN, DEBUG_STUB, \
142 DEBUG_BREAK) \ 143 DEBUG_BREAK) \
143 V(CallConstructStub_DebugBreak, BUILTIN, DEBUG_STUB, \ 144 V(CallConstructStub_DebugBreak, BUILTIN, DEBUG_STUB, \
144 DEBUG_BREAK) \ 145 DEBUG_BREAK) \
145 V(CallConstructStub_Recording_DebugBreak, BUILTIN, DEBUG_STUB, \ 146 V(CallConstructStub_Recording_DebugBreak, BUILTIN, DEBUG_STUB, \
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 364
364 friend class BuiltinFunctionTable; 365 friend class BuiltinFunctionTable;
365 friend class Isolate; 366 friend class Isolate;
366 367
367 DISALLOW_COPY_AND_ASSIGN(Builtins); 368 DISALLOW_COPY_AND_ASSIGN(Builtins);
368 }; 369 };
369 370
370 } } // namespace v8::internal 371 } } // namespace v8::internal
371 372
372 #endif // V8_BUILTINS_H_ 373 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698