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

Unified Diff: src/runtime/runtime.h

Issue 1540953004: [runtime] Rewrite Function.prototype.toString in C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typos. Created 5 years 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
Index: src/runtime/runtime.h
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index 8119138bb9afce5d7000b0c349a56b3c4d086e51..5ec87e7a960c62c5e01c5b4f4302e51f1ac4814d 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -84,7 +84,6 @@ namespace internal {
F(DefineClass, 5, 1) \
F(FinalizeClassDefinition, 2, 1) \
F(DefineClassMethod, 3, 1) \
- F(ClassGetSourceCode, 1, 1) \
F(LoadFromSuper, 4, 1) \
F(LoadKeyedFromSuper, 4, 1) \
F(StoreToSuper_Strict, 4, 1) \
@@ -232,36 +231,33 @@ namespace internal {
F(InterpreterForInPrepare, 1, 1)
-#define FOR_EACH_INTRINSIC_FUNCTION(F) \
- F(FunctionGetName, 1, 1) \
- F(FunctionSetName, 2, 1) \
- F(FunctionNameShouldPrintAsAnonymous, 1, 1) \
- F(CompleteFunctionConstruction, 3, 1) \
- F(FunctionIsArrow, 1, 1) \
- F(FunctionIsConciseMethod, 1, 1) \
- F(FunctionRemovePrototype, 1, 1) \
- F(FunctionGetScript, 1, 1) \
- F(FunctionGetSourceCode, 1, 1) \
- F(FunctionGetScriptSourcePosition, 1, 1) \
- F(FunctionGetPositionForOffset, 2, 1) \
- F(FunctionSetInstanceClassName, 2, 1) \
- F(FunctionSetLength, 2, 1) \
- F(FunctionSetPrototype, 2, 1) \
- F(FunctionIsAPIFunction, 1, 1) \
- F(FunctionHidesSource, 1, 1) \
- F(SetCode, 2, 1) \
- F(SetNativeFlag, 1, 1) \
- F(ThrowStrongModeTooFewArguments, 0, 1) \
- F(IsConstructor, 1, 1) \
- F(SetForceInlineFlag, 1, 1) \
- F(FunctionBindArguments, 5, 1) \
- F(BoundFunctionGetBindings, 1, 1) \
- F(NewObjectFromBound, 1, 1) \
- F(Call, -1 /* >= 2 */, 1) \
- F(TailCall, -1 /* >= 2 */, 1) \
- F(Apply, 5, 1) \
- F(ConvertReceiver, 1, 1) \
- F(IsFunction, 1, 1)
+#define FOR_EACH_INTRINSIC_FUNCTION(F) \
+ F(FunctionGetName, 1, 1) \
+ F(FunctionSetName, 2, 1) \
+ F(CompleteFunctionConstruction, 3, 1) \
+ F(FunctionRemovePrototype, 1, 1) \
+ F(FunctionGetScript, 1, 1) \
+ F(FunctionGetSourceCode, 1, 1) \
+ F(FunctionGetScriptSourcePosition, 1, 1) \
+ F(FunctionGetPositionForOffset, 2, 1) \
+ F(FunctionSetInstanceClassName, 2, 1) \
+ F(FunctionSetLength, 2, 1) \
+ F(FunctionSetPrototype, 2, 1) \
+ F(FunctionIsAPIFunction, 1, 1) \
+ F(SetCode, 2, 1) \
+ F(SetNativeFlag, 1, 1) \
+ F(ThrowStrongModeTooFewArguments, 0, 1) \
+ F(IsConstructor, 1, 1) \
+ F(SetForceInlineFlag, 1, 1) \
+ F(FunctionBindArguments, 5, 1) \
+ F(BoundFunctionGetBindings, 1, 1) \
+ F(NewObjectFromBound, 1, 1) \
+ F(Call, -1 /* >= 2 */, 1) \
+ F(TailCall, -1 /* >= 2 */, 1) \
+ F(Apply, 5, 1) \
+ F(ConvertReceiver, 1, 1) \
+ F(IsFunction, 1, 1) \
+ F(FunctionToString, 1, 1)
#define FOR_EACH_INTRINSIC_GENERATOR(F) \
@@ -274,7 +270,6 @@ namespace internal {
F(GeneratorGetReceiver, 1, 1) \
F(GeneratorGetContinuation, 1, 1) \
F(GeneratorGetSourcePosition, 1, 1) \
- F(FunctionIsGenerator, 1, 1) \
F(GeneratorNext, 2, 1) \
F(GeneratorThrow, 2, 1)

Powered by Google App Engine
This is Rietveld 408576698