OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_CODE_STUBS_ARM64_H_ | 5 #ifndef V8_ARM64_CODE_STUBS_ARM64_H_ |
6 #define V8_ARM64_CODE_STUBS_ARM64_H_ | 6 #define V8_ARM64_CODE_STUBS_ARM64_H_ |
7 | 7 |
8 #include "src/ic-inl.h" | 8 #include "src/ic-inl.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 Register hash, | 49 Register hash, |
50 Register scratch); | 50 Register scratch); |
51 | 51 |
52 private: | 52 private: |
53 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); | 53 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); |
54 }; | 54 }; |
55 | 55 |
56 | 56 |
57 class StoreRegistersStateStub: public PlatformCodeStub { | 57 class StoreRegistersStateStub: public PlatformCodeStub { |
58 public: | 58 public: |
59 StoreRegistersStateStub(Isolate* isolate, SaveFPRegsMode with_fp) | 59 explicit StoreRegistersStateStub(Isolate* isolate) |
60 : PlatformCodeStub(isolate), save_doubles_(with_fp) {} | 60 : PlatformCodeStub(isolate) {} |
61 | 61 |
62 static Register to_be_pushed_lr() { return ip0; } | 62 static Register to_be_pushed_lr() { return ip0; } |
63 static void GenerateAheadOfTime(Isolate* isolate); | 63 static void GenerateAheadOfTime(Isolate* isolate); |
64 private: | 64 private: |
65 Major MajorKey() const { return StoreRegistersState; } | 65 Major MajorKey() const { return StoreRegistersState; } |
66 int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 66 int MinorKey() const { return 0; } |
67 SaveFPRegsMode save_doubles_; | |
68 | 67 |
69 void Generate(MacroAssembler* masm); | 68 void Generate(MacroAssembler* masm); |
70 }; | 69 }; |
71 | 70 |
72 | 71 |
73 class RestoreRegistersStateStub: public PlatformCodeStub { | 72 class RestoreRegistersStateStub: public PlatformCodeStub { |
74 public: | 73 public: |
75 RestoreRegistersStateStub(Isolate* isolate, SaveFPRegsMode with_fp) | 74 explicit RestoreRegistersStateStub(Isolate* isolate) |
76 : PlatformCodeStub(isolate), save_doubles_(with_fp) {} | 75 : PlatformCodeStub(isolate) {} |
77 | 76 |
78 static void GenerateAheadOfTime(Isolate* isolate); | 77 static void GenerateAheadOfTime(Isolate* isolate); |
79 private: | 78 private: |
80 Major MajorKey() const { return RestoreRegistersState; } | 79 Major MajorKey() const { return RestoreRegistersState; } |
81 int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 80 int MinorKey() const { return 0; } |
82 SaveFPRegsMode save_doubles_; | |
83 | 81 |
84 void Generate(MacroAssembler* masm); | 82 void Generate(MacroAssembler* masm); |
85 }; | 83 }; |
86 | 84 |
87 | 85 |
88 class RecordWriteStub: public PlatformCodeStub { | 86 class RecordWriteStub: public PlatformCodeStub { |
89 public: | 87 public: |
90 // Stub to record the write of 'value' at 'address' in 'object'. | 88 // Stub to record the write of 'value' at 'address' in 'object'. |
91 // Typically 'address' = 'object' + <some offset>. | 89 // Typically 'address' = 'object' + <some offset>. |
92 // See MacroAssembler::RecordWriteField() for example. | 90 // See MacroAssembler::RecordWriteField() for example. |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 TargetAddressStorageMode storage_mode() { return storage_mode_; } | 466 TargetAddressStorageMode storage_mode() { return storage_mode_; } |
469 | 467 |
470 private: | 468 private: |
471 TargetAddressStorageMode storage_mode_; | 469 TargetAddressStorageMode storage_mode_; |
472 }; | 470 }; |
473 | 471 |
474 | 472 |
475 } } // namespace v8::internal | 473 } } // namespace v8::internal |
476 | 474 |
477 #endif // V8_ARM64_CODE_STUBS_ARM64_H_ | 475 #endif // V8_ARM64_CODE_STUBS_ARM64_H_ |
OLD | NEW |