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

Side by Side Diff: src/x64/code-stubs-x64.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/x64/builtins-x64.cc ('k') | src/x64/code-stubs-x64.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 11 matching lines...) Expand all
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_X64_CODE_STUBS_X64_H_ 28 #ifndef V8_X64_CODE_STUBS_X64_H_
29 #define V8_X64_CODE_STUBS_X64_H_ 29 #define V8_X64_CODE_STUBS_X64_H_
30 30
31 #include "ic-inl.h" 31 #include "ic-inl.h"
32 #include "type-info.h"
33 32
34 namespace v8 { 33 namespace v8 {
35 namespace internal { 34 namespace internal {
36 35
37 36
38 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 37 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code);
39 38
40 // Compute a transcendental math function natively, or call the
41 // TranscendentalCache runtime function.
42 class TranscendentalCacheStub: public PlatformCodeStub {
43 public:
44 enum ArgumentType {
45 TAGGED = 0,
46 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits
47 };
48
49 explicit TranscendentalCacheStub(TranscendentalCache::Type type,
50 ArgumentType argument_type)
51 : type_(type), argument_type_(argument_type) {}
52 void Generate(MacroAssembler* masm);
53 static void GenerateOperation(MacroAssembler* masm,
54 TranscendentalCache::Type type);
55 private:
56 TranscendentalCache::Type type_;
57 ArgumentType argument_type_;
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 { 39 class StoreBufferOverflowStub: public PlatformCodeStub {
66 public: 40 public:
67 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) 41 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp)
68 : save_doubles_(save_fp) { } 42 : save_doubles_(save_fp) { }
69 43
70 void Generate(MacroAssembler* masm); 44 void Generate(MacroAssembler* masm);
71 45
72 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); 46 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate);
73 virtual bool SometimesSetsUpAFrame() { return false; } 47 virtual bool SometimesSetsUpAFrame() { return false; }
74 48
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 RememberedSetAction remembered_set_action_; 477 RememberedSetAction remembered_set_action_;
504 SaveFPRegsMode save_fp_regs_mode_; 478 SaveFPRegsMode save_fp_regs_mode_;
505 Label slow_; 479 Label slow_;
506 RegisterAllocation regs_; 480 RegisterAllocation regs_;
507 }; 481 };
508 482
509 483
510 } } // namespace v8::internal 484 } } // namespace v8::internal
511 485
512 #endif // V8_X64_CODE_STUBS_X64_H_ 486 #endif // V8_X64_CODE_STUBS_X64_H_
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698