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

Unified Diff: src/codegen.cc

Issue 1304053004: Deprecate semi-correct CompilationInfo::flags predicate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test-pipeline.cc Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codegen.h ('k') | src/compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.cc
diff --git a/src/codegen.cc b/src/codegen.cc
index c9de2b1af16c666177617a5600ae30f5298a1a34..cc5495bc1b91612ca409d9eca06fd654ac3d3e17 100644
--- a/src/codegen.cc
+++ b/src/codegen.cc
@@ -149,10 +149,18 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info, const char* kind) {
Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
- Code::Flags flags,
CompilationInfo* info) {
Isolate* isolate = info->isolate();
+ Code::Flags flags =
+ info->code_stub() != nullptr
+ ? Code::ComputeFlags(info->code_stub()->GetCodeKind(),
+ info->code_stub()->GetICState(),
+ info->code_stub()->GetExtraICState(),
+ info->code_stub()->GetStubType())
+ : Code::ComputeFlags(info->IsOptimizing() ? Code::OPTIMIZED_FUNCTION
+ : Code::FUNCTION);
+
// Allocate and install the code.
CodeDesc desc;
bool is_crankshafted =
« no previous file with comments | « src/codegen.h ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698