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

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

Issue 24031003: remove most uses of Isolate::Current in arch specific files (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nit Created 7 years, 3 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/assembler-x64-inl.h ('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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 }; 62 };
63 63
64 64
65 class StoreBufferOverflowStub: public PlatformCodeStub { 65 class StoreBufferOverflowStub: public PlatformCodeStub {
66 public: 66 public:
67 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) 67 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp)
68 : save_doubles_(save_fp) { } 68 : save_doubles_(save_fp) { }
69 69
70 void Generate(MacroAssembler* masm); 70 void Generate(MacroAssembler* masm);
71 71
72 virtual bool IsPregenerated() { return true; } 72 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE { return true; }
73 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); 73 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate);
74 virtual bool SometimesSetsUpAFrame() { return false; } 74 virtual bool SometimesSetsUpAFrame() { return false; }
75 75
76 private: 76 private:
77 SaveFPRegsMode save_doubles_; 77 SaveFPRegsMode save_doubles_;
78 78
79 Major MajorKey() { return StoreBufferOverflow; } 79 Major MajorKey() { return StoreBufferOverflow; }
80 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } 80 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
81 }; 81 };
82 82
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 address, // An input reg. 314 address, // An input reg.
315 value) { // One scratch reg. 315 value) { // One scratch reg.
316 } 316 }
317 317
318 enum Mode { 318 enum Mode {
319 STORE_BUFFER_ONLY, 319 STORE_BUFFER_ONLY,
320 INCREMENTAL, 320 INCREMENTAL,
321 INCREMENTAL_COMPACTION 321 INCREMENTAL_COMPACTION
322 }; 322 };
323 323
324 virtual bool IsPregenerated(); 324 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE;
325 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); 325 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate);
326 virtual bool SometimesSetsUpAFrame() { return false; } 326 virtual bool SometimesSetsUpAFrame() { return false; }
327 327
328 static const byte kTwoByteNopInstruction = 0x3c; // Cmpb al, #imm8. 328 static const byte kTwoByteNopInstruction = 0x3c; // Cmpb al, #imm8.
329 static const byte kTwoByteJumpInstruction = 0xeb; // Jmp #imm8. 329 static const byte kTwoByteJumpInstruction = 0xeb; // Jmp #imm8.
330 330
331 static const byte kFiveByteNopInstruction = 0x3d; // Cmpl eax, #imm32. 331 static const byte kFiveByteNopInstruction = 0x3d; // Cmpl eax, #imm32.
332 static const byte kFiveByteJumpInstruction = 0xe9; // Jmp #imm32. 332 static const byte kFiveByteJumpInstruction = 0xe9; // Jmp #imm32.
333 333
334 static Mode GetMode(Code* stub) { 334 static Mode GetMode(Code* stub) {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 RememberedSetAction remembered_set_action_; 534 RememberedSetAction remembered_set_action_;
535 SaveFPRegsMode save_fp_regs_mode_; 535 SaveFPRegsMode save_fp_regs_mode_;
536 Label slow_; 536 Label slow_;
537 RegisterAllocation regs_; 537 RegisterAllocation regs_;
538 }; 538 };
539 539
540 540
541 } } // namespace v8::internal 541 } } // namespace v8::internal
542 542
543 #endif // V8_X64_CODE_STUBS_X64_H_ 543 #endif // V8_X64_CODE_STUBS_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64-inl.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698