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

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

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)
Patch Set: Done Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 const Class& random_class = Class::Handle( 1534 const Class& random_class = Class::Handle(
1535 math_lib.LookupClassAllowPrivate(Symbols::_Random())); 1535 math_lib.LookupClassAllowPrivate(Symbols::_Random()));
1536 ASSERT(!random_class.IsNull()); 1536 ASSERT(!random_class.IsNull());
1537 const Field& state_field = Field::ZoneHandle( 1537 const Field& state_field = Field::ZoneHandle(
1538 random_class.LookupInstanceFieldAllowPrivate(Symbols::_state())); 1538 random_class.LookupInstanceFieldAllowPrivate(Symbols::_state()));
1539 ASSERT(!state_field.IsNull()); 1539 ASSERT(!state_field.IsNull());
1540 const Field& random_A_field = Field::ZoneHandle( 1540 const Field& random_A_field = Field::ZoneHandle(
1541 random_class.LookupStaticFieldAllowPrivate(Symbols::_A())); 1541 random_class.LookupStaticFieldAllowPrivate(Symbols::_A()));
1542 ASSERT(!random_A_field.IsNull()); 1542 ASSERT(!random_A_field.IsNull());
1543 ASSERT(random_A_field.is_const()); 1543 ASSERT(random_A_field.is_const());
1544 const Instance& a_value = Instance::Handle(random_A_field.StaticValue()); 1544 Instance& a_value = Instance::Handle(random_A_field.StaticValue());
1545 if (a_value.raw() == Object::sentinel().raw() ||
1546 a_value.raw() == Object::transition_sentinel().raw()) {
1547 random_A_field.EvaluateInitializer();
1548 a_value = random_A_field.StaticValue();
1549 }
1545 const int64_t a_int_value = Integer::Cast(a_value).AsInt64Value(); 1550 const int64_t a_int_value = Integer::Cast(a_value).AsInt64Value();
1546 // 'a_int_value' is a mask. 1551 // 'a_int_value' is a mask.
1547 ASSERT(Utils::IsUint(32, a_int_value)); 1552 ASSERT(Utils::IsUint(32, a_int_value));
1548 int32_t a_int32_value = static_cast<int32_t>(a_int_value); 1553 int32_t a_int32_value = static_cast<int32_t>(a_int_value);
1549 1554
1550 // Receiver. 1555 // Receiver.
1551 __ ldr(R0, Address(SP, 0 * kWordSize)); 1556 __ ldr(R0, Address(SP, 0 * kWordSize));
1552 // Field '_state'. 1557 // Field '_state'.
1553 __ ldr(R1, FieldAddress(R0, state_field.Offset())); 1558 __ ldr(R1, FieldAddress(R0, state_field.Offset()));
1554 // Addresses of _state[0] and _state[1]. 1559 // Addresses of _state[0] and _state[1].
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 __ ldr(R0, Address(R0, TimelineStream::enabled_offset())); 2300 __ ldr(R0, Address(R0, TimelineStream::enabled_offset()));
2296 __ cmp(R0, Operand(0)); 2301 __ cmp(R0, Operand(0));
2297 __ LoadObject(R0, Bool::True(), NE); 2302 __ LoadObject(R0, Bool::True(), NE);
2298 __ LoadObject(R0, Bool::False(), EQ); 2303 __ LoadObject(R0, Bool::False(), EQ);
2299 __ Ret(); 2304 __ Ret();
2300 } 2305 }
2301 2306
2302 } // namespace dart 2307 } // namespace dart
2303 2308
2304 #endif // defined TARGET_ARCH_ARM 2309 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698