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

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

Issue 13190014: Optimizes 'as' operation in similar way as 'instanceof': collect type feedback in unoptimized mode… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/intermediate_language.h ('k') | runtime/vm/symbols.h » ('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/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/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 119
120 const double MegamorphicCache::kLoadFactor = 0.75; 120 const double MegamorphicCache::kLoadFactor = 0.75;
121 121
122 122
123 // The following functions are marked as invisible, meaning they will be hidden 123 // The following functions are marked as invisible, meaning they will be hidden
124 // in the stack trace. 124 // in the stack trace.
125 // (Library, class name, method name) 125 // (Library, class name, method name)
126 #define INVISIBLE_LIST(V) \ 126 #define INVISIBLE_LIST(V) \
127 V(CoreLibrary, Object, _noSuchMethod) \ 127 V(CoreLibrary, Object, _noSuchMethod) \
128 V(CoreLibrary, Object, _as) \
129 V(CoreLibrary, Object, _instanceOf) \
128 V(CoreLibrary, _ObjectArray, _ObjectArray.) \ 130 V(CoreLibrary, _ObjectArray, _ObjectArray.) \
129 V(CoreLibrary, AssertionErrorImplementation, _throwNew) \ 131 V(CoreLibrary, AssertionErrorImplementation, _throwNew) \
130 V(CoreLibrary, TypeErrorImplementation, _throwNew) \ 132 V(CoreLibrary, TypeErrorImplementation, _throwNew) \
131 V(CoreLibrary, FallThroughErrorImplementation, _throwNew) \ 133 V(CoreLibrary, FallThroughErrorImplementation, _throwNew) \
132 V(CoreLibrary, AbstractClassInstantiationErrorImplementation, _throwNew) \ 134 V(CoreLibrary, AbstractClassInstantiationErrorImplementation, _throwNew) \
133 V(CoreLibrary, NoSuchMethodError, _throwNew) \ 135 V(CoreLibrary, NoSuchMethodError, _throwNew) \
134 V(CoreLibrary, int, _throwFormatException) \ 136 V(CoreLibrary, int, _throwFormatException) \
135 V(CoreLibrary, int, _parse) \ 137 V(CoreLibrary, int, _parse) \
136 V(CoreLibrary, StackTrace, _setupFullStackTrace) \ 138 V(CoreLibrary, StackTrace, _setupFullStackTrace) \
137 139
(...skipping 12909 matching lines...) Expand 10 before | Expand all | Expand 10 after
13047 } 13049 }
13048 return result.raw(); 13050 return result.raw();
13049 } 13051 }
13050 13052
13051 13053
13052 const char* WeakProperty::ToCString() const { 13054 const char* WeakProperty::ToCString() const {
13053 return "_WeakProperty"; 13055 return "_WeakProperty";
13054 } 13056 }
13055 13057
13056 } // namespace dart 13058 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698