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

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

Issue 41573003: Specialize string equality for various string classes. Implement intrinsics for string equal… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after
4056 4056
4057 4057
4058 void Function::SwitchToUnoptimizedCode() const { 4058 void Function::SwitchToUnoptimizedCode() const {
4059 ASSERT(HasOptimizedCode()); 4059 ASSERT(HasOptimizedCode());
4060 4060
4061 const Code& current_code = Code::Handle(CurrentCode()); 4061 const Code& current_code = Code::Handle(CurrentCode());
4062 4062
4063 // Optimized code object might have been actually fully produced by the 4063 // Optimized code object might have been actually fully produced by the
4064 // intrinsifier in this case nothing has to be done. In fact an attempt to 4064 // intrinsifier in this case nothing has to be done. In fact an attempt to
4065 // patch such code will cause crash. 4065 // patch such code will cause crash.
4066 // TODO(vegorov): if intrisifier can fully intrisify the function then we 4066 // TODO(vegorov): if intrisifier can fully intrinsify the function then we
4067 // should not later try to optimize it. 4067 // should not later try to optimize it.
4068 if (PcDescriptors::Handle(current_code.pc_descriptors()).Length() == 0) { 4068 if (PcDescriptors::Handle(current_code.pc_descriptors()).Length() == 0) {
4069 return; 4069 return;
4070 } 4070 }
4071 4071
4072 if (FLAG_trace_disabling_optimized_code) { 4072 if (FLAG_trace_disabling_optimized_code) {
4073 OS::Print("Disabling optimized code: '%s' entry: %#" Px "\n", 4073 OS::Print("Disabling optimized code: '%s' entry: %#" Px "\n",
4074 ToFullyQualifiedCString(), 4074 ToFullyQualifiedCString(),
4075 current_code.EntryPoint()); 4075 current_code.EntryPoint());
4076 } 4076 }
(...skipping 11512 matching lines...) Expand 10 before | Expand all | Expand 10 after
15589 return "_MirrorReference"; 15589 return "_MirrorReference";
15590 } 15590 }
15591 15591
15592 15592
15593 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 15593 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
15594 JSONObject jsobj(stream); 15594 JSONObject jsobj(stream);
15595 } 15595 }
15596 15596
15597 15597
15598 } // namespace dart 15598 } // namespace dart
OLDNEW
« runtime/vm/intrinsifier_arm.cc ('K') | « runtime/vm/intrinsifier_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698