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

Side by Side Diff: src/codegen.cc

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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 | « src/ast-this-access-visitor.cc ('k') | src/compiler.h » ('j') | no next file with comments »
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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } else { 118 } else {
119 AllowDeferredHandleDereference allow_deference_for_trace; 119 AllowDeferredHandleDereference allow_deference_for_trace;
120 PrintF("%s", info->function()->debug_name()->ToCString().get()); 120 PrintF("%s", info->function()->debug_name()->ToCString().get());
121 } 121 }
122 PrintF("]\n"); 122 PrintF("]\n");
123 } 123 }
124 124
125 #ifdef DEBUG 125 #ifdef DEBUG
126 if (!info->IsStub() && print_source) { 126 if (!info->IsStub() && print_source) {
127 PrintF("--- Source from AST ---\n%s\n", 127 PrintF("--- Source from AST ---\n%s\n",
128 PrettyPrinter(info->zone()).PrintProgram(info->function())); 128 PrettyPrinter(info->isolate(), info->zone())
129 .PrintProgram(info->function()));
129 } 130 }
130 131
131 if (!info->IsStub() && print_ast) { 132 if (!info->IsStub() && print_ast) {
132 PrintF("--- AST ---\n%s\n", 133 PrintF("--- AST ---\n%s\n", AstPrinter(info->isolate(), info->zone())
133 AstPrinter(info->zone()).PrintProgram(info->function())); 134 .PrintProgram(info->function()));
134 } 135 }
135 #endif // DEBUG 136 #endif // DEBUG
136 } 137 }
137 138
138 139
139 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, 140 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
140 Code::Flags flags, 141 Code::Flags flags,
141 CompilationInfo* info) { 142 CompilationInfo* info) {
142 Isolate* isolate = info->isolate(); 143 Isolate* isolate = info->isolate();
143 144
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 masm->positions_recorder()->RecordStatementPosition(pos); 228 masm->positions_recorder()->RecordStatementPosition(pos);
228 masm->positions_recorder()->RecordPosition(pos); 229 masm->positions_recorder()->RecordPosition(pos);
229 if (right_here) { 230 if (right_here) {
230 return masm->positions_recorder()->WriteRecordedPositions(); 231 return masm->positions_recorder()->WriteRecordedPositions();
231 } 232 }
232 } 233 }
233 return false; 234 return false;
234 } 235 }
235 236
236 } } // namespace v8::internal 237 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast-this-access-visitor.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698