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

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
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 12385 matching lines...) Expand 10 before | Expand all | Expand 10 after
12396 (type_class() == Type::Handle(Type::Double()).type_class()); 12396 (type_class() == Type::Handle(Type::Double()).type_class());
12397 } 12397 }
12398 12398
12399 12399
12400 bool AbstractType::IsFloat32x4Type() const { 12400 bool AbstractType::IsFloat32x4Type() const {
12401 return HasResolvedTypeClass() && 12401 return HasResolvedTypeClass() &&
12402 (type_class() == Type::Handle(Type::Float32x4()).type_class()); 12402 (type_class() == Type::Handle(Type::Float32x4()).type_class());
12403 } 12403 }
12404 12404
12405 12405
12406 bool AbstractType::IsFloat64x2Type() const {
12407 return HasResolvedTypeClass() &&
12408 (type_class() == Type::Handle(Type::Float64x2()).type_class());
12409 }
12410
12411
12406 bool AbstractType::IsInt32x4Type() const { 12412 bool AbstractType::IsInt32x4Type() const {
12407 return HasResolvedTypeClass() && 12413 return HasResolvedTypeClass() &&
12408 (type_class() == Type::Handle(Type::Int32x4()).type_class()); 12414 (type_class() == Type::Handle(Type::Int32x4()).type_class());
12409 } 12415 }
12410 12416
12411 12417
12412 bool AbstractType::IsNumberType() const { 12418 bool AbstractType::IsNumberType() const {
12413 return HasResolvedTypeClass() && 12419 return HasResolvedTypeClass() &&
12414 (type_class() == Type::Handle(Type::Number()).type_class()); 12420 (type_class() == Type::Handle(Type::Number()).type_class());
12415 } 12421 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
12564 RawType* Type::Double() { 12570 RawType* Type::Double() {
12565 return Isolate::Current()->object_store()->double_type(); 12571 return Isolate::Current()->object_store()->double_type();
12566 } 12572 }
12567 12573
12568 12574
12569 RawType* Type::Float32x4() { 12575 RawType* Type::Float32x4() {
12570 return Isolate::Current()->object_store()->float32x4_type(); 12576 return Isolate::Current()->object_store()->float32x4_type();
12571 } 12577 }
12572 12578
12573 12579
12580 RawType* Type::Float64x2() {
12581 return Isolate::Current()->object_store()->float64x2_type();
12582 }
12583
12584
12574 RawType* Type::Int32x4() { 12585 RawType* Type::Int32x4() {
12575 return Isolate::Current()->object_store()->int32x4_type(); 12586 return Isolate::Current()->object_store()->int32x4_type();
12576 } 12587 }
12577 12588
12578 12589
12579 RawType* Type::Number() { 12590 RawType* Type::Number() {
12580 return Isolate::Current()->object_store()->number_type(); 12591 return Isolate::Current()->object_store()->number_type();
12581 } 12592 }
12582 12593
12583 12594
(...skipping 4851 matching lines...) Expand 10 before | Expand all | Expand 10 after
17435 return "_MirrorReference"; 17446 return "_MirrorReference";
17436 } 17447 }
17437 17448
17438 17449
17439 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 17450 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
17440 Instance::PrintToJSONStream(stream, ref); 17451 Instance::PrintToJSONStream(stream, ref);
17441 } 17452 }
17442 17453
17443 17454
17444 } // namespace dart 17455 } // namespace dart
OLDNEW
« runtime/vm/intermediate_language_ia32.cc ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698