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

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

Issue 9664023: Implement factory call. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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_builder.cc ('k') | no next file » | 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 "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/bootstrap.h" 10 #include "vm/bootstrap.h"
(...skipping 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 ASSERT(!other_type.IsNull()); 2845 ASSERT(!other_type.IsNull());
2846 if (!type.IsMoreSpecificThan(other_type, malformed_error)) { 2846 if (!type.IsMoreSpecificThan(other_type, malformed_error)) {
2847 return false; 2847 return false;
2848 } 2848 }
2849 } 2849 }
2850 return true; 2850 return true;
2851 } 2851 }
2852 2852
2853 2853
2854 const char* AbstractTypeArguments::ToCString() const { 2854 const char* AbstractTypeArguments::ToCString() const {
2855 // AbstractTypeArguments is an abstract class. 2855 // AbstractTypeArguments is an abstract class, valid only for representing
2856 // null.
2857 if (IsNull()) {
2858 return "NULL AbstractTypeArguments";
2859 }
2856 UNREACHABLE(); 2860 UNREACHABLE();
2857 return "AbstractTypeArguments"; 2861 return "AbstractTypeArguments";
2858 } 2862 }
2859 2863
2860 2864
2861 intptr_t TypeArguments::Length() const { 2865 intptr_t TypeArguments::Length() const {
2862 ASSERT(!IsNull()); 2866 ASSERT(!IsNull());
2863 return Smi::Value(raw_ptr()->length_); 2867 return Smi::Value(raw_ptr()->length_);
2864 } 2868 }
2865 2869
(...skipping 5966 matching lines...) Expand 10 before | Expand all | Expand 10 after
8832 result.set_num_args_tested(num_args_tested); 8836 result.set_num_args_tested(num_args_tested);
8833 // Number of array elements in one test entry (num_args_tested + 1) 8837 // Number of array elements in one test entry (num_args_tested + 1)
8834 intptr_t len = result.TestEntryLength(); 8838 intptr_t len = result.TestEntryLength();
8835 // IC data array must be null terminated (sentinel entry). 8839 // IC data array must be null terminated (sentinel entry).
8836 const Array& ic_data = Array::Handle(Array::New(len, Heap::kOld)); 8840 const Array& ic_data = Array::Handle(Array::New(len, Heap::kOld));
8837 result.set_ic_data(ic_data); 8841 result.set_ic_data(ic_data);
8838 return result.raw(); 8842 return result.raw();
8839 } 8843 }
8840 8844
8841 } // namespace dart 8845 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698