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

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

Issue 172653002: Unbox/Box Float64x2 and inline typed array loads and stores (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/typed_data/float64x2_functional_test.dart » ('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/cpu.h" 10 #include "vm/cpu.h"
(...skipping 12390 matching lines...) Expand 10 before | Expand all | Expand 10 after
12401 (type_class() == Type::Handle(Type::Double()).type_class()); 12401 (type_class() == Type::Handle(Type::Double()).type_class());
12402 } 12402 }
12403 12403
12404 12404
12405 bool AbstractType::IsFloat32x4Type() const { 12405 bool AbstractType::IsFloat32x4Type() const {
12406 return HasResolvedTypeClass() && 12406 return HasResolvedTypeClass() &&
12407 (type_class() == Type::Handle(Type::Float32x4()).type_class()); 12407 (type_class() == Type::Handle(Type::Float32x4()).type_class());
12408 } 12408 }
12409 12409
12410 12410
12411 bool AbstractType::IsFloat64x2Type() const {
12412 return HasResolvedTypeClass() &&
12413 (type_class() == Type::Handle(Type::Float64x2()).type_class());
12414 }
12415
12416
12411 bool AbstractType::IsInt32x4Type() const { 12417 bool AbstractType::IsInt32x4Type() const {
12412 return HasResolvedTypeClass() && 12418 return HasResolvedTypeClass() &&
12413 (type_class() == Type::Handle(Type::Int32x4()).type_class()); 12419 (type_class() == Type::Handle(Type::Int32x4()).type_class());
12414 } 12420 }
12415 12421
12416 12422
12417 bool AbstractType::IsNumberType() const { 12423 bool AbstractType::IsNumberType() const {
12418 return HasResolvedTypeClass() && 12424 return HasResolvedTypeClass() &&
12419 (type_class() == Type::Handle(Type::Number()).type_class()); 12425 (type_class() == Type::Handle(Type::Number()).type_class());
12420 } 12426 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
12569 RawType* Type::Double() { 12575 RawType* Type::Double() {
12570 return Isolate::Current()->object_store()->double_type(); 12576 return Isolate::Current()->object_store()->double_type();
12571 } 12577 }
12572 12578
12573 12579
12574 RawType* Type::Float32x4() { 12580 RawType* Type::Float32x4() {
12575 return Isolate::Current()->object_store()->float32x4_type(); 12581 return Isolate::Current()->object_store()->float32x4_type();
12576 } 12582 }
12577 12583
12578 12584
12585 RawType* Type::Float64x2() {
12586 return Isolate::Current()->object_store()->float64x2_type();
12587 }
12588
12589
12579 RawType* Type::Int32x4() { 12590 RawType* Type::Int32x4() {
12580 return Isolate::Current()->object_store()->int32x4_type(); 12591 return Isolate::Current()->object_store()->int32x4_type();
12581 } 12592 }
12582 12593
12583 12594
12584 RawType* Type::Number() { 12595 RawType* Type::Number() {
12585 return Isolate::Current()->object_store()->number_type(); 12596 return Isolate::Current()->object_store()->number_type();
12586 } 12597 }
12587 12598
12588 12599
(...skipping 4853 matching lines...) Expand 10 before | Expand all | Expand 10 after
17442 return "_MirrorReference"; 17453 return "_MirrorReference";
17443 } 17454 }
17444 17455
17445 17456
17446 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 17457 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
17447 Instance::PrintToJSONStream(stream, ref); 17458 Instance::PrintToJSONStream(stream, ref);
17448 } 17459 }
17449 17460
17450 17461
17451 } // namespace dart 17462 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/typed_data/float64x2_functional_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698