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

Unified Diff: src/code-stubs.h

Issue 12451003: Make IC patching resilient to flushing of the original target() ic. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 10 months 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
« no previous file with comments | « src/builtins.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 62b7af224f5b3c72cabf2a0fd3533b0f624340fd..9c8225ea459d449fa6809a13253425671e3af984 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -251,6 +251,7 @@ class PlatformCodeStub : public CodeStub {
virtual Handle<Code> GenerateCode();
virtual int GetCodeKind() { return Code::STUB; }
+ virtual int GetStubFlags() { return -1; }
protected:
// Generates the assembler code for the stub.
@@ -662,11 +663,8 @@ class StoreArrayLengthStub: public StoreICStub {
class HandlerStub: public ICStub {
public:
explicit HandlerStub(Code::Kind kind) : ICStub(kind) { }
-
- protected:
- virtual Code::ExtraICState GetExtraICState() {
- return Code::HANDLER_FRAGMENT;
- }
+ virtual int GetCodeKind() { return Code::STUB; }
+ virtual int GetStubFlags() { return kind(); }
};
« no previous file with comments | « src/builtins.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698