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

Unified Diff: src/builtins/builtins.h

Issue 2152693002: [stubs] Introduce NonPrimitiveToPrimitive builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins.h
diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h
index 2c78642d8b33e9dbf4fecf2377c1b2d741a8ef55..1f684103aecd2f6838f0fc19f527212154d860ce 100644
--- a/src/builtins/builtins.h
+++ b/src/builtins/builtins.h
@@ -362,17 +362,22 @@ class CodeStubAssembler;
V(AtomicsStore, 4)
// Define list of builtins implemented in TurboFan (with CallStub linkage).
-#define BUILTIN_LIST_S(V) \
- V(LoadGlobalIC_Miss, BUILTIN, kNoExtraICState, LoadGlobalWithVector) \
- V(LoadGlobalIC_SlowNotInsideTypeof, HANDLER, Code::LOAD_GLOBAL_IC, \
- LoadGlobalWithVector) \
- V(LoadGlobalIC_SlowInsideTypeof, HANDLER, Code::LOAD_GLOBAL_IC, \
- LoadGlobalWithVector) \
- V(LoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \
- V(LoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \
- V(StoreIC_Miss, BUILTIN, kNoExtraICState, VectorStoreIC) \
- V(StoreIC_SlowSloppy, HANDLER, Code::STORE_IC, VectorStoreIC) \
- V(StoreIC_SlowStrict, HANDLER, Code::STORE_IC, VectorStoreIC)
+#define BUILTIN_LIST_S(V) \
+ V(LoadGlobalIC_Miss, BUILTIN, kNoExtraICState, LoadGlobalWithVector) \
+ V(LoadGlobalIC_SlowNotInsideTypeof, HANDLER, Code::LOAD_GLOBAL_IC, \
+ LoadGlobalWithVector) \
+ V(LoadGlobalIC_SlowInsideTypeof, HANDLER, Code::LOAD_GLOBAL_IC, \
+ LoadGlobalWithVector) \
+ V(LoadIC_Miss, BUILTIN, kNoExtraICState, LoadWithVector) \
+ V(LoadIC_Slow, HANDLER, Code::LOAD_IC, LoadWithVector) \
+ V(StoreIC_Miss, BUILTIN, kNoExtraICState, VectorStoreIC) \
+ V(StoreIC_SlowSloppy, HANDLER, Code::STORE_IC, VectorStoreIC) \
+ V(StoreIC_SlowStrict, HANDLER, Code::STORE_IC, VectorStoreIC) \
+ V(OrdinaryToPrimitive_Number, BUILTIN, kNoExtraICState, TypeConversion) \
+ V(OrdinaryToPrimitive_String, BUILTIN, kNoExtraICState, TypeConversion) \
+ V(NonPrimitiveToPrimitive_Default, BUILTIN, kNoExtraICState, TypeConversion) \
+ V(NonPrimitiveToPrimitive_Number, BUILTIN, kNoExtraICState, TypeConversion) \
+ V(NonPrimitiveToPrimitive_String, BUILTIN, kNoExtraICState, TypeConversion)
// Define list of builtin handlers implemented in assembly.
#define BUILTIN_LIST_H(V) \
@@ -457,6 +462,9 @@ class Builtins {
Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny,
TailCallMode tail_call_mode = TailCallMode::kDisallow);
Handle<Code> CallBoundFunction(TailCallMode tail_call_mode);
+ Handle<Code> NonPrimitiveToPrimitive(
+ ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
+ Handle<Code> OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint);
Handle<Code> InterpreterPushArgsAndCall(
TailCallMode tail_call_mode,
CallableType function_type = CallableType::kAny);
« no previous file with comments | « no previous file | src/builtins/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698