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

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

Issue 12212050: Fix allocation of array tables (use store barrier if needed, store values directly instead of via s… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 RawAbstractType* InstanceOfInstr::CompileType() const { 1275 RawAbstractType* InstanceOfInstr::CompileType() const {
1276 return Type::BoolType(); 1276 return Type::BoolType();
1277 } 1277 }
1278 1278
1279 1279
1280 RawAbstractType* CreateArrayInstr::CompileType() const { 1280 RawAbstractType* CreateArrayInstr::CompileType() const {
1281 return type().raw(); 1281 return type().raw();
1282 } 1282 }
1283 1283
1284 1284
1285 intptr_t CreateArrayInstr::ResultCid() const {
1286 return Class::Handle(type().type_class()).id();
1287 }
1288
1289
1285 RawAbstractType* CreateClosureInstr::CompileType() const { 1290 RawAbstractType* CreateClosureInstr::CompileType() const {
1286 const Function& fun = function(); 1291 const Function& fun = function();
1287 const Class& signature_class = Class::Handle(fun.signature_class()); 1292 const Class& signature_class = Class::Handle(fun.signature_class());
1288 return signature_class.SignatureType(); 1293 return signature_class.SignatureType();
1289 } 1294 }
1290 1295
1291 1296
1292 RawAbstractType* AllocateObjectInstr::CompileType() const { 1297 RawAbstractType* AllocateObjectInstr::CompileType() const {
1293 // TODO(regis): Be more specific. 1298 // TODO(regis): Be more specific.
1294 return Type::DynamicType(); 1299 return Type::DynamicType();
(...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after
2868 default: 2873 default:
2869 UNREACHABLE(); 2874 UNREACHABLE();
2870 } 2875 }
2871 return kPowRuntimeEntry; 2876 return kPowRuntimeEntry;
2872 } 2877 }
2873 2878
2874 2879
2875 #undef __ 2880 #undef __
2876 2881
2877 } // namespace dart 2882 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698