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

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

Issue 136643008: A64: Synchronize with r18256. (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 | « samples/process.cc ('k') | src/a64/code-stubs-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 }; 61 };
62 62
63 63
64 class StoreBufferOverflowStub: public PlatformCodeStub { 64 class StoreBufferOverflowStub: public PlatformCodeStub {
65 public: 65 public:
66 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) 66 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp)
67 : save_doubles_(save_fp) { } 67 : save_doubles_(save_fp) { }
68 68
69 void Generate(MacroAssembler* masm); 69 void Generate(MacroAssembler* masm);
70 70
71 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE {
72 USE(isolate);
73 return true;
74 }
75 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); 71 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate);
76 virtual bool SometimesSetsUpAFrame() { return false; } 72 virtual bool SometimesSetsUpAFrame() { return false; }
77 73
78 private: 74 private:
79 SaveFPRegsMode save_doubles_; 75 SaveFPRegsMode save_doubles_;
80 76
81 Major MajorKey() { return StoreBufferOverflow; } 77 Major MajorKey() { return StoreBufferOverflow; }
82 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } 78 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
83 }; 79 };
84 80
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 address, // An input reg. 169 address, // An input reg.
174 value) { // One scratch reg. 170 value) { // One scratch reg.
175 } 171 }
176 172
177 enum Mode { 173 enum Mode {
178 STORE_BUFFER_ONLY, 174 STORE_BUFFER_ONLY,
179 INCREMENTAL, 175 INCREMENTAL,
180 INCREMENTAL_COMPACTION 176 INCREMENTAL_COMPACTION
181 }; 177 };
182 178
183 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE;
184 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate);
185 virtual bool SometimesSetsUpAFrame() { return false; } 179 virtual bool SometimesSetsUpAFrame() { return false; }
186 180
187 static Mode GetMode(Code* stub) { 181 static Mode GetMode(Code* stub) {
188 // Find the mode depending on the first two instructions. 182 // Find the mode depending on the first two instructions.
189 Instruction* instr1 = 183 Instruction* instr1 =
190 reinterpret_cast<Instruction*>(stub->instruction_start()); 184 reinterpret_cast<Instruction*>(stub->instruction_start());
191 Instruction* instr2 = instr1->following(); 185 Instruction* instr2 = instr1->following();
192 186
193 if (instr1->IsUncondBranchImm()) { 187 if (instr1->IsUncondBranchImm()) {
194 ASSERT(instr2->IsPCRelAddressing() && (instr2->Rd() == xzr.code())); 188 ASSERT(instr2->IsPCRelAddressing() && (instr2->Rd() == xzr.code()));
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 Register length, 521 Register length,
528 Register scratch1, 522 Register scratch1,
529 Register scratch2, 523 Register scratch2,
530 Label* chars_not_equal); 524 Label* chars_not_equal);
531 }; 525 };
532 526
533 527
534 } } // namespace v8::internal 528 } } // namespace v8::internal
535 529
536 #endif // V8_A64_CODE_STUBS_A64_H_ 530 #endif // V8_A64_CODE_STUBS_A64_H_
OLDNEW
« no previous file with comments | « samples/process.cc ('k') | src/a64/code-stubs-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698