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

Side by Side Diff: src/mips/lithium-codegen-mips.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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 219 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
220 220
221 // Code generation passes. Returns true if code generation should 221 // Code generation passes. Returns true if code generation should
222 // continue. 222 // continue.
223 bool GeneratePrologue(); 223 bool GeneratePrologue();
224 bool GenerateBody(); 224 bool GenerateBody();
225 bool GenerateDeferredCode(); 225 bool GenerateDeferredCode();
226 bool GenerateDeoptJumpTable(); 226 bool GenerateDeoptJumpTable();
227 bool GenerateSafepointTable(); 227 bool GenerateSafepointTable();
228 228
229 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
230 void GenerateOsrPrologue();
231
229 enum SafepointMode { 232 enum SafepointMode {
230 RECORD_SIMPLE_SAFEPOINT, 233 RECORD_SIMPLE_SAFEPOINT,
231 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS 234 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS
232 }; 235 };
233 236
234 void CallCode(Handle<Code> code, 237 void CallCode(Handle<Code> code,
235 RelocInfo::Mode mode, 238 RelocInfo::Mode mode,
236 LInstruction* instr); 239 LInstruction* instr);
237 240
238 void CallCodeGeneric(Handle<Code> code, 241 void CallCodeGeneric(Handle<Code> code,
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 LCodeGen* codegen_; 512 LCodeGen* codegen_;
510 Label entry_; 513 Label entry_;
511 Label exit_; 514 Label exit_;
512 Label* external_exit_; 515 Label* external_exit_;
513 int instruction_index_; 516 int instruction_index_;
514 }; 517 };
515 518
516 } } // namespace v8::internal 519 } } // namespace v8::internal
517 520
518 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 521 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698