diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-08-01 12:59:39 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-08-04 12:40:43 +0000 |
commit | 28b1110370900897ab652cb420c371fab8857ad4 (patch) | |
tree | 41b32127d23b0df4f2add2a27e12dc87bddb260e /chromium/v8/src/codegen.cc | |
parent | 399c965b6064c440ddcf4015f5f8e9d131c7a0a6 (diff) | |
download | qtwebengine-chromium-28b1110370900897ab652cb420c371fab8857ad4.tar.gz |
BASELINE: Update Chromium to 53.0.2785.41
Also adds a few extra files for extensions.
Change-Id: Iccdd55d98660903331cf8b7b29188da781830af4
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/v8/src/codegen.cc')
-rw-r--r-- | chromium/v8/src/codegen.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chromium/v8/src/codegen.cc b/chromium/v8/src/codegen.cc index 93ae3079629..4597ae27669 100644 --- a/chromium/v8/src/codegen.cc +++ b/chromium/v8/src/codegen.cc @@ -12,7 +12,6 @@ #include "src/compiler.h" #include "src/debug/debug.h" #include "src/parsing/parser.h" -#include "src/profiler/cpu-profiler.h" #include "src/runtime/runtime.h" namespace v8 { @@ -61,7 +60,6 @@ double modulo(double x, double y) { } UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction) -UNARY_MATH_FUNCTION(exp, CreateExpFunction) #undef UNARY_MATH_FUNCTION @@ -147,11 +145,12 @@ Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) { #ifdef ENABLE_DISASSEMBLER AllowDeferredHandleDereference allow_deference_for_print_code; - bool print_code = info->isolate()->bootstrapper()->IsActive() - ? FLAG_print_builtin_code - : (FLAG_print_code || - (info->IsStub() && FLAG_print_code_stubs) || - (info->IsOptimizing() && FLAG_print_opt_code)); + Isolate* isolate = info->isolate(); + bool print_code = + isolate->bootstrapper()->IsActive() + ? FLAG_print_builtin_code + : (FLAG_print_code || (info->IsStub() && FLAG_print_code_stubs) || + (info->IsOptimizing() && FLAG_print_opt_code)); if (print_code) { base::SmartArrayPointer<char> debug_name = info->GetDebugName(); CodeTracer::Scope tracing_scope(info->isolate()->GetCodeTracer()); @@ -164,7 +163,8 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) { if (print_source) { Handle<SharedFunctionInfo> shared = info->shared_info(); Handle<Script> script = info->script(); - if (!script->IsUndefined() && !script->source()->IsUndefined()) { + if (!script->IsUndefined(isolate) && + !script->source()->IsUndefined(isolate)) { os << "--- Raw source ---\n"; StringCharacterStream stream(String::cast(script->source()), shared->start_position()); |