| Index: src/runtime.h
|
| diff --git a/src/runtime.h b/src/runtime.h
|
| index 43d4065615fb66fe763afcef984253a7fd444051..95fb41956f79adce6806753aab0efb95b715c571 100644
|
| --- a/src/runtime.h
|
| +++ b/src/runtime.h
|
| @@ -64,6 +64,7 @@ namespace internal {
|
| F(ToFastProperties, 1, 1) \
|
| F(FinishArrayPrototypeSetup, 1, 1) \
|
| F(SpecialArrayFunctions, 1, 1) \
|
| + F(IsCallable, 1, 1) \
|
| F(IsClassicModeFunction, 1, 1) \
|
| F(GetDefaultReceiver, 1, 1) \
|
| \
|
| @@ -100,7 +101,7 @@ namespace internal {
|
| F(GetOptimizationStatus, -1, 1) \
|
| F(GetOptimizationCount, 1, 1) \
|
| F(UnblockConcurrentRecompilation, 0, 1) \
|
| - F(CompileForOnStackReplacement, 2, 1) \
|
| + F(CompileForOnStackReplacement, 1, 1) \
|
| F(SetAllocationTimeout, 2, 1) \
|
| F(AllocateInNewSpace, 1, 1) \
|
| F(AllocateInTargetSpace, 2, 1) \
|
| @@ -179,17 +180,13 @@ namespace internal {
|
| F(Math_asin, 1, 1) \
|
| F(Math_atan, 1, 1) \
|
| F(Math_atan2, 2, 1) \
|
| - F(Math_ceil, 1, 1) \
|
| - F(Math_cos, 1, 1) \
|
| F(Math_exp, 1, 1) \
|
| F(Math_floor, 1, 1) \
|
| F(Math_log, 1, 1) \
|
| F(Math_pow, 2, 1) \
|
| F(Math_pow_cfunction, 2, 1) \
|
| F(RoundNumber, 1, 1) \
|
| - F(Math_sin, 1, 1) \
|
| F(Math_sqrt, 1, 1) \
|
| - F(Math_tan, 1, 1) \
|
| \
|
| /* Regular expressions */ \
|
| F(RegExpCompile, 3, 1) \
|
| @@ -300,7 +297,8 @@ namespace internal {
|
| /* Literals */ \
|
| F(MaterializeRegExpLiteral, 4, 1)\
|
| F(CreateObjectLiteral, 4, 1) \
|
| - F(CreateArrayLiteral, 3, 1) \
|
| + F(CreateArrayLiteral, 4, 1) \
|
| + F(CreateArrayLiteralStubBailout, 3, 1) \
|
| \
|
| /* Harmony generators */ \
|
| F(CreateJSGeneratorObject, 0, 1) \
|
| @@ -352,10 +350,12 @@ namespace internal {
|
| F(WeakCollectionDelete, 2, 1) \
|
| F(WeakCollectionSet, 3, 1) \
|
| \
|
| + /* Harmony events */ \
|
| + F(SetMicrotaskPending, 1, 1) \
|
| + \
|
| /* Harmony observe */ \
|
| F(IsObserved, 1, 1) \
|
| F(SetIsObserved, 1, 1) \
|
| - F(SetObserverDeliveryPending, 0, 1) \
|
| F(GetObservationState, 0, 1) \
|
| F(ObservationWeakMapCreate, 0, 1) \
|
| F(UnwrapGlobalProxy, 1, 1) \
|
| @@ -439,6 +439,7 @@ namespace internal {
|
| F(TraceEnter, 0, 1) \
|
| F(TraceExit, 1, 1) \
|
| F(Abort, 2, 1) \
|
| + F(AbortJS, 1, 1) \
|
| /* Logging */ \
|
| F(Log, 2, 1) \
|
| /* ES5 */ \
|
| @@ -829,6 +830,22 @@ class Runtime : public AllStatic {
|
| Isolate* isolate,
|
| JSArrayBuffer* phantom_array_buffer);
|
|
|
| + enum TypedArrayId {
|
| + // arrayIds below should be synchromized with typedarray.js natives.
|
| + ARRAY_ID_UINT8 = 1,
|
| + ARRAY_ID_INT8 = 2,
|
| + ARRAY_ID_UINT16 = 3,
|
| + ARRAY_ID_INT16 = 4,
|
| + ARRAY_ID_UINT32 = 5,
|
| + ARRAY_ID_INT32 = 6,
|
| + ARRAY_ID_FLOAT32 = 7,
|
| + ARRAY_ID_FLOAT64 = 8,
|
| + ARRAY_ID_UINT8C = 9
|
| + };
|
| +
|
| + static void ArrayIdToTypeAndSize(int array_id,
|
| + ExternalArrayType *type, size_t *element_size);
|
| +
|
| // Helper functions used stubs.
|
| static void PerformGC(Object* result, Isolate* isolate);
|
|
|
|
|