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

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

Issue 6092007: Write buffer based write barrier for IA32 and Crankshaft. Currently... (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
« no previous file with comments | « src/codegen.cc ('k') | src/ia32/code-stubs-ia32.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 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ToBooleanStub() { } 65 ToBooleanStub() { }
66 66
67 void Generate(MacroAssembler* masm); 67 void Generate(MacroAssembler* masm);
68 68
69 private: 69 private:
70 Major MajorKey() { return ToBoolean; } 70 Major MajorKey() { return ToBoolean; }
71 int MinorKey() { return 0; } 71 int MinorKey() { return 0; }
72 }; 72 };
73 73
74 74
75 class WriteBufferOverflowStub: public CodeStub {
76 public:
77 explicit WriteBufferOverflowStub(SaveFPRegsMode save_fp)
78 : save_doubles_(save_fp) { }
79
80 void Generate(MacroAssembler* masm);
81
82 private:
83 SaveFPRegsMode save_doubles_;
84
85 Major MajorKey() { return WriteBufferOverflow; }
86 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
87 };
88
89
75 // Flag that indicates how to generate code for the stub GenericBinaryOpStub. 90 // Flag that indicates how to generate code for the stub GenericBinaryOpStub.
76 enum GenericBinaryFlags { 91 enum GenericBinaryFlags {
77 NO_GENERIC_BINARY_FLAGS = 0, 92 NO_GENERIC_BINARY_FLAGS = 0,
78 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub. 93 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub.
79 }; 94 };
80 95
81 96
82 class GenericBinaryOpStub: public CodeStub { 97 class GenericBinaryOpStub: public CodeStub {
83 public: 98 public:
84 GenericBinaryOpStub(Token::Value op, 99 GenericBinaryOpStub(Token::Value op,
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 void Print() { 511 void Print() {
497 PrintF("NumberToStringStub\n"); 512 PrintF("NumberToStringStub\n");
498 } 513 }
499 #endif 514 #endif
500 }; 515 };
501 516
502 517
503 } } // namespace v8::internal 518 } } // namespace v8::internal
504 519
505 #endif // V8_IA32_CODE_STUBS_IA32_H_ 520 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698