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

Unified Diff: src/codegen.cc

Issue 2150523002: [turbofan] Do not use the self reference for turbofan functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Pass in the self reference instead of using an is_self_ref_available flag. Created 4 years, 5 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/code-generator.cc » ('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 d4c1e438cb3654212f10476e2eeef15d44241d3e..35201394f06da448d4b811ae16d69a48116a14b5 100644
--- a/src/codegen.cc
+++ b/src/codegen.cc
@@ -120,7 +120,8 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info, const char* kind) {
Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
EhFrameWriter* eh_frame_writer,
- CompilationInfo* info) {
+ CompilationInfo* info,
+ Handle<Object> self_reference) {
Isolate* isolate = info->isolate();
// Allocate and install the code.
@@ -131,11 +132,9 @@ Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
info->IsStub();
masm->GetCode(&desc);
if (eh_frame_writer) eh_frame_writer->GetEhFrame(&desc);
- Handle<Code> code =
- isolate->factory()->NewCode(desc, flags, masm->CodeObject(),
- false, is_crankshafted,
- info->prologue_offset(),
- info->is_debug() && !is_crankshafted);
+ Handle<Code> code = isolate->factory()->NewCode(
+ desc, flags, self_reference, false, is_crankshafted,
+ info->prologue_offset(), info->is_debug() && !is_crankshafted);
isolate->counters()->total_compiled_code_size()->Increment(
code->instruction_size());
isolate->heap()->IncrementCodeGeneratedBytes(is_crankshafted,
« no previous file with comments | « src/codegen.h ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698