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

Side by Side Diff: runtime/vm/flow_graph_builder.cc

Issue 1012333002: Keep zone cached in SnapshotReader to allow removing ZoneHandle(Isolate*) interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('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 (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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698