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

Side by Side Diff: src/code-stubs.h

Issue 444623002: Tag handlers as monomorphic (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/type-info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 private: 894 private:
895 virtual CodeStub::Major MajorKey() const { return FunctionPrototype; } 895 virtual CodeStub::Major MajorKey() const { return FunctionPrototype; }
896 virtual int MinorKey() const { return 0; } 896 virtual int MinorKey() const { return 0; }
897 }; 897 };
898 898
899 899
900 class HandlerStub : public HydrogenCodeStub { 900 class HandlerStub : public HydrogenCodeStub {
901 public: 901 public:
902 virtual Code::Kind GetCodeKind() const { return Code::HANDLER; } 902 virtual Code::Kind GetCodeKind() const { return Code::HANDLER; }
903 virtual ExtraICState GetExtraICState() const { return kind(); } 903 virtual ExtraICState GetExtraICState() const { return kind(); }
904 virtual InlineCacheState GetICState() { return MONOMORPHIC; }
904 905
905 protected: 906 protected:
906 explicit HandlerStub(Isolate* isolate) 907 explicit HandlerStub(Isolate* isolate)
907 : HydrogenCodeStub(isolate), bit_field_(0) {} 908 : HydrogenCodeStub(isolate), bit_field_(0) {}
908 virtual int NotMissMinorKey() const { return bit_field_; } 909 virtual int NotMissMinorKey() const { return bit_field_; }
909 virtual Code::Kind kind() const = 0; 910 virtual Code::Kind kind() const = 0;
910 int bit_field_; 911 int bit_field_;
911 }; 912 };
912 913
913 914
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after
2467 2468
2468 2469
2469 class CallDescriptors { 2470 class CallDescriptors {
2470 public: 2471 public:
2471 static void InitializeForIsolate(Isolate* isolate); 2472 static void InitializeForIsolate(Isolate* isolate);
2472 }; 2473 };
2473 2474
2474 } } // namespace v8::internal 2475 } } // namespace v8::internal
2475 2476
2476 #endif // V8_CODE_STUBS_H_ 2477 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698