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

Side by Side Diff: src/builtins.h

Issue 1109223004: [strong] Disallow implicit conversions for add (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback 3 Created 5 years, 7 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/code-stubs-hydrogen.cc » ('j') | test/mjsunit/strong/implicit-conversions.js » ('J')
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 DEBUG_BREAK) \ 163 DEBUG_BREAK) \
164 V(FrameDropper_LiveEdit, BUILTIN, DEBUG_STUB, \ 164 V(FrameDropper_LiveEdit, BUILTIN, DEBUG_STUB, \
165 DEBUG_BREAK) 165 DEBUG_BREAK)
166 166
167 // Define list of builtins implemented in JavaScript. 167 // Define list of builtins implemented in JavaScript.
168 #define BUILTINS_LIST_JS(V) \ 168 #define BUILTINS_LIST_JS(V) \
169 V(EQUALS, 1) \ 169 V(EQUALS, 1) \
170 V(STRICT_EQUALS, 1) \ 170 V(STRICT_EQUALS, 1) \
171 V(COMPARE, 2) \ 171 V(COMPARE, 2) \
172 V(ADD, 1) \ 172 V(ADD, 1) \
173 V(ADD_STRONG, 1) \
173 V(SUB, 1) \ 174 V(SUB, 1) \
174 V(SUB_STRONG, 1) \ 175 V(SUB_STRONG, 1) \
175 V(MUL, 1) \ 176 V(MUL, 1) \
176 V(MUL_STRONG, 1) \ 177 V(MUL_STRONG, 1) \
177 V(DIV, 1) \ 178 V(DIV, 1) \
178 V(DIV_STRONG, 1) \ 179 V(DIV_STRONG, 1) \
179 V(MOD, 1) \ 180 V(MOD, 1) \
180 V(MOD_STRONG, 1) \ 181 V(MOD_STRONG, 1) \
181 V(BIT_OR, 1) \ 182 V(BIT_OR, 1) \
182 V(BIT_OR_STRONG, 1) \ 183 V(BIT_OR_STRONG, 1) \
(...skipping 13 matching lines...) Expand all
196 V(FILTER_KEY, 1) \ 197 V(FILTER_KEY, 1) \
197 V(CALL_NON_FUNCTION, 0) \ 198 V(CALL_NON_FUNCTION, 0) \
198 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR, 0) \ 199 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR, 0) \
199 V(CALL_FUNCTION_PROXY, 1) \ 200 V(CALL_FUNCTION_PROXY, 1) \
200 V(CALL_FUNCTION_PROXY_AS_CONSTRUCTOR, 1) \ 201 V(CALL_FUNCTION_PROXY_AS_CONSTRUCTOR, 1) \
201 V(TO_OBJECT, 0) \ 202 V(TO_OBJECT, 0) \
202 V(TO_NUMBER, 0) \ 203 V(TO_NUMBER, 0) \
203 V(TO_STRING, 0) \ 204 V(TO_STRING, 0) \
204 V(TO_NAME, 0) \ 205 V(TO_NAME, 0) \
205 V(STRING_ADD_LEFT, 1) \ 206 V(STRING_ADD_LEFT, 1) \
207 V(STRING_ADD_LEFT_STRONG, 1) \
206 V(STRING_ADD_RIGHT, 1) \ 208 V(STRING_ADD_RIGHT, 1) \
209 V(STRING_ADD_RIGHT_STRONG, 1) \
207 V(APPLY_PREPARE, 1) \ 210 V(APPLY_PREPARE, 1) \
208 V(REFLECT_APPLY_PREPARE, 1) \ 211 V(REFLECT_APPLY_PREPARE, 1) \
209 V(REFLECT_CONSTRUCT_PREPARE, 2) \ 212 V(REFLECT_CONSTRUCT_PREPARE, 2) \
210 V(STACK_OVERFLOW, 1) 213 V(STACK_OVERFLOW, 1)
211 214
212 class BuiltinFunctionTable; 215 class BuiltinFunctionTable;
213 class ObjectVisitor; 216 class ObjectVisitor;
214 217
215 218
216 class Builtins { 219 class Builtins {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 362
360 friend class BuiltinFunctionTable; 363 friend class BuiltinFunctionTable;
361 friend class Isolate; 364 friend class Isolate;
362 365
363 DISALLOW_COPY_AND_ASSIGN(Builtins); 366 DISALLOW_COPY_AND_ASSIGN(Builtins);
364 }; 367 };
365 368
366 } } // namespace v8::internal 369 } } // namespace v8::internal
367 370
368 #endif // V8_BUILTINS_H_ 371 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs-hydrogen.cc » ('j') | test/mjsunit/strong/implicit-conversions.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698