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

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

Issue 21340002: Generate a custom OSR entrypoint for OSR compiles on all platforms, and transition to optimized cod… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use FixedArray::OffsetAt and add comment to codegen. Created 7 years, 4 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 185 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
186 186
187 // Code generation passes. Returns true if code generation should 187 // Code generation passes. Returns true if code generation should
188 // continue. 188 // continue.
189 bool GeneratePrologue(); 189 bool GeneratePrologue();
190 bool GenerateBody(); 190 bool GenerateBody();
191 bool GenerateDeferredCode(); 191 bool GenerateDeferredCode();
192 bool GenerateJumpTable(); 192 bool GenerateJumpTable();
193 bool GenerateSafepointTable(); 193 bool GenerateSafepointTable();
194 194
195 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
196 void GenerateOsrPrologue();
197
195 enum SafepointMode { 198 enum SafepointMode {
196 RECORD_SIMPLE_SAFEPOINT, 199 RECORD_SIMPLE_SAFEPOINT,
197 RECORD_SAFEPOINT_WITH_REGISTERS 200 RECORD_SAFEPOINT_WITH_REGISTERS
198 }; 201 };
199 202
200 void CallCodeGeneric(Handle<Code> code, 203 void CallCodeGeneric(Handle<Code> code,
201 RelocInfo::Mode mode, 204 RelocInfo::Mode mode,
202 LInstruction* instr, 205 LInstruction* instr,
203 SafepointMode safepoint_mode, 206 SafepointMode safepoint_mode,
204 int argc); 207 int argc);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 LCodeGen* codegen_; 431 LCodeGen* codegen_;
429 Label entry_; 432 Label entry_;
430 Label exit_; 433 Label exit_;
431 Label* external_exit_; 434 Label* external_exit_;
432 int instruction_index_; 435 int instruction_index_;
433 }; 436 };
434 437
435 } } // namespace v8::internal 438 } } // namespace v8::internal
436 439
437 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 440 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« src/runtime.cc ('K') | « src/x64/deoptimizer-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698