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

Side by Side Diff: src/ia32/code-stubs-ia32.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_IA32_CODE_STUBS_IA32_H_ 5 #ifndef V8_IA32_CODE_STUBS_IA32_H_
6 #define V8_IA32_CODE_STUBS_IA32_H_ 6 #define V8_IA32_CODE_STUBS_IA32_H_
7 7
8 #include "src/ic-inl.h" 8 #include "src/ic-inl.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
(...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 ecx (needed for shift operations). The input is two registers 256 // is always ecx (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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 Register address_; 430 Register address_;
431 RememberedSetAction remembered_set_action_; 431 RememberedSetAction remembered_set_action_;
432 SaveFPRegsMode save_fp_regs_mode_; 432 SaveFPRegsMode save_fp_regs_mode_;
433 RegisterAllocation regs_; 433 RegisterAllocation regs_;
434 }; 434 };
435 435
436 436
437 } } // namespace v8::internal 437 } } // namespace v8::internal
438 438
439 #endif // V8_IA32_CODE_STUBS_IA32_H_ 439 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« src/base/macros.h ('K') | « src/ia32/assembler-ia32-inl.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698