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

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

Issue 10878042: Propagate type of list literal from parser to ast, graph, and optimizer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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.cc ('k') | runtime/vm/parser.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/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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 name = Symbols::Function(); 761 name = Symbols::Function();
762 cls = Class::New<DartFunction>(); 762 cls = Class::New<DartFunction>();
763 RegisterClass(cls, name, core_lib); 763 RegisterClass(cls, name, core_lib);
764 pending_classes.Add(cls, Heap::kOld); 764 pending_classes.Add(cls, Heap::kOld);
765 type = Type::NewNonParameterizedType(cls); 765 type = Type::NewNonParameterizedType(cls);
766 object_store->set_function_type(type); 766 object_store->set_function_type(type);
767 767
768 cls = Class::New<Number>(); 768 cls = Class::New<Number>();
769 name = Symbols::Number(); 769 name = Symbols::Number();
770 RegisterClass(cls, name, core_lib); 770 RegisterClass(cls, name, core_lib);
771 pending_classes.Add(cls, Heap::kOld);
srdjan 2012/08/24 17:08:33 Since numer is an interface, shouldn't we be using
regis 2012/08/24 18:16:02 I understand we are transitioning to an interface-
771 type = Type::NewNonParameterizedType(cls); 772 type = Type::NewNonParameterizedType(cls);
772 object_store->set_number_type(type); 773 object_store->set_number_type(type);
773 774
774 cls = CreateAndRegisterInterface("int", script, core_lib); 775 cls = CreateAndRegisterInterface("int", script, core_lib);
775 pending_classes.Add(cls, Heap::kOld); 776 pending_classes.Add(cls, Heap::kOld);
776 type = Type::NewNonParameterizedType(cls); 777 type = Type::NewNonParameterizedType(cls);
777 object_store->set_int_interface(type); 778 object_store->set_int_interface(type);
778 779
779 cls = CreateAndRegisterInterface("double", script, core_lib); 780 cls = CreateAndRegisterInterface("double", script, core_lib);
780 pending_classes.Add(cls, Heap::kOld); 781 pending_classes.Add(cls, Heap::kOld);
(...skipping 10400 matching lines...) Expand 10 before | Expand all | Expand 10 after
11181 } 11182 }
11182 return result.raw(); 11183 return result.raw();
11183 } 11184 }
11184 11185
11185 11186
11186 const char* WeakProperty::ToCString() const { 11187 const char* WeakProperty::ToCString() const {
11187 return "_WeakProperty"; 11188 return "_WeakProperty";
11188 } 11189 }
11189 11190
11190 } // namespace dart 11191 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698