OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |