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

Unified Diff: src/stub-cache.h

Issue 96083005: Remove Reloc::Mode CODE_TARGET_CONTEXT (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Complete for ia32. Created 7 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
« src/builtins.cc ('K') | « src/objects.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« src/builtins.cc ('K') | « src/objects.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698