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

Unified Diff: src/code-stubs.h

Issue 411973002: Restructure the IC / Handler compilers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index f27d4f6fc4b4bb57eed93cbabc87e71b366632d2..572bad96c8a3a4a7991295cde3fba720d37db68b 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -900,23 +900,14 @@ class CallIC_ArrayStub: public CallICStub {
// TODO(verwaest): Translate to hydrogen code stub.
class FunctionPrototypeStub : public PlatformCodeStub {
public:
- FunctionPrototypeStub(Isolate* isolate, Code::Kind kind)
- : PlatformCodeStub(isolate) {
- bit_field_ = KindBits::encode(kind);
- }
+ explicit FunctionPrototypeStub(Isolate* isolate)
+ : PlatformCodeStub(isolate) {}
virtual void Generate(MacroAssembler* masm);
virtual Code::Kind GetCodeKind() const { return Code::HANDLER; }
- virtual InlineCacheState GetICState() { return MONOMORPHIC; }
- virtual ExtraICState GetExtraICState() const { return kind(); }
-
- protected:
- class KindBits : public BitField<Code::Kind, 0, 4> {};
- virtual Code::Kind kind() const { return KindBits::decode(bit_field_); }
private:
virtual CodeStub::Major MajorKey() const { return FunctionPrototype; }
- virtual int MinorKey() const { return bit_field_; }
- int bit_field_;
+ virtual int MinorKey() const { return 0; }
};
« no previous file with comments | « src/builtins.cc ('k') | src/code-stubs.cc » ('j') | src/ia32/stub-cache-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698