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

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

Issue 566843004: X87: Added CallInterfaceDescriptors to all code stubs. (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: Created 6 years, 3 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
« no previous file with comments | « src/ic/x87/handler-compiler-x87.cc ('k') | src/x87/code-stubs-x87.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_X87_CODE_STUBS_X87_H_ 5 #ifndef V8_X87_CODE_STUBS_X87_H_
6 #define V8_X87_CODE_STUBS_X87_H_ 6 #define V8_X87_CODE_STUBS_X87_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return Register::from_code(IndexBits::decode(minor_key_)); 102 return Register::from_code(IndexBits::decode(minor_key_));
103 } 103 }
104 104
105 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } 105 LookupMode mode() const { return LookupModeBits::decode(minor_key_); }
106 106
107 class DictionaryBits: public BitField<int, 0, 3> {}; 107 class DictionaryBits: public BitField<int, 0, 3> {};
108 class ResultBits: public BitField<int, 3, 3> {}; 108 class ResultBits: public BitField<int, 3, 3> {};
109 class IndexBits: public BitField<int, 6, 3> {}; 109 class IndexBits: public BitField<int, 6, 3> {};
110 class LookupModeBits: public BitField<LookupMode, 9, 1> {}; 110 class LookupModeBits: public BitField<LookupMode, 9, 1> {};
111 111
112 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR();
112 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); 113 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub);
113 }; 114 };
114 115
115 116
116 class RecordWriteStub: public PlatformCodeStub { 117 class RecordWriteStub: public PlatformCodeStub {
117 public: 118 public:
118 RecordWriteStub(Isolate* isolate, 119 RecordWriteStub(Isolate* isolate,
119 Register object, 120 Register object,
120 Register value, 121 Register value,
121 Register address, 122 Register address,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 case INCREMENTAL_COMPACTION: 182 case INCREMENTAL_COMPACTION:
182 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); 183 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY);
183 stub->instruction_start()[0] = kTwoByteNopInstruction; 184 stub->instruction_start()[0] = kTwoByteNopInstruction;
184 stub->instruction_start()[2] = kFiveByteJumpInstruction; 185 stub->instruction_start()[2] = kFiveByteJumpInstruction;
185 break; 186 break;
186 } 187 }
187 DCHECK(GetMode(stub) == mode); 188 DCHECK(GetMode(stub) == mode);
188 CpuFeatures::FlushICache(stub->instruction_start(), 7); 189 CpuFeatures::FlushICache(stub->instruction_start(), 7);
189 } 190 }
190 191
192 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR();
193
191 private: 194 private:
192 // This is a helper class for freeing up 3 scratch registers, where the third 195 // This is a helper class for freeing up 3 scratch registers, where the third
193 // is always ecx (needed for shift operations). The input is two registers 196 // is always ecx (needed for shift operations). The input is two registers
194 // that must be preserved and one scratch register provided by the caller. 197 // that must be preserved and one scratch register provided by the caller.
195 class RegisterAllocation { 198 class RegisterAllocation {
196 public: 199 public:
197 RegisterAllocation(Register object, 200 RegisterAllocation(Register object,
198 Register address, 201 Register address,
199 Register scratch0) 202 Register scratch0)
200 : object_orig_(object), 203 : object_orig_(object),
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 355
353 RegisterAllocation regs_; 356 RegisterAllocation regs_;
354 357
355 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); 358 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub);
356 }; 359 };
357 360
358 361
359 } } // namespace v8::internal 362 } } // namespace v8::internal
360 363
361 #endif // V8_X87_CODE_STUBS_X87_H_ 364 #endif // V8_X87_CODE_STUBS_X87_H_
OLDNEW
« no previous file with comments | « src/ic/x87/handler-compiler-x87.cc ('k') | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698