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

Side by Side Diff: src/builtins/builtins.h

Issue 2676583002: [ic] Encode [Keyed]StoreIC's language mode in slot kind instead of code object's flags. (Closed)
Patch Set: Rebasing Created 3 years, 10 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
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_BUILTINS_H_ 5 #ifndef V8_BUILTINS_BUILTINS_H_
6 #define V8_BUILTINS_BUILTINS_H_ 6 #define V8_BUILTINS_BUILTINS_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 \ 225 \
226 /* Handlers */ \ 226 /* Handlers */ \
227 TFS(LoadICProtoArray, HANDLER, Code::LOAD_IC, LoadICProtoArray) \ 227 TFS(LoadICProtoArray, HANDLER, Code::LOAD_IC, LoadICProtoArray) \
228 TFS(LoadICProtoArrayThrowIfNonexistent, HANDLER, Code::LOAD_IC, \ 228 TFS(LoadICProtoArrayThrowIfNonexistent, HANDLER, Code::LOAD_IC, \
229 LoadICProtoArray) \ 229 LoadICProtoArray) \
230 TFS(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, kNoExtraICState, LoadWithVector) \ 230 TFS(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, kNoExtraICState, LoadWithVector) \
231 TFS(KeyedLoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ 231 TFS(KeyedLoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \
232 TFS(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC, LoadWithVector) \ 232 TFS(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC, LoadWithVector) \
233 TFS(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, kNoExtraICState, \ 233 TFS(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, kNoExtraICState, \
234 StoreWithVector) \ 234 StoreWithVector) \
235 TFS(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, \ 235 TFS(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, kNoExtraICState, \
236 StoreICState::kStrictModeState, StoreWithVector) \ 236 StoreWithVector) \
237 ASM(KeyedStoreIC_Miss) \ 237 ASM(KeyedStoreIC_Miss) \
238 ASH(KeyedStoreIC_Slow, HANDLER, Code::KEYED_STORE_IC) \ 238 ASH(KeyedStoreIC_Slow, HANDLER, Code::KEYED_STORE_IC) \
239 TFS(LoadGlobalIC_Miss, BUILTIN, kNoExtraICState, LoadGlobalWithVector) \ 239 TFS(LoadGlobalIC_Miss, BUILTIN, kNoExtraICState, LoadGlobalWithVector) \
240 TFS(LoadGlobalIC_Slow, HANDLER, Code::LOAD_GLOBAL_IC, LoadGlobalWithVector) \ 240 TFS(LoadGlobalIC_Slow, HANDLER, Code::LOAD_GLOBAL_IC, LoadGlobalWithVector) \
241 TFS(LoadField, HANDLER, Code::LOAD_IC, LoadField) \ 241 TFS(LoadField, HANDLER, Code::LOAD_IC, LoadField) \
242 ASH(LoadIC_Getter_ForDeopt, LOAD_IC, kNoExtraICState) \ 242 ASH(LoadIC_Getter_ForDeopt, LOAD_IC, kNoExtraICState) \
243 TFS(LoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \ 243 TFS(LoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \
244 TFS(LoadIC_Normal, HANDLER, Code::LOAD_IC, LoadWithVector) \ 244 TFS(LoadIC_Normal, HANDLER, Code::LOAD_IC, LoadWithVector) \
245 TFS(LoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \ 245 TFS(LoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \
246 TFS(StoreIC_Miss, BUILTIN, kNoExtraICState, StoreWithVector) \ 246 TFS(StoreIC_Miss, BUILTIN, kNoExtraICState, StoreWithVector) \
247 TFS(StoreIC_Normal, HANDLER, Code::STORE_IC, StoreWithVector) \ 247 TFS(StoreIC_Normal, HANDLER, Code::STORE_IC, StoreWithVector) \
248 ASH(StoreIC_Setter_ForDeopt, STORE_IC, StoreICState::kStrictModeState) \ 248 ASH(StoreIC_Setter_ForDeopt, STORE_IC, kNoExtraICState) \
249 TFS(StoreIC_SlowSloppy, HANDLER, Code::STORE_IC, StoreWithVector) \ 249 TFS(StoreIC_SlowSloppy, HANDLER, Code::STORE_IC, StoreWithVector) \
250 TFS(StoreIC_SlowStrict, HANDLER, Code::STORE_IC, StoreWithVector) \ 250 TFS(StoreIC_SlowStrict, HANDLER, Code::STORE_IC, StoreWithVector) \
251 \ 251 \
252 /* Built-in functions for Javascript */ \ 252 /* Built-in functions for Javascript */ \
253 /* Special internal builtins */ \ 253 /* Special internal builtins */ \
254 CPP(EmptyFunction) \ 254 CPP(EmptyFunction) \
255 CPP(Illegal) \ 255 CPP(Illegal) \
256 CPP(RestrictedFunctionPropertiesThrower) \ 256 CPP(RestrictedFunctionPropertiesThrower) \
257 CPP(RestrictedStrictArgumentsPropertiesThrower) \ 257 CPP(RestrictedStrictArgumentsPropertiesThrower) \
258 CPP(UnsupportedThrower) \ 258 CPP(UnsupportedThrower) \
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 CPP(JsonParse) \ 469 CPP(JsonParse) \
470 CPP(JsonStringify) \ 470 CPP(JsonStringify) \
471 \ 471 \
472 /* ICs */ \ 472 /* ICs */ \
473 TFS(LoadIC, LOAD_IC, kNoExtraICState, LoadWithVector) \ 473 TFS(LoadIC, LOAD_IC, kNoExtraICState, LoadWithVector) \
474 TFS(LoadICTrampoline, LOAD_IC, kNoExtraICState, Load) \ 474 TFS(LoadICTrampoline, LOAD_IC, kNoExtraICState, Load) \
475 TFS(KeyedLoadIC, KEYED_LOAD_IC, kNoExtraICState, LoadWithVector) \ 475 TFS(KeyedLoadIC, KEYED_LOAD_IC, kNoExtraICState, LoadWithVector) \
476 TFS(KeyedLoadICTrampoline, KEYED_LOAD_IC, kNoExtraICState, Load) \ 476 TFS(KeyedLoadICTrampoline, KEYED_LOAD_IC, kNoExtraICState, Load) \
477 TFS(StoreIC, STORE_IC, kNoExtraICState, StoreWithVector) \ 477 TFS(StoreIC, STORE_IC, kNoExtraICState, StoreWithVector) \
478 TFS(StoreICTrampoline, STORE_IC, kNoExtraICState, Store) \ 478 TFS(StoreICTrampoline, STORE_IC, kNoExtraICState, Store) \
479 TFS(StoreICStrict, STORE_IC, StoreICState::kStrictModeState, \ 479 TFS(StoreICStrict, STORE_IC, kNoExtraICState, StoreWithVector) \
480 StoreWithVector) \ 480 TFS(StoreICStrictTrampoline, STORE_IC, kNoExtraICState, Store) \
481 TFS(StoreICStrictTrampoline, STORE_IC, StoreICState::kStrictModeState, \
482 Store) \
483 TFS(KeyedStoreIC, KEYED_STORE_IC, kNoExtraICState, StoreWithVector) \ 481 TFS(KeyedStoreIC, KEYED_STORE_IC, kNoExtraICState, StoreWithVector) \
484 TFS(KeyedStoreICTrampoline, KEYED_STORE_IC, kNoExtraICState, Store) \ 482 TFS(KeyedStoreICTrampoline, KEYED_STORE_IC, kNoExtraICState, Store) \
485 TFS(KeyedStoreICStrict, KEYED_STORE_IC, StoreICState::kStrictModeState, \ 483 TFS(KeyedStoreICStrict, KEYED_STORE_IC, kNoExtraICState, StoreWithVector) \
486 StoreWithVector) \ 484 TFS(KeyedStoreICStrictTrampoline, KEYED_STORE_IC, kNoExtraICState, Store) \
487 TFS(KeyedStoreICStrictTrampoline, KEYED_STORE_IC, \
488 StoreICState::kStrictModeState, Store) \
489 TFS(LoadGlobalIC, LOAD_GLOBAL_IC, LoadGlobalICState::kNotInsideTypeOfState, \ 485 TFS(LoadGlobalIC, LOAD_GLOBAL_IC, LoadGlobalICState::kNotInsideTypeOfState, \
490 LoadGlobalWithVector) \ 486 LoadGlobalWithVector) \
491 TFS(LoadGlobalICInsideTypeof, LOAD_GLOBAL_IC, \ 487 TFS(LoadGlobalICInsideTypeof, LOAD_GLOBAL_IC, \
492 LoadGlobalICState::kInsideTypeOfState, LoadGlobalWithVector) \ 488 LoadGlobalICState::kInsideTypeOfState, LoadGlobalWithVector) \
493 TFS(LoadGlobalICTrampoline, LOAD_GLOBAL_IC, \ 489 TFS(LoadGlobalICTrampoline, LOAD_GLOBAL_IC, \
494 LoadGlobalICState::kNotInsideTypeOfState, LoadGlobal) \ 490 LoadGlobalICState::kNotInsideTypeOfState, LoadGlobal) \
495 TFS(LoadGlobalICInsideTypeofTrampoline, LOAD_GLOBAL_IC, \ 491 TFS(LoadGlobalICInsideTypeofTrampoline, LOAD_GLOBAL_IC, \
496 LoadGlobalICState::kInsideTypeOfState, LoadGlobal) \ 492 LoadGlobalICState::kInsideTypeOfState, LoadGlobal) \
497 \ 493 \
498 /* Math */ \ 494 /* Math */ \
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 948
953 friend class Isolate; 949 friend class Isolate;
954 950
955 DISALLOW_COPY_AND_ASSIGN(Builtins); 951 DISALLOW_COPY_AND_ASSIGN(Builtins);
956 }; 952 };
957 953
958 } // namespace internal 954 } // namespace internal
959 } // namespace v8 955 } // namespace v8
960 956
961 #endif // V8_BUILTINS_BUILTINS_H_ 957 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698