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

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

Issue 153773002: A64: Synchronize with r16679. (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/a64/builtins-a64.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() { return true; } 71 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE {
72 USE(isolate);
73 return true;
74 }
72 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); 75 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate);
73 virtual bool SometimesSetsUpAFrame() { return false; } 76 virtual bool SometimesSetsUpAFrame() { return false; }
74 77
75 private: 78 private:
76 SaveFPRegsMode save_doubles_; 79 SaveFPRegsMode save_doubles_;
77 80
78 Major MajorKey() { return StoreBufferOverflow; } 81 Major MajorKey() { return StoreBufferOverflow; }
79 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } 82 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
80 }; 83 };
81 84
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 address, // An input reg. 198 address, // An input reg.
196 value) { // One scratch reg. 199 value) { // One scratch reg.
197 } 200 }
198 201
199 enum Mode { 202 enum Mode {
200 STORE_BUFFER_ONLY, 203 STORE_BUFFER_ONLY,
201 INCREMENTAL, 204 INCREMENTAL,
202 INCREMENTAL_COMPACTION 205 INCREMENTAL_COMPACTION
203 }; 206 };
204 207
205 virtual bool IsPregenerated(); 208 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE;
206 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); 209 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate);
207 virtual bool SometimesSetsUpAFrame() { return false; } 210 virtual bool SometimesSetsUpAFrame() { return false; }
208 211
209 static Mode GetMode(Code* stub) { 212 static Mode GetMode(Code* stub) {
210 // Find the mode depending on the first two instructions. 213 // Find the mode depending on the first two instructions.
211 Instruction* instr1 = 214 Instruction* instr1 =
212 reinterpret_cast<Instruction*>(stub->instruction_start()); 215 reinterpret_cast<Instruction*>(stub->instruction_start());
213 Instruction* instr2 = instr1->following(); 216 Instruction* instr2 = instr1->following();
214 217
215 if (instr1->IsUncondBranchImm()) { 218 if (instr1->IsUncondBranchImm()) {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 Register length, 552 Register length,
550 Register scratch1, 553 Register scratch1,
551 Register scratch2, 554 Register scratch2,
552 Label* chars_not_equal); 555 Label* chars_not_equal);
553 }; 556 };
554 557
555 558
556 } } // namespace v8::internal 559 } } // namespace v8::internal
557 560
558 #endif // V8_A64_CODE_STUBS_A64_H_ 561 #endif // V8_A64_CODE_STUBS_A64_H_
OLDNEW
« no previous file with comments | « src/a64/builtins-a64.cc ('k') | src/a64/code-stubs-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698