Chromium Code Reviews| Index: src/runtime/runtime.h |
| diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h |
| index 4048cfb9bbbd02bc169bcbd143be1187972b9eb3..0e227503a73e277c4bf79ca46bb5ad88adecb532 100644 |
| --- a/src/runtime/runtime.h |
| +++ b/src/runtime/runtime.h |
| @@ -6,6 +6,7 @@ |
| #define V8_RUNTIME_RUNTIME_H_ |
| #include "src/allocation.h" |
| +#include "src/contexts.h" |
|
Michael Starzinger
2015/08/26 09:43:22
nit: Include shouldn't be needed anymore, let's dr
Yang
2015/08/26 10:27:30
Done.
|
| #include "src/objects.h" |
| #include "src/unicode.h" |
| #include "src/zone.h" |
| @@ -303,8 +304,7 @@ namespace internal { |
| #define FOR_EACH_INTRINSIC_INTERNAL(F) \ |
| F(CheckIsBootstrapping, 0, 1) \ |
| F(ExportPrivateSymbols, 1, 1) \ |
| - F(ImportToRuntime, 1, 1) \ |
| - F(ImportExperimentalToRuntime, 1, 1) \ |
| + F(InstallToContext, 1, 1) \ |
| F(InstallJSBuiltins, 1, 1) \ |
| F(Throw, 1, 1) \ |
| F(ReThrow, 1, 1) \ |
| @@ -982,10 +982,11 @@ class Runtime : public AllStatic { |
| enum FunctionId { |
| #define F(name, nargs, ressize) k##name, |
| #define I(name, nargs, ressize) kInline##name, |
| - FOR_EACH_INTRINSIC(F) FOR_EACH_INTRINSIC(I) |
| + FOR_EACH_INTRINSIC(F) |
| + FOR_EACH_INTRINSIC(I) |
| #undef I |
| #undef F |
| - kNumFunctions, |
| + kNumFunctions, |
| }; |
| enum IntrinsicType { RUNTIME, INLINE }; |
| @@ -997,14 +998,16 @@ class Runtime : public AllStatic { |
| // The JS name of the function. |
| const char* name; |
| - // The C++ (native) entry point. NULL if the function is inlined. |
| - byte* entry; |
| + // For RUNTIME functions, this is the C++ entry point. |
| + // For INLINE functions this is the C++ entry point of the fall back. |
| + // For CONTEXT functions this is the native context index. |
|
Michael Starzinger
2015/08/26 09:43:22
nit: Last line of the comment is obsolete now, let
Yang
2015/08/26 10:27:30
Done.
|
| + Address entry; |
| // The number of arguments expected. nargs is -1 if the function takes |
| // a variable number of arguments. |
| - int nargs; |
| + int8_t nargs; |
| // Size of result. Most functions return a single pointer, size 1. |
| - int result_size; |
| + int8_t result_size; |
| }; |
| static const int kNotFound = -1; |