| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // true, which will cause an assertion if we try to call something that can | 181 // true, which will cause an assertion if we try to call something that can |
| 182 // GC or if we try to put a stack frame on top of the junk, which would not | 182 // GC or if we try to put a stack frame on top of the junk, which would not |
| 183 // result in a traversable stack. | 183 // result in a traversable stack. |
| 184 virtual bool SometimesSetsUpAFrame() { return true; } | 184 virtual bool SometimesSetsUpAFrame() { return true; } |
| 185 | 185 |
| 186 // Lookup the code in the (possibly custom) cache. | 186 // Lookup the code in the (possibly custom) cache. |
| 187 bool FindCodeInCache(Code** code_out); | 187 bool FindCodeInCache(Code** code_out); |
| 188 | 188 |
| 189 // Returns information for computing the number key. | 189 // Returns information for computing the number key. |
| 190 virtual Major MajorKey() const = 0; | 190 virtual Major MajorKey() const = 0; |
| 191 virtual uint32_t MinorKey() const { return minor_key_; } | 191 uint32_t MinorKey() const { return minor_key_; } |
| 192 | 192 |
| 193 virtual InlineCacheState GetICState() const { return UNINITIALIZED; } | 193 virtual InlineCacheState GetICState() const { return UNINITIALIZED; } |
| 194 virtual ExtraICState GetExtraICState() const { return kNoExtraICState; } | 194 virtual ExtraICState GetExtraICState() const { return kNoExtraICState; } |
| 195 virtual Code::StubType GetStubType() { | 195 virtual Code::StubType GetStubType() { |
| 196 return Code::NORMAL; | 196 return Code::NORMAL; |
| 197 } | 197 } |
| 198 | 198 |
| 199 friend OStream& operator<<(OStream& os, const CodeStub& s) { | 199 friend OStream& operator<<(OStream& os, const CodeStub& s) { |
| 200 s.PrintName(os); | 200 s.PrintName(os); |
| 201 return os; | 201 return os; |
| (...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2669 private: | 2669 private: |
| 2670 virtual Major MajorKey() const { return StringCompare; } | 2670 virtual Major MajorKey() const { return StringCompare; } |
| 2671 | 2671 |
| 2672 virtual void Generate(MacroAssembler* masm); | 2672 virtual void Generate(MacroAssembler* masm); |
| 2673 | 2673 |
| 2674 DISALLOW_COPY_AND_ASSIGN(StringCompareStub); | 2674 DISALLOW_COPY_AND_ASSIGN(StringCompareStub); |
| 2675 }; | 2675 }; |
| 2676 } } // namespace v8::internal | 2676 } } // namespace v8::internal |
| 2677 | 2677 |
| 2678 #endif // V8_CODE_STUBS_H_ | 2678 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |