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

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

Issue 10538064: Implement inlined LoadIndexed operation for arrays on x64. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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/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/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/flow_graph_compiler.h" 9 #include "vm/flow_graph_compiler.h"
10 #include "vm/locations.h" 10 #include "vm/locations.h"
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 415
416 416
417 RawAbstractType* NativeCallComp::StaticType() const { 417 RawAbstractType* NativeCallComp::StaticType() const {
418 // The result type of the native function is identical to the result type of 418 // The result type of the native function is identical to the result type of
419 // the enclosing native Dart function. However, we prefer to check the type 419 // the enclosing native Dart function. However, we prefer to check the type
420 // of the value returned from the native call. 420 // of the value returned from the native call.
421 return Type::DynamicType(); 421 return Type::DynamicType();
422 } 422 }
423 423
424 424
425 RawAbstractType* LoadIndexedComp::StaticType() const {
426 return Type::DynamicType();
427 }
428
429
425 RawAbstractType* StoreIndexedComp::StaticType() const { 430 RawAbstractType* StoreIndexedComp::StaticType() const {
426 UNREACHABLE(); 431 UNREACHABLE();
427 return AbstractType::null(); 432 return AbstractType::null();
428 } 433 }
429 434
430 435
431 RawAbstractType* InstanceSetterComp::StaticType() const { 436 RawAbstractType* InstanceSetterComp::StaticType() const {
432 return value()->StaticType(); 437 return value()->StaticType();
433 } 438 }
434 439
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 StubCode::GetAllocationStubForClosure(closure_function)); 983 StubCode::GetAllocationStubForClosure(closure_function));
979 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); 984 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint());
980 compiler->GenerateCall(token_index(), try_index(), &label, 985 compiler->GenerateCall(token_index(), try_index(), &label,
981 PcDescriptors::kOther); 986 PcDescriptors::kOther);
982 __ Drop(2); // Discard type arguments and receiver. 987 __ Drop(2); // Discard type arguments and receiver.
983 } 988 }
984 989
985 #undef __ 990 #undef __
986 991
987 } // namespace dart 992 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698