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

Side by Side Diff: src/codegen.cc

Issue 1297203002: Add CompileInfo::GetDebugName() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@interpreter_immed_bytecodes
Patch Set: Add CompilationInfo::ShouldEnsureSpaceForLazyDeopt() 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler.h » ('j') | src/compiler.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/codegen.h" 5 #include "src/codegen.h"
6 6
7 #if defined(V8_OS_AIX) 7 #if defined(V8_OS_AIX)
8 #include <fenv.h> 8 #include <fenv.h>
9 #endif 9 #endif
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, 151 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
152 Code::Flags flags, 152 Code::Flags flags,
153 CompilationInfo* info) { 153 CompilationInfo* info) {
154 Isolate* isolate = info->isolate(); 154 Isolate* isolate = info->isolate();
155 155
156 // Allocate and install the code. 156 // Allocate and install the code.
157 CodeDesc desc; 157 CodeDesc desc;
158 bool is_crankshafted = 158 bool is_crankshafted =
159 Code::ExtractKindFromFlags(flags) == Code::OPTIMIZED_FUNCTION || 159 Code::ExtractKindFromFlags(flags) == Code::OPTIMIZED_FUNCTION ||
160 info->IsStub(); 160 info->IsStub() || info->IsBytecodeHandler();
titzer 2015/08/21 13:37:21 Here too
rmcilroy 2015/08/21 16:41:05 Removed this (it's not about lazy deopt, so didn't
161 masm->GetCode(&desc); 161 masm->GetCode(&desc);
162 Handle<Code> code = 162 Handle<Code> code =
163 isolate->factory()->NewCode(desc, flags, masm->CodeObject(), 163 isolate->factory()->NewCode(desc, flags, masm->CodeObject(),
164 false, is_crankshafted, 164 false, is_crankshafted,
165 info->prologue_offset(), 165 info->prologue_offset(),
166 info->is_debug() && !is_crankshafted); 166 info->is_debug() && !is_crankshafted);
167 isolate->counters()->total_compiled_code_size()->Increment( 167 isolate->counters()->total_compiled_code_size()->Increment(
168 code->instruction_size()); 168 code->instruction_size());
169 isolate->heap()->IncrementCodeGeneratedBytes(is_crankshafted, 169 isolate->heap()->IncrementCodeGeneratedBytes(is_crankshafted,
170 code->instruction_size()); 170 code->instruction_size());
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 os << "source_position = " << literal->start_position() << "\n"; 232 os << "source_position = " << literal->start_position() << "\n";
233 } 233 }
234 code->Disassemble(debug_name, os); 234 code->Disassemble(debug_name, os);
235 os << "--- End code ---\n"; 235 os << "--- End code ---\n";
236 } 236 }
237 #endif // ENABLE_DISASSEMBLER 237 #endif // ENABLE_DISASSEMBLER
238 } 238 }
239 239
240 } // namespace internal 240 } // namespace internal
241 } // namespace v8 241 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler.h » ('j') | src/compiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698