| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |