| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/flow_graph_builder.h" | 5 #include "vm/flow_graph_builder.h" |
| 6 | 6 |
| 7 #include "vm/ast_printer.h" | 7 #include "vm/ast_printer.h" |
| 8 #include "vm/code_descriptors.h" | 8 #include "vm/code_descriptors.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
| (...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1399 } | 1399 } |
| 1400 | 1400 |
| 1401 | 1401 |
| 1402 void EffectGraphVisitor::VisitArgumentListNode(ArgumentListNode* node) { | 1402 void EffectGraphVisitor::VisitArgumentListNode(ArgumentListNode* node) { |
| 1403 UNREACHABLE(); | 1403 UNREACHABLE(); |
| 1404 } | 1404 } |
| 1405 | 1405 |
| 1406 | 1406 |
| 1407 void EffectGraphVisitor::VisitArgumentDefinitionTestNode( | 1407 void EffectGraphVisitor::VisitArgumentDefinitionTestNode( |
| 1408 ArgumentDefinitionTestNode* node) { | 1408 ArgumentDefinitionTestNode* node) { |
| 1409 InlineBailout("EffectGraphVisitor::VisitArgumentDefinitionTestNode"); |
| 1409 Definition* load = BuildLoadLocal(node->saved_arguments_descriptor()); | 1410 Definition* load = BuildLoadLocal(node->saved_arguments_descriptor()); |
| 1410 Value* arguments_descriptor = Bind(load); | 1411 Value* arguments_descriptor = Bind(load); |
| 1411 ArgumentDefinitionTestInstr* arg_def_test = | 1412 ArgumentDefinitionTestInstr* arg_def_test = |
| 1412 new ArgumentDefinitionTestInstr(node, arguments_descriptor); | 1413 new ArgumentDefinitionTestInstr(node, arguments_descriptor); |
| 1413 ReturnDefinition(arg_def_test); | 1414 ReturnDefinition(arg_def_test); |
| 1414 } | 1415 } |
| 1415 | 1416 |
| 1416 | 1417 |
| 1417 void EffectGraphVisitor::VisitArrayNode(ArrayNode* node) { | 1418 void EffectGraphVisitor::VisitArrayNode(ArrayNode* node) { |
| 1418 // Translate the array elements and collect their values. | 1419 // Translate the array elements and collect their values. |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2671 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; | 2672 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; |
| 2672 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 2673 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
| 2673 OS::SNPrint(chars, len, kFormat, function_name, reason); | 2674 OS::SNPrint(chars, len, kFormat, function_name, reason); |
| 2674 const Error& error = Error::Handle( | 2675 const Error& error = Error::Handle( |
| 2675 LanguageError::New(String::Handle(String::New(chars)))); | 2676 LanguageError::New(String::Handle(String::New(chars)))); |
| 2676 Isolate::Current()->long_jump_base()->Jump(1, error); | 2677 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 2677 } | 2678 } |
| 2678 | 2679 |
| 2679 | 2680 |
| 2680 } // namespace dart | 2681 } // namespace dart |
| OLD | NEW |