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

Side by Side Diff: src/compiler/node-properties.cc

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 5 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-operator.cc ('k') | src/compiler/opcodes.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 #include "src/compiler/operator-properties.h" 10 #include "src/compiler/operator-properties.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 return MaybeHandle<Context>(); 349 return MaybeHandle<Context>();
350 } 350 }
351 // Skip over the intermediate contexts, we're only interested in the 351 // Skip over the intermediate contexts, we're only interested in the
352 // very last context in the context chain anyway. 352 // very last context in the context chain anyway.
353 node = NodeProperties::GetContextInput(node); 353 node = NodeProperties::GetContextInput(node);
354 break; 354 break;
355 } 355 }
356 case IrOpcode::kJSCreateBlockContext: 356 case IrOpcode::kJSCreateBlockContext:
357 case IrOpcode::kJSCreateCatchContext: 357 case IrOpcode::kJSCreateCatchContext:
358 case IrOpcode::kJSCreateFunctionContext: 358 case IrOpcode::kJSCreateFunctionContext:
359 case IrOpcode::kJSCreateModuleContext:
360 case IrOpcode::kJSCreateScriptContext: 359 case IrOpcode::kJSCreateScriptContext:
361 case IrOpcode::kJSCreateWithContext: { 360 case IrOpcode::kJSCreateWithContext: {
362 // Skip over the intermediate contexts, we're only interested in the 361 // Skip over the intermediate contexts, we're only interested in the
363 // very last context in the context chain anyway. 362 // very last context in the context chain anyway.
364 node = NodeProperties::GetContextInput(node); 363 node = NodeProperties::GetContextInput(node);
365 break; 364 break;
366 } 365 }
367 case IrOpcode::kHeapConstant: { 366 case IrOpcode::kHeapConstant: {
368 // Extract the native context from the actual {context}. 367 // Extract the native context from the actual {context}.
369 Handle<Context> context = 368 Handle<Context> context =
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // static 425 // static
427 bool NodeProperties::IsInputRange(Edge edge, int first, int num) { 426 bool NodeProperties::IsInputRange(Edge edge, int first, int num) {
428 if (num == 0) return false; 427 if (num == 0) return false;
429 int const index = edge.index(); 428 int const index = edge.index();
430 return first <= index && index < first + num; 429 return first <= index && index < first + num;
431 } 430 }
432 431
433 } // namespace compiler 432 } // namespace compiler
434 } // namespace internal 433 } // namespace internal
435 } // namespace v8 434 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698