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

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

Issue 157503002: A64: Synchronize with r18444. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « src/mips/builtins-mips.cc ('k') | src/mips/code-stubs-mips.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 20 matching lines...) Expand all
31 #include "ic-inl.h" 31 #include "ic-inl.h"
32 32
33 33
34 namespace v8 { 34 namespace v8 {
35 namespace internal { 35 namespace internal {
36 36
37 37
38 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 38 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code);
39 39
40 40
41 // Compute a transcendental math function natively, or call the
42 // TranscendentalCache runtime function.
43 class TranscendentalCacheStub: public PlatformCodeStub {
44 public:
45 enum ArgumentType {
46 TAGGED = 0 << TranscendentalCache::kTranscendentalTypeBits,
47 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits
48 };
49
50 TranscendentalCacheStub(TranscendentalCache::Type type,
51 ArgumentType argument_type)
52 : type_(type), argument_type_(argument_type) { }
53 void Generate(MacroAssembler* masm);
54 private:
55 TranscendentalCache::Type type_;
56 ArgumentType argument_type_;
57 void GenerateCallCFunction(MacroAssembler* masm, Register scratch);
58
59 Major MajorKey() { return TranscendentalCache; }
60 int MinorKey() { return type_ | argument_type_; }
61 Runtime::FunctionId RuntimeFunction();
62 };
63
64
65 class StoreBufferOverflowStub: public PlatformCodeStub { 41 class StoreBufferOverflowStub: public PlatformCodeStub {
66 public: 42 public:
67 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) 43 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp)
68 : save_doubles_(save_fp) {} 44 : save_doubles_(save_fp) {}
69 45
70 void Generate(MacroAssembler* masm); 46 void Generate(MacroAssembler* masm);
71 47
72 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); 48 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate);
73 virtual bool SometimesSetsUpAFrame() { return false; } 49 virtual bool SometimesSetsUpAFrame() { return false; }
74 50
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 public: 150 public:
175 SubStringStub() {} 151 SubStringStub() {}
176 152
177 private: 153 private:
178 Major MajorKey() { return SubString; } 154 Major MajorKey() { return SubString; }
179 int MinorKey() { return 0; } 155 int MinorKey() { return 0; }
180 156
181 void Generate(MacroAssembler* masm); 157 void Generate(MacroAssembler* masm);
182 }; 158 };
183 159
160 class StoreRegistersStateStub: public PlatformCodeStub {
161 public:
162 explicit StoreRegistersStateStub(SaveFPRegsMode with_fp)
163 : save_doubles_(with_fp) {}
164
165 static void GenerateAheadOfTime(Isolate* isolate);
166 private:
167 Major MajorKey() { return StoreRegistersState; }
168 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
169 SaveFPRegsMode save_doubles_;
170
171 void Generate(MacroAssembler* masm);
172 };
173
174 class RestoreRegistersStateStub: public PlatformCodeStub {
175 public:
176 explicit RestoreRegistersStateStub(SaveFPRegsMode with_fp)
177 : save_doubles_(with_fp) {}
178
179 static void GenerateAheadOfTime(Isolate* isolate);
180 private:
181 Major MajorKey() { return RestoreRegistersState; }
182 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
183 SaveFPRegsMode save_doubles_;
184
185 void Generate(MacroAssembler* masm);
186 };
184 187
185 class StringCompareStub: public PlatformCodeStub { 188 class StringCompareStub: public PlatformCodeStub {
186 public: 189 public:
187 StringCompareStub() { } 190 StringCompareStub() { }
188 191
189 // Compare two flat ASCII strings and returns result in v0. 192 // Compare two flat ASCII strings and returns result in v0.
190 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, 193 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm,
191 Register left, 194 Register left,
192 Register right, 195 Register right,
193 Register scratch1, 196 Register scratch1,
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 519
517 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 520 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
518 521
519 LookupMode mode_; 522 LookupMode mode_;
520 }; 523 };
521 524
522 525
523 } } // namespace v8::internal 526 } } // namespace v8::internal
524 527
525 #endif // V8_MIPS_CODE_STUBS_ARM_H_ 528 #endif // V8_MIPS_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698