| Index: src/stub-cache.h
|
| diff --git a/src/stub-cache.h b/src/stub-cache.h
|
| index 358f205b94c22a83c6083c95dd798fcd4780b0d0..bbefc95e6d938b2ff970acc24b4e7aebc588834e 100644
|
| --- a/src/stub-cache.h
|
| +++ b/src/stub-cache.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -197,13 +197,15 @@ class StubCache {
|
|
|
| // ---
|
|
|
| - MUST_USE_RESULT MaybeObject* ComputeCallField(int argc,
|
| - InLoopFlag in_loop,
|
| - Code::Kind,
|
| - String* name,
|
| - Object* object,
|
| - JSObject* holder,
|
| - int index);
|
| + MUST_USE_RESULT MaybeObject* ComputeCallField(
|
| + int argc,
|
| + InLoopFlag in_loop,
|
| + Code::Kind,
|
| + Code::ExtraICState extra_ic_state,
|
| + String* name,
|
| + Object* object,
|
| + JSObject* holder,
|
| + int index);
|
|
|
| MUST_USE_RESULT MaybeObject* ComputeCallConstant(
|
| int argc,
|
| @@ -215,22 +217,27 @@ class StubCache {
|
| JSObject* holder,
|
| JSFunction* function);
|
|
|
| - MUST_USE_RESULT MaybeObject* ComputeCallNormal(int argc,
|
| - InLoopFlag in_loop,
|
| - Code::Kind,
|
| - String* name,
|
| - JSObject* receiver);
|
| + MUST_USE_RESULT MaybeObject* ComputeCallNormal(
|
| + int argc,
|
| + InLoopFlag in_loop,
|
| + Code::Kind,
|
| + Code::ExtraICState extra_ic_state,
|
| + String* name,
|
| + JSObject* receiver);
|
|
|
| - MUST_USE_RESULT MaybeObject* ComputeCallInterceptor(int argc,
|
| - Code::Kind,
|
| - String* name,
|
| - Object* object,
|
| - JSObject* holder);
|
| + MUST_USE_RESULT MaybeObject* ComputeCallInterceptor(
|
| + int argc,
|
| + Code::Kind,
|
| + Code::ExtraICState extra_ic_state,
|
| + String* name,
|
| + Object* object,
|
| + JSObject* holder);
|
|
|
| MUST_USE_RESULT MaybeObject* ComputeCallGlobal(
|
| int argc,
|
| InLoopFlag in_loop,
|
| Code::Kind,
|
| + Code::ExtraICState extra_ic_state,
|
| String* name,
|
| JSObject* receiver,
|
| GlobalObject* holder,
|
| @@ -241,30 +248,39 @@ class StubCache {
|
|
|
| MUST_USE_RESULT MaybeObject* ComputeCallInitialize(int argc,
|
| InLoopFlag in_loop,
|
| + RelocInfo::Mode mode,
|
| Code::Kind kind);
|
|
|
| - Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop);
|
| + Handle<Code> ComputeCallInitialize(int argc,
|
| + InLoopFlag in_loop,
|
| + RelocInfo::Mode mode);
|
|
|
| Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop);
|
|
|
| MUST_USE_RESULT MaybeObject* ComputeCallPreMonomorphic(
|
| int argc,
|
| InLoopFlag in_loop,
|
| - Code::Kind kind);
|
| + Code::Kind kind,
|
| + Code::ExtraICState extra_ic_state);
|
|
|
| MUST_USE_RESULT MaybeObject* ComputeCallNormal(int argc,
|
| InLoopFlag in_loop,
|
| - Code::Kind kind);
|
| + Code::Kind kind,
|
| + Code::ExtraICState state);
|
|
|
| MUST_USE_RESULT MaybeObject* ComputeCallMegamorphic(int argc,
|
| InLoopFlag in_loop,
|
| - Code::Kind kind);
|
| + Code::Kind kind,
|
| + Code::ExtraICState state);
|
|
|
| - MUST_USE_RESULT MaybeObject* ComputeCallMiss(int argc, Code::Kind kind);
|
| + MUST_USE_RESULT MaybeObject* ComputeCallMiss(int argc,
|
| + Code::Kind kind,
|
| + Code::ExtraICState state);
|
|
|
| // Finds the Code object stored in the Heap::non_monomorphic_cache().
|
| MUST_USE_RESULT Code* FindCallInitialize(int argc,
|
| InLoopFlag in_loop,
|
| + RelocInfo::Mode mode,
|
| Code::Kind kind);
|
|
|
| #ifdef ENABLE_DEBUGGER_SUPPORT
|
| @@ -721,11 +737,13 @@ class CallStubCompiler: public StubCompiler {
|
| MUST_USE_RESULT MaybeObject* CompileCallInterceptor(JSObject* object,
|
| JSObject* holder,
|
| String* name);
|
| - MUST_USE_RESULT MaybeObject* CompileCallGlobal(JSObject* object,
|
| - GlobalObject* holder,
|
| - JSGlobalPropertyCell* cell,
|
| - JSFunction* function,
|
| - String* name);
|
| + MUST_USE_RESULT MaybeObject* CompileCallGlobal(
|
| + JSObject* object,
|
| + GlobalObject* holder,
|
| + JSGlobalPropertyCell* cell,
|
| + JSFunction* function,
|
| + String* name,
|
| + Code::ExtraICState extra_ic_state);
|
|
|
| static bool HasCustomCallGenerator(JSFunction* function);
|
|
|
|
|