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

Side by Side Diff: src/compiler/code-generator.cc

Issue 2316083002: [compiler] Stop delegating CompilationInfo::context. (Closed)
Patch Set: Created 4 years, 3 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/compilation-info.cc ('k') | src/compiler/pipeline.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/address-map.h" 7 #include "src/address-map.h"
8 #include "src/base/adapters.h" 8 #include "src/base/adapters.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } else if (operand.IsRegister() && (kind & Safepoint::kWithRegisters)) { 277 } else if (operand.IsRegister() && (kind & Safepoint::kWithRegisters)) {
278 Register reg = LocationOperand::cast(operand).GetRegister(); 278 Register reg = LocationOperand::cast(operand).GetRegister();
279 safepoint.DefinePointerRegister(reg, zone()); 279 safepoint.DefinePointerRegister(reg, zone());
280 } 280 }
281 } 281 }
282 } 282 }
283 283
284 bool CodeGenerator::IsMaterializableFromFrame(Handle<HeapObject> object, 284 bool CodeGenerator::IsMaterializableFromFrame(Handle<HeapObject> object,
285 int* slot_return) { 285 int* slot_return) {
286 if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) { 286 if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) {
287 if (object.is_identical_to(info()->context()) && !info()->is_osr()) { 287 if (*object == info()->context() && !info()->is_osr()) {
288 *slot_return = Frame::kContextSlot; 288 *slot_return = Frame::kContextSlot;
289 return true; 289 return true;
290 } else if (object.is_identical_to(info()->closure())) { 290 } else if (object.is_identical_to(info()->closure())) {
291 *slot_return = Frame::kJSFunctionSlot; 291 *slot_return = Frame::kJSFunctionSlot;
292 return true; 292 return true;
293 } 293 }
294 } 294 }
295 return false; 295 return false;
296 } 296 }
297 297
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 941 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
942 gen->ools_ = this; 942 gen->ools_ = this;
943 } 943 }
944 944
945 945
946 OutOfLineCode::~OutOfLineCode() {} 946 OutOfLineCode::~OutOfLineCode() {}
947 947
948 } // namespace compiler 948 } // namespace compiler
949 } // namespace internal 949 } // namespace internal
950 } // namespace v8 950 } // namespace v8
OLDNEW
« no previous file with comments | « src/compilation-info.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698