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

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

Issue 6026017: Fix/implement new write barrier for x64. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 11 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ToBooleanStub() { } 56 ToBooleanStub() { }
57 57
58 void Generate(MacroAssembler* masm); 58 void Generate(MacroAssembler* masm);
59 59
60 private: 60 private:
61 Major MajorKey() { return ToBoolean; } 61 Major MajorKey() { return ToBoolean; }
62 int MinorKey() { return 0; } 62 int MinorKey() { return 0; }
63 }; 63 };
64 64
65 65
66 class WriteBufferOverflowStub: public CodeStub {
67 public:
68 explicit WriteBufferOverflowStub(SaveFPRegsMode save_fp)
69 : save_doubles_(save_fp) { }
70
71 void Generate(MacroAssembler* masm);
72
73 private:
74 SaveFPRegsMode save_doubles_;
75
76 Major MajorKey() { return WriteBufferOverflow; }
77 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
78 };
79
80
66 // Flag that indicates how to generate code for the stub GenericBinaryOpStub. 81 // Flag that indicates how to generate code for the stub GenericBinaryOpStub.
67 enum GenericBinaryFlags { 82 enum GenericBinaryFlags {
68 NO_GENERIC_BINARY_FLAGS = 0, 83 NO_GENERIC_BINARY_FLAGS = 0,
69 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub. 84 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub.
70 }; 85 };
71 86
72 87
73 class GenericBinaryOpStub: public CodeStub { 88 class GenericBinaryOpStub: public CodeStub {
74 public: 89 public:
75 GenericBinaryOpStub(Token::Value op, 90 GenericBinaryOpStub(Token::Value op,
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 void Print() { 359 void Print() {
345 PrintF("NumberToStringStub\n"); 360 PrintF("NumberToStringStub\n");
346 } 361 }
347 #endif 362 #endif
348 }; 363 };
349 364
350 365
351 } } // namespace v8::internal 366 } } // namespace v8::internal
352 367
353 #endif // V8_X64_CODE_STUBS_X64_H_ 368 #endif // V8_X64_CODE_STUBS_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/code-stubs-x64.cc » ('j') | src/x64/code-stubs-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698