86da5111ad
This CL removes optimized access for scalarlist, and only the new TypedData classes are optimized. I changed the runtime libraries core and math to use typedData instead of scalarlist (Uint16List is used in StringBuffer, Uint32List by Math.random). Instead of using LoadIndexed for internal and external arrays, split external loads into a load of the backing store and a load of the element. v3 <- LoadIndexed(v1, index) becomes v2 <- LoadUntagged(v1, ExternalTypedData::data_offset) v3 <- LoadIndexed(v2, index); For this I introduce two new representations in the IL: kUntagged (for values that hold a untagged pointer) and kNoRepresentation (for instructions accept any input representation) Deoptimization does not need to know about kUntagged since these values can never occur in the environment. Also with this change: * fix COMPILE_ASSERT and use it in one place. * Cleanup IL printer output of deopt ids. Review URL: https://codereview.chromium.org//12871010 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20198 260f80e4-7a28-3924-810f-c04153c831b5
7 lines
262 B
Dart
7 lines
262 B
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import "dart:math";
|
|
import "dart:typeddata";
|