Index: src/stub-cache.h |
diff --git a/src/stub-cache.h b/src/stub-cache.h |
index ebf0bd3c917b5e06ba80f0a4bedb5bd1703def23..86216a0eac7f4f64847b90f58ddc05cdc3b12530 100644 |
--- a/src/stub-cache.h |
+++ b/src/stub-cache.h |
@@ -138,7 +138,7 @@ class StubCache { |
// --- |
- Handle<Code> ComputeCallInitialize(int argc, RelocInfo::Mode mode); |
+ Handle<Code> ComputeCallInitialize(int argc, ContextualMode mode); |
Handle<Code> ComputeKeyedCallInitialize(int argc); |
@@ -179,7 +179,7 @@ class StubCache { |
ExtraICState extra_ic_state); |
// Finds the Code object stored in the Heap::non_monomorphic_cache(). |
- Code* FindCallInitialize(int argc, RelocInfo::Mode mode, Code::Kind kind); |
+ Code* FindCallInitialize(int argc, ContextualMode mode, Code::Kind kind); |
#ifdef ENABLE_DEBUGGER_SUPPORT |
Handle<Code> ComputeCallDebugBreak(int argc, Code::Kind kind); |
@@ -263,7 +263,7 @@ class StubCache { |
explicit StubCache(Isolate* isolate); |
Handle<Code> ComputeCallInitialize(int argc, |
- RelocInfo::Mode mode, |
+ ContextualMode mode, |
Code::Kind kind); |
// The stub cache has a primary and secondary level. The two levels have |
@@ -503,6 +503,9 @@ class StubCompiler BASE_EMBEDDED { |
Isolate* isolate() { return isolate_; } |
Heap* heap() { return isolate()->heap(); } |
Factory* factory() { return isolate()->factory(); } |
+ ContextualMode contextual_mode() { |
+ return IC::GetContextualMode(extra_state()); |
+ } |
static void GenerateTailCall(MacroAssembler* masm, Handle<Code> code); |