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

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

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 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
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_X64_CODE_STUBS_X64_H_ 5 #ifndef V8_X64_CODE_STUBS_X64_H_
6 #define V8_X64_CODE_STUBS_X64_H_ 6 #define V8_X64_CODE_STUBS_X64_H_
7 7
8 #include "src/ic-inl.h" 8 #include "src/ic-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); 241 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY);
242 stub->instruction_start()[0] = kTwoByteJumpInstruction; 242 stub->instruction_start()[0] = kTwoByteJumpInstruction;
243 break; 243 break;
244 case INCREMENTAL_COMPACTION: 244 case INCREMENTAL_COMPACTION:
245 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); 245 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY);
246 stub->instruction_start()[0] = kTwoByteNopInstruction; 246 stub->instruction_start()[0] = kTwoByteNopInstruction;
247 stub->instruction_start()[2] = kFiveByteJumpInstruction; 247 stub->instruction_start()[2] = kFiveByteJumpInstruction;
248 break; 248 break;
249 } 249 }
250 ASSERT(GetMode(stub) == mode); 250 ASSERT(GetMode(stub) == mode);
251 CPU::FlushICache(stub->instruction_start(), 7); 251 CpuFeatures::FlushICache(stub->instruction_start(), 7);
252 } 252 }
253 253
254 private: 254 private:
255 // This is a helper class for freeing up 3 scratch registers, where the third 255 // This is a helper class for freeing up 3 scratch registers, where the third
256 // is always rcx (needed for shift operations). The input is two registers 256 // is always rcx (needed for shift operations). The input is two registers
257 // that must be preserved and one scratch register provided by the caller. 257 // that must be preserved and one scratch register provided by the caller.
258 class RegisterAllocation { 258 class RegisterAllocation {
259 public: 259 public:
260 RegisterAllocation(Register object, 260 RegisterAllocation(Register object,
261 Register address, 261 Register address,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 RememberedSetAction remembered_set_action_; 413 RememberedSetAction remembered_set_action_;
414 SaveFPRegsMode save_fp_regs_mode_; 414 SaveFPRegsMode save_fp_regs_mode_;
415 Label slow_; 415 Label slow_;
416 RegisterAllocation regs_; 416 RegisterAllocation regs_;
417 }; 417 };
418 418
419 419
420 } } // namespace v8::internal 420 } } // namespace v8::internal
421 421
422 #endif // V8_X64_CODE_STUBS_X64_H_ 422 #endif // V8_X64_CODE_STUBS_X64_H_
OLDNEW
« src/base/macros.h ('K') | « src/x64/assembler-x64-inl.h ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698