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

Side by Side Diff: src/compiler/js-generic-lowering.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/compiler/js-generic-lowering.h ('k') | src/compiler/js-graph.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/graph-inl.h" 8 #include "src/compiler/graph-inl.h"
9 #include "src/compiler/js-generic-lowering.h" 9 #include "src/compiler/js-generic-lowering.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // TODO(titzer): total hack to share function context constants. 392 // TODO(titzer): total hack to share function context constants.
393 // Remove this when the JSGraph canonicalizes heap constants. 393 // Remove this when the JSGraph canonicalizes heap constants.
394 Node* context = node->InputAt(index); 394 Node* context = node->InputAt(index);
395 HeapObjectMatcher<Context> context_const(context); 395 HeapObjectMatcher<Context> context_const(context);
396 if (!context_const.HasValue() || 396 if (!context_const.HasValue() ||
397 *(context_const.Value().handle()) != function->context()) { 397 *(context_const.Value().handle()) != function->context()) {
398 context = jsgraph()->HeapConstant(Handle<Context>(function->context())); 398 context = jsgraph()->HeapConstant(Handle<Context>(function->context()));
399 } 399 }
400 node->ReplaceInput(index, context); 400 node->ReplaceInput(index, context);
401 CallDescriptor* desc = linkage()->GetJSCallDescriptor( 401 CallDescriptor* desc = linkage()->GetJSCallDescriptor(
402 1 + arg_count, jsgraph()->zone(), FlagsForNode(node)); 402 jsgraph()->zone(), 1 + arg_count, FlagsForNode(node));
403 PatchOperator(node, common()->Call(desc)); 403 PatchOperator(node, common()->Call(desc));
404 return true; 404 return true;
405 } 405 }
406 406
407 407
408 void JSGenericLowering::LowerJSCallFunction(Node* node) { 408 void JSGenericLowering::LowerJSCallFunction(Node* node) {
409 // Fast case: call function directly. 409 // Fast case: call function directly.
410 if (TryLowerDirectJSCall(node)) return; 410 if (TryLowerDirectJSCall(node)) return;
411 411
412 // General case: CallFunctionStub. 412 // General case: CallFunctionStub.
(...skipping 10 matching lines...) Expand all
423 423
424 424
425 void JSGenericLowering::LowerJSCallRuntime(Node* node) { 425 void JSGenericLowering::LowerJSCallRuntime(Node* node) {
426 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); 426 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op());
427 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); 427 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity()));
428 } 428 }
429 429
430 } // namespace compiler 430 } // namespace compiler
431 } // namespace internal 431 } // namespace internal
432 } // namespace v8 432 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.h ('k') | src/compiler/js-graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698