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 "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
8 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" |
9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1345 } | 1345 } |
1346 EffectGraphVisitor::VisitBinaryOpNode(node); | 1346 EffectGraphVisitor::VisitBinaryOpNode(node); |
1347 } | 1347 } |
1348 | 1348 |
1349 | 1349 |
1350 static const String& BinaryOpAndMaskName(BinaryOpNode* node) { | 1350 static const String& BinaryOpAndMaskName(BinaryOpNode* node) { |
1351 if (node->kind() == Token::kSHL) { | 1351 if (node->kind() == Token::kSHL) { |
1352 return Library::PrivateCoreLibName(Symbols::_leftShiftWithMask32()); | 1352 return Library::PrivateCoreLibName(Symbols::_leftShiftWithMask32()); |
1353 } | 1353 } |
1354 UNIMPLEMENTED(); | 1354 UNIMPLEMENTED(); |
1355 return String::ZoneHandle(Isolate::Current(), String::null()); | 1355 return String::ZoneHandle(Thread::Current()->zone(), String::null()); |
1356 } | 1356 } |
1357 | 1357 |
1358 | 1358 |
1359 // <Expression> :: BinaryOp { kind: Token::Kind | 1359 // <Expression> :: BinaryOp { kind: Token::Kind |
1360 // left: <Expression> | 1360 // left: <Expression> |
1361 // right: <Expression> | 1361 // right: <Expression> |
1362 // mask32: constant } | 1362 // mask32: constant } |
1363 void EffectGraphVisitor::VisitBinaryOpWithMask32Node( | 1363 void EffectGraphVisitor::VisitBinaryOpWithMask32Node( |
1364 BinaryOpWithMask32Node* node) { | 1364 BinaryOpWithMask32Node* node) { |
1365 ASSERT((node->kind() != Token::kAND) && (node->kind() != Token::kOR)); | 1365 ASSERT((node->kind() != Token::kAND) && (node->kind() != Token::kOR)); |
(...skipping 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4368 Report::MessageF(Report::kBailout, | 4368 Report::MessageF(Report::kBailout, |
4369 Script::Handle(function.script()), | 4369 Script::Handle(function.script()), |
4370 function.token_pos(), | 4370 function.token_pos(), |
4371 "FlowGraphBuilder Bailout: %s %s", | 4371 "FlowGraphBuilder Bailout: %s %s", |
4372 String::Handle(function.name()).ToCString(), | 4372 String::Handle(function.name()).ToCString(), |
4373 reason); | 4373 reason); |
4374 UNREACHABLE(); | 4374 UNREACHABLE(); |
4375 } | 4375 } |
4376 | 4376 |
4377 } // namespace dart | 4377 } // namespace dart |
OLD | NEW |