mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![Vyacheslav Egorov](/assets/img/avatar_default.png)
Relanding 4be50d6fa1
with fixes to DBC
and location summaries: AssertAssignable must save FPU registers.
For now we are limiting this to type checks against type parameter types.
In Dart 1 mode Dart2JS compiles itself in 28s when running from source
and in 23s when running from ideal app-jit snapshot (trained on the
same workload).
Before this change in Dart 2 mode numbers were 51s and 57s respectively.
After this change in Dart 2 mode numbers are 38s and 32s. Meaning
that regression is reduced by 50%.
Issue https://github.com/dart-lang/sdk/issues/31798
Issue https://github.com/dart-lang/sdk/issues/33257
Change-Id: Ifb55f86453bfdf36a2e03bcd7f3197cfde257103
Reviewed-on: https://dart-review.googlesource.com/57980
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
// 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.
|
|
|
|
#ifndef RUNTIME_VM_INSTRUCTIONS_H_
|
|
#define RUNTIME_VM_INSTRUCTIONS_H_
|
|
|
|
#include "vm/globals.h"
|
|
|
|
#if defined(TARGET_ARCH_IA32)
|
|
#include "vm/instructions_ia32.h"
|
|
#elif defined(TARGET_ARCH_X64)
|
|
#include "vm/instructions_x64.h"
|
|
#elif defined(TARGET_ARCH_ARM)
|
|
#include "vm/instructions_arm.h"
|
|
#elif defined(TARGET_ARCH_ARM64)
|
|
#include "vm/instructions_arm64.h"
|
|
#elif defined(TARGET_ARCH_DBC)
|
|
#include "vm/instructions_dbc.h"
|
|
#else
|
|
#error Unknown architecture.
|
|
#endif
|
|
|
|
namespace dart {
|
|
|
|
class Object;
|
|
class Code;
|
|
|
|
bool DecodeLoadObjectFromPoolOrThread(uword pc, const Code& code, Object* obj);
|
|
|
|
#if !defined(TARGET_ARCH_IA32) && !defined(TARGET_ARCH_DBC)
|
|
|
|
class TypeTestingStubCallPattern : public ValueObject {
|
|
public:
|
|
explicit TypeTestingStubCallPattern(uword pc) : pc_(pc) {}
|
|
|
|
intptr_t GetSubtypeTestCachePoolIndex();
|
|
|
|
private:
|
|
const uword pc_;
|
|
};
|
|
|
|
#endif // !defined(TARGET_ARCH_IA32) && !defined(TARGET_ARCH_DBC)
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_VM_INSTRUCTIONS_H_
|