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

Side by Side Diff: src/lithium-codegen.h

Issue 99053002: Make LCodeGen::RegisterDependentCodeForEmbeddedMaps platform independent. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/ia32/lithium-codegen-ia32.cc ('k') | src/lithium-codegen.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 bool GenerateBody(); 60 bool GenerateBody();
61 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} 61 virtual void GenerateBodyInstructionPre(LInstruction* instr) {}
62 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} 62 virtual void GenerateBodyInstructionPost(LInstruction* instr) {}
63 63
64 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; 64 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0;
65 virtual void RecordAndWritePosition(int position) = 0; 65 virtual void RecordAndWritePosition(int position) = 0;
66 66
67 int GetNextEmittedBlock() const; 67 int GetNextEmittedBlock() const;
68 68
69 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code);
70
69 protected: 71 protected:
70 enum Status { 72 enum Status {
71 UNUSED, 73 UNUSED,
72 GENERATING, 74 GENERATING,
73 DONE, 75 DONE,
74 ABORTED 76 ABORTED
75 }; 77 };
76 78
77 LPlatformChunk* const chunk_; 79 LPlatformChunk* const chunk_;
78 MacroAssembler* const masm_; 80 MacroAssembler* const masm_;
79 CompilationInfo* const info_; 81 CompilationInfo* const info_;
80 Zone* zone_; 82 Zone* zone_;
81 Status status_; 83 Status status_;
82 int current_block_; 84 int current_block_;
83 int current_instruction_; 85 int current_instruction_;
84 const ZoneList<LInstruction*>* instructions_; 86 const ZoneList<LInstruction*>* instructions_;
85 int last_lazy_deopt_pc_; 87 int last_lazy_deopt_pc_;
86 88
87 bool is_unused() const { return status_ == UNUSED; } 89 bool is_unused() const { return status_ == UNUSED; }
88 bool is_generating() const { return status_ == GENERATING; } 90 bool is_generating() const { return status_ == GENERATING; }
89 bool is_done() const { return status_ == DONE; } 91 bool is_done() const { return status_ == DONE; }
90 bool is_aborted() const { return status_ == ABORTED; } 92 bool is_aborted() const { return status_ == ABORTED; }
91 }; 93 };
92 94
93 95
94 } } // namespace v8::internal 96 } } // namespace v8::internal
95 97
96 #endif // V8_LITHIUM_CODEGEN_H_ 98 #endif // V8_LITHIUM_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/lithium-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698