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

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

Issue 101753005: Changes to interpret the optimizable bit based on whether the function (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/compiler.cc ('k') | runtime/vm/flow_graph_compiler_arm.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 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 Type::ZoneHandle(Type::SmiType())); 3168 Type::ZoneHandle(Type::SmiType()));
3169 length_load->set_result_cid(kSmiCid); 3169 length_load->set_result_cid(kSmiCid);
3170 length_load->set_recognized_kind(MethodRecognizer::kObjectArrayLength); 3170 length_load->set_recognized_kind(MethodRecognizer::kObjectArrayLength);
3171 return ReturnDefinition(length_load); 3171 return ReturnDefinition(length_load);
3172 } 3172 }
3173 default: 3173 default:
3174 break; 3174 break;
3175 } 3175 }
3176 } 3176 }
3177 InlineBailout("EffectGraphVisitor::VisitNativeBodyNode"); 3177 InlineBailout("EffectGraphVisitor::VisitNativeBodyNode");
3178 function.set_is_optimizable(false);
3179 NativeCallInstr* native_call = new NativeCallInstr(node); 3178 NativeCallInstr* native_call = new NativeCallInstr(node);
3180 ReturnDefinition(native_call); 3179 ReturnDefinition(native_call);
3181 } 3180 }
3182 3181
3183 3182
3184 void EffectGraphVisitor::VisitPrimaryNode(PrimaryNode* node) { 3183 void EffectGraphVisitor::VisitPrimaryNode(PrimaryNode* node) {
3185 // PrimaryNodes are temporary during parsing. 3184 // PrimaryNodes are temporary during parsing.
3186 UNREACHABLE(); 3185 UNREACHABLE();
3187 } 3186 }
3188 3187
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
4036 LanguageError::kError, 4035 LanguageError::kError,
4037 Heap::kNew, 4036 Heap::kNew,
4038 "FlowGraphBuilder Bailout: %s %s", 4037 "FlowGraphBuilder Bailout: %s %s",
4039 String::Handle(function.name()).ToCString(), 4038 String::Handle(function.name()).ToCString(),
4040 reason)); 4039 reason));
4041 Isolate::Current()->long_jump_base()->Jump(1, error); 4040 Isolate::Current()->long_jump_base()->Jump(1, error);
4042 } 4041 }
4043 4042
4044 4043
4045 } // namespace dart 4044 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698